public interface PersisterFactory extends Service
EntityPersister and CollectionPersister varieties).| 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.
|
EntityPersister createEntityPersister(PersistentClass entityBinding, EntityRegionAccessStrategy entityCacheAccessStrategy, NaturalIdRegionAccessStrategy naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
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.CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionRegionAccessStrategy cacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
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 © 2016 JBoss by Red Hat. All rights reserved.