public enum ReflectionEntityInstantiator extends EnumSE<ReflectionEntityInstantiator> implements EntityInstantiator
PersistentEntity の PreferredConstructor を使用して、リフレクションを介してエンティティのインスタンスをインスタンス化する EntityInstantiator。| 列挙型定数と説明 |
|---|
INSTANCE |
| 修飾子と型 | メソッドと説明 |
|---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> | createInstance(E entity, ParameterValueProvider<P> provider) 指定されたソースを使用してデータをプルすることにより、指定されたエンティティの新しいインスタンスを作成します。 |
static ReflectionEntityInstantiator | valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static ReflectionEntityInstantiator[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSEgetClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic static final ReflectionEntityInstantiator INSTANCE
public static ReflectionEntityInstantiator[] values()
for (ReflectionEntityInstantiator c : ReflectionEntityInstantiator.values()) System.out.println(c);
public static ReflectionEntityInstantiator valueOf(StringSE name)
name - 返される列挙定数の名前。IllegalArgumentExceptionSE - この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE - 引数が null の場合 public <T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> T createInstance(E entity, ParameterValueProvider<P> provider)
EntityInstantiatorEntityInstantiator 内の createInstance entity - null にはなりません。provider - null にはなりません。Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.