org.springframework.data.mapping.model.ClassGeneratingEntityInstantiator
から EntityInstantiators
を使用します。@DeprecatedSE public class ClassGeneratingEntityInstantiator extends ObjectSE implements EntityInstantiator
EntityInstantiator
。PersistentEntity
の PreferredConstructor
を使用して、ASM を介した適切なコンストラクター呼び出しでファクトリメソッドを動的に生成することにより、エンティティのインスタンスをインスタンス化します。型のバイトコードを生成できない場合は、ReflectionEntityInstantiator
に適切にフォールバックします。コンストラクターと説明 |
---|
ClassGeneratingEntityInstantiator() 使用すべきではありません。 新しい ClassGeneratingEntityInstantiator を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> | createInstance(E entity, ParameterValueProvider<P> provider) 使用すべきではありません。 指定されたソースを使用してデータをプルすることにより、指定されたエンティティの新しいインスタンスを作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ClassGeneratingEntityInstantiator()
ClassGeneratingEntityInstantiator
を作成します。public <T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> T createInstance(E entity, ParameterValueProvider<P> provider)
EntityInstantiator
EntityInstantiator
の createInstance
entity
- null にはなりません。provider
- null にはなりません。Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.