Package org.hibernate.persister.spi
Interface PersisterFactory
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
PersisterFactoryImpl
Contract for creating persister instances (both
EntityPersister
and CollectionPersister
varieties).-
Method Summary
Modifier and TypeMethodDescriptioncreateCollectionPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) Create a collection persister instance.createEntityPersister
(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext) Create an entity persister instance.
-
Method Details
-
createEntityPersister
EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext) Create an entity persister instance.- Parameters:
entityBinding
- The mapping information describing the entityentityCacheAccessStrategy
- The cache access strategy for the entity regionnaturalIdCacheAccessStrategy
- The cache access strategy for the entity's natural-id cross-ref regioncreationContext
- Access to additional information needed to create the EntityPersister
-
createCollectionPersister
CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) Create a collection persister instance.- Parameters:
collectionBinding
- The mapping information describing the collectioncacheAccessStrategy
- The cache access strategy for the collection regioncreationContext
- Access to additional information needed to create an EntityPersister
-