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 forCollectionPersisterimplementationsstatic final Class<?>[]The constructor signature forEntityPersisterimplementations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCollectionPersister(Collection collectionBinding, @Nullable CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) Create a collection persister instance.createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext) Create an entity persister instance.voidinjectServices(ServiceRegistryImplementor serviceRegistry) Callback to inject the registry.
-
Field Details
-
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forEntityPersisterimplementations -
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forCollectionPersisterimplementations
-
-
Constructor Details
-
PersisterFactoryImpl
public PersisterFactoryImpl()
-
-
Method Details
-
injectServices
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
-