类 PersisterFactoryImpl
- java.lang.Object
-
- org.hibernate.persister.internal.PersisterFactoryImpl
-
- 所有已实现的接口:
Serializable,PersisterFactory,Service,ServiceRegistryAwareService
public final class PersisterFactoryImpl extends Object implements PersisterFactory, ServiceRegistryAwareService
The standard HibernatePersisterFactoryimplementation- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static Class[]COLLECTION_PERSISTER_CONSTRUCTOR_ARGSThe constructor signature forCollectionPersisterimplementationsstatic Class[]ENTITY_PERSISTER_CONSTRUCTOR_ARGSThe constructor signature forEntityPersisterimplementations
-
构造器概要
构造器 构造器 说明 PersisterFactoryImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CollectionPersistercreateCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)Create a collection persister instance.EntityPersistercreateEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)Create an entity persister instance.voidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.
-
-
-
字段详细资料
-
ENTITY_PERSISTER_CONSTRUCTOR_ARGS
public static final Class[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forEntityPersisterimplementations
-
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
public static final Class[] COLLECTION_PERSISTER_CONSTRUCTOR_ARGS
The constructor signature forCollectionPersisterimplementations
-
-
方法详细资料
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
从接口复制的说明:ServiceRegistryAwareServiceCallback to inject the registry.- 指定者:
injectServices在接口中ServiceRegistryAwareService- 参数:
serviceRegistry- The registry
-
createEntityPersister
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
从接口复制的说明:PersisterFactoryCreate an entity persister instance.- 指定者:
createEntityPersister在接口中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 EntityPersister- 返回:
- An appropriate entity persister instance.
- 抛出:
HibernateException- Indicates a problem building the persister.
-
createCollectionPersister
public CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException
从接口复制的说明:PersisterFactoryCreate a collection persister instance.- 指定者:
createCollectionPersister在接口中PersisterFactory- 参数:
collectionBinding- The mapping information describing the collectioncacheAccessStrategy- The cache access strategy for the collection regioncreationContext- Access to additional information needed to create an EntityPersister- 返回:
- An appropriate collection persister instance.
- 抛出:
HibernateException- Indicates a problem building the persister.
-
-