public final class PersisterFactoryImpl extends Object implements PersisterFactory, ServiceRegistryAwareService
PersisterFactory
implementationModifier and Type | Field and Description |
---|---|
static Class[] |
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature for
EntityPersister implementations |
static Class[] |
ENTITY_PERSISTER_CONSTRUCTOR_ARGS_NEW
The constructor signature for
EntityPersister implementations using
an EntityBinding . |
Constructor and Description |
---|
PersisterFactoryImpl() |
public static final Class[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS
EntityPersister
implementationspublic static final Class[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS_NEW
EntityPersister
implementations using
an EntityBinding
.public void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareService
injectServices
in interface ServiceRegistryAwareService
serviceRegistry
- The registrypublic EntityPersister createEntityPersister(PersistentClass metadata, EntityRegionAccessStrategy cacheAccessStrategy, NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy, SessionFactoryImplementor factory, Mapping cfg)
PersisterFactory
createEntityPersister
in interface PersisterFactory
metadata
- The O/R mapping metamodel definition for the entitycacheAccessStrategy
- The caching strategy for this entityfactory
- The session factorycfg
- The overall mappingpublic EntityPersister createEntityPersister(EntityBinding metadata, EntityRegionAccessStrategy cacheAccessStrategy, SessionFactoryImplementor factory, Mapping cfg)
PersisterFactory
createEntityPersister
in interface PersisterFactory
metadata
- The O/R mapping metamodel definition for the entitycacheAccessStrategy
- The caching strategy for this entityfactory
- The session factorycfg
- The overall mappingpublic CollectionPersister createCollectionPersister(Configuration cfg, Collection collectionMetadata, CollectionRegionAccessStrategy cacheAccessStrategy, SessionFactoryImplementor factory) throws HibernateException
PersisterFactory
createCollectionPersister
in interface PersisterFactory
cfg
- The configurationcollectionMetadata
- The O/R mapping metamodel definition for the collectioncacheAccessStrategy
- The caching strategy for this collectionfactory
- The session factoryHibernateException
- Indicates a problem building the persister.public CollectionPersister createCollectionPersister(MetadataImplementor metadata, PluralAttributeBinding collectionMetadata, CollectionRegionAccessStrategy cacheAccessStrategy, SessionFactoryImplementor factory) throws HibernateException
PersisterFactory
createCollectionPersister
in interface PersisterFactory
metadata
- The metadatacollectionMetadata
- 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.