クラス JpaMetamodelMappingContext
java.lang.ObjectSE
org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>
org.springframework.data.jpa.mapping.JpaMetamodelMappingContext
- 実装済みのインターフェース一覧:
Aware, BeanFactoryAware, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, EnvironmentAware, MappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>
public class JpaMetamodelMappingContext
extends AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>
JPA
Metamodel に基づく MappingContext の実装。- 導入:
- 1.3
- 作成者:
- Oliver Gierke, Christoph Strobl, Mark Paluch, David Madden
コンストラクター概要
コンストラクターコンストラクター説明JpaMetamodelMappingContext(SetSE<Metamodel> models) MappingContextをベースに新しい JPAMetamodelを作成します。方法の概要
修飾子と型メソッド説明protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> createPersistentEntity(TypeInformation<T> typeInformation) protected JpaPersistentPropertycreatePersistentProperty(Property property, org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> owner, SimpleTypeHolder simpleTypeHolder) findPersistentPropertyPaths(ClassSE<T> type, PredicateSE<? super JpaPersistentProperty> predicate) 埋め込み可能なプロパティをトラバースすることにより、PersistentPropertyPathsのルックアップをカスタマイズします。booleanhasPersistentEntityFor(ClassSE<?> type) protected booleanクラス AbstractMappingContext から継承されたメソッド
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, initialize, setApplicationContext, setApplicationEventPublisher, setBeanFactory, setEnvironment, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePropertiesクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース MappingContext から継承されたメソッド
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
コンストラクターの詳細
JpaMetamodelMappingContext
MappingContextをベースに新しい JPAMetamodelを作成します。- パラメーター:
models- null または空であってはなりません。
方法の詳細
createPersistentEntity
protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> createPersistentEntity(TypeInformation<T> typeInformation) - 次で指定:
- クラス
AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>のcreatePersistentEntity
createPersistentProperty
protected JpaPersistentProperty createPersistentProperty(Property property, org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> owner, SimpleTypeHolder simpleTypeHolder) - 次で指定:
- クラス
AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>のcreatePersistentProperty
shouldCreatePersistentEntityFor
- オーバーライド:
- クラス
AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>のshouldCreatePersistentEntityFor
findPersistentPropertyPaths
public <T> PersistentPropertyPaths<T, JpaPersistentProperty> findPersistentPropertyPaths(ClassSE<T> type, PredicateSE<? super JpaPersistentProperty> predicate) 埋め込み可能なプロパティをトラバースすることにより、PersistentPropertyPathsのルックアップをカスタマイズします。- 次で指定:
- インターフェース
MappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>内のfindPersistentPropertyPaths - オーバーライド:
- クラス
AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>のfindPersistentPropertyPaths - 関連事項:
hasPersistentEntityFor
- 次で指定:
- インターフェース
MappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>内のhasPersistentEntityFor - オーバーライド:
- クラス
AbstractMappingContext<org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>, JpaPersistentProperty>のhasPersistentEntityFor