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 Hibernate
PersisterFactory
implementation- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<?>[]
The constructor signature forCollectionPersister
implementationsstatic final Class<?>[]
The constructor signature forEntityPersister
implementations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCollectionPersister
(Collection collectionBinding, @Nullable CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) Create a collection persister instance.createCollectionPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) Create a collection persister instance.createEntityPersister
(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext) Create an entity persister instance.createEntityPersister
(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) Create an entity persister instance.void
injectServices
(ServiceRegistryImplementor serviceRegistry) Callback to inject the registry.
-
Field Details
-
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forEntityPersister
implementations -
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forCollectionPersister
implementations
-
-
Constructor Details
-
PersisterFactoryImpl
public PersisterFactoryImpl()
-
-
Method Details
-
injectServices
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
-