public final class PersisterFactoryImpl extends Object implements PersisterFactory, ServiceRegistryAwareService
PersisterFactory implementation| Modifier 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)
ServiceRegistryAwareServiceinjectServices in interface ServiceRegistryAwareServiceserviceRegistry - The registrypublic EntityPersister createEntityPersister(PersistentClass metadata, EntityRegionAccessStrategy cacheAccessStrategy, NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy, SessionFactoryImplementor factory, Mapping cfg)
PersisterFactorycreateEntityPersister in interface PersisterFactorymetadata - 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)
PersisterFactorycreateEntityPersister in interface PersisterFactorymetadata - 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
PersisterFactorycreateCollectionPersister in interface PersisterFactorycfg - 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
PersisterFactorycreateCollectionPersister in interface PersisterFactorymetadata - 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 © 2001-2015 Red Hat, Inc. All Rights Reserved.