public final class PersisterFactoryImpl extends Object implements PersisterFactory, ServiceRegistryAwareService
PersisterFactory
implementationModifier and Type | Field and Description |
---|---|
static Class[] |
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature for
CollectionPersister implementations |
static Class[] |
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature for
EntityPersister implementations |
Constructor and Description |
---|
PersisterFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
createCollectionPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext)
Create a collection persister instance.
|
EntityPersister |
createEntityPersister(PersistentClass entityBinding,
EntityRegionAccessStrategy entityCacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdCacheAccessStrategy,
PersisterCreationContext creationContext)
Create an entity persister instance.
|
void |
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.
|
public static final Class[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS
EntityPersister
implementationspublic static final Class[] COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
CollectionPersister
implementationspublic void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareService
injectServices
in interface ServiceRegistryAwareService
serviceRegistry
- The registrypublic EntityPersister createEntityPersister(PersistentClass entityBinding, EntityRegionAccessStrategy entityCacheAccessStrategy, NaturalIdRegionAccessStrategy naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
PersisterFactory
createEntityPersister
in interface PersisterFactory
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 EntityPersisterHibernateException
- Indicates a problem building the persister.public CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionRegionAccessStrategy cacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
PersisterFactory
createCollectionPersister
in interface PersisterFactory
collectionBinding
- The mapping information describing the collectioncacheAccessStrategy
- The cache access strategy for the collection regioncreationContext
- Access to additional information needed to create an EntityPersisterHibernateException
- Indicates a problem building the persister.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.