Package org.hibernate.persister.spi
Interface PersisterFactory
-
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
PersisterFactoryImpl
public interface PersisterFactory extends Service
Contract for creating persister instances (bothEntityPersister
andCollectionPersister
varieties).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default CollectionPersister
createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)
Create a collection persister instance.CollectionPersister
createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)
Deprecated.default EntityPersister
createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)
Create an entity persister instance.EntityPersister
createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)
-
-
-
Method Detail
-
createEntityPersister
default 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
default 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
-
createEntityPersister
@Deprecated(since="6.0") EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
Deprecated.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 an EntityPersister- Returns:
- An appropriate entity persister instance.
- Throws:
HibernateException
-
createCollectionPersister
@Deprecated(since="6.0") CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)
Deprecated.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
-
-