public interface PersisterFactory extends Service
EntityPersister
and CollectionPersister
varieties).Modifier and Type | Method and Description |
---|---|
CollectionPersister |
createCollectionPersister(Configuration cfg,
Collection model,
CollectionRegionAccessStrategy cacheAccessStrategy,
SessionFactoryImplementor factory)
Create a collection persister instance.
|
CollectionPersister |
createCollectionPersister(MetadataImplementor metadata,
PluralAttributeBinding model,
CollectionRegionAccessStrategy cacheAccessStrategy,
SessionFactoryImplementor factory)
Create a collection persister instance.
|
EntityPersister |
createEntityPersister(EntityBinding model,
EntityRegionAccessStrategy cacheAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg)
Create an entity persister instance.
|
EntityPersister |
createEntityPersister(PersistentClass model,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg)
Create an entity persister instance.
|
EntityPersister createEntityPersister(PersistentClass model, EntityRegionAccessStrategy cacheAccessStrategy, NaturalIdRegionAccessStrategy naturalIdAccessStrategy, SessionFactoryImplementor factory, Mapping cfg) throws HibernateException
model
- The O/R mapping metamodel definition for the entitycacheAccessStrategy
- The caching strategy for this entityfactory
- The session factorycfg
- The overall mappingHibernateException
- Indicates a problem building the persister.EntityPersister createEntityPersister(EntityBinding model, EntityRegionAccessStrategy cacheAccessStrategy, SessionFactoryImplementor factory, Mapping cfg) throws HibernateException
model
- The O/R mapping metamodel definition for the entitycacheAccessStrategy
- The caching strategy for this entityfactory
- The session factorycfg
- The overall mappingHibernateException
- Indicates a problem building the persister.CollectionPersister createCollectionPersister(Configuration cfg, Collection model, CollectionRegionAccessStrategy cacheAccessStrategy, SessionFactoryImplementor factory) throws HibernateException
cfg
- The configurationmodel
- The O/R mapping metamodel definition for the collectioncacheAccessStrategy
- The caching strategy for this collectionfactory
- The session factoryHibernateException
- Indicates a problem building the persister.CollectionPersister createCollectionPersister(MetadataImplementor metadata, PluralAttributeBinding model, CollectionRegionAccessStrategy cacheAccessStrategy, SessionFactoryImplementor factory) throws HibernateException
metadata
- The metadatamodel
- The O/R mapping metamodel definition for the collectioncacheAccessStrategy
- The caching strategy for this collectionfactory
- The session factoryHibernateException
- Indicates a problem building the persister.Copyright © 2018 JBoss by Red Hat. All rights reserved.