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 HibernatePersisterFactoryimplementation- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Class<?>[]COLLECTION_PERSISTER_CONSTRUCTOR_ARGSThe constructor signature forCollectionPersisterimplementationsstatic Class<?>[]ENTITY_PERSISTER_CONSTRUCTOR_ARGSThe constructor signature forEntityPersisterimplementations
-
Constructor Summary
Constructors Constructor Description PersisterFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionPersistercreateCollectionPersister(Collection collectionBinding, @Nullable CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)Create a collection persister instance.CollectionPersistercreateCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)Create a collection persister instance.EntityPersistercreateEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)Create an entity persister instance.EntityPersistercreateEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)Create an entity persister instance.voidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.
-
-
-
Field Detail
-
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
public static final Class<?>[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forEntityPersisterimplementations
-
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
public static final Class<?>[] COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forCollectionPersisterimplementations
-
-
Method Detail
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
Description copied from interface:ServiceRegistryAwareServiceCallback to inject the registry.- Specified by:
injectServicesin interfaceServiceRegistryAwareService- Parameters:
serviceRegistry- The registry
-
createEntityPersister
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)
Description copied from interface:PersisterFactoryCreate an entity persister instance.- Specified by:
createEntityPersisterin 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:PersisterFactoryCreate a collection persister instance.- Specified by:
createCollectionPersisterin 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:PersisterFactoryCreate an entity persister instance.- Specified by:
createEntityPersisterin 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:PersisterFactoryCreate a collection persister instance.- Specified by:
createCollectionPersisterin 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
-
-