Package org.hibernate.persister.internal
Class PersisterFactoryImpl
- java.lang.Object
-
- org.hibernate.persister.internal.PersisterFactoryImpl
-
- All Implemented Interfaces:
Serializable
,PersisterFactory
,Service
,ServiceRegistryAwareService
public final class PersisterFactoryImpl extends Object implements PersisterFactory, ServiceRegistryAwareService
The standard HibernatePersisterFactory
implementation- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Class<?>[]
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forCollectionPersister
implementationsstatic Class<?>[]
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forEntityPersister
implementations
-
Constructor Summary
Constructors Constructor Description PersisterFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionPersister
createCollectionPersister(Collection collectionBinding, @Nullable CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)
Create a collection persister instance.CollectionPersister
createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)
Create a collection persister instance.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)
Create an entity persister instance.void
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.
-
-
-
Field Detail
-
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
public static final Class<?>[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forEntityPersister
implementations
-
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
public static final Class<?>[] COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forCollectionPersister
implementations
-
-
Method Detail
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
Description copied from interface:ServiceRegistryAwareService
Callback to inject the registry.- Specified by:
injectServices
in interfaceServiceRegistryAwareService
- Parameters:
serviceRegistry
- The registry
-
createEntityPersister
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)
Description copied from interface:PersisterFactory
Create an entity persister instance.- Specified by:
createEntityPersister
in interfacePersisterFactory
- 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
public CollectionPersister createCollectionPersister(Collection collectionBinding, @Nullable CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)
Description copied from interface:PersisterFactory
Create a collection persister instance.- Specified by:
createCollectionPersister
in interfacePersisterFactory
- 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
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)
Description copied from interface:PersisterFactory
Create an entity persister instance.- Specified by:
createEntityPersister
in interfacePersisterFactory
- 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.
-
createCollectionPersister
public CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
Description copied from interface:PersisterFactory
Create a collection persister instance.- Specified by:
createCollectionPersister
in interfacePersisterFactory
- 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- Throws:
HibernateException
-
-