类 EntityTuplizerFactory
- java.lang.Object
-
- org.hibernate.tuple.entity.EntityTuplizerFactory
-
- 所有已实现的接口:
Serializable
public class EntityTuplizerFactory extends Object implements Serializable
A registry allowing users to define the defaultEntityTuplizerclass to use perEntityMode.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static Class[]ENTITY_TUP_CTOR_SIG
-
构造器概要
构造器 构造器 说明 EntityTuplizerFactory()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 EntityTuplizerconstructDefaultTuplizer(EntityMode entityMode, EntityMetamodel metamodel, PersistentClass persistentClass)Construct an instance of the default tuplizer for the given entity-mode.EntityTuplizerconstructTuplizer(Class<? extends EntityTuplizer> tuplizerClass, EntityMetamodel metamodel, PersistentClass persistentClass)Construct an instance of the given tuplizer class.EntityTuplizerconstructTuplizer(String tuplizerClassName, EntityMetamodel metamodel, PersistentClass persistentClass)Construct an instance of the given tuplizer class.voidregisterDefaultTuplizerClass(EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass)Method allowing registration of the tuplizer class to use as default for a particular entity-mode.
-
-
-
字段详细资料
-
ENTITY_TUP_CTOR_SIG
public static final Class[] ENTITY_TUP_CTOR_SIG
-
-
方法详细资料
-
registerDefaultTuplizerClass
public void registerDefaultTuplizerClass(EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass)
Method allowing registration of the tuplizer class to use as default for a particular entity-mode.- 参数:
entityMode- The entity-mode for which to register the tuplizer classtuplizerClass- The class to use as the default tuplizer for the given entity-mode.
-
constructTuplizer
public EntityTuplizer constructTuplizer(String tuplizerClassName, EntityMetamodel metamodel, PersistentClass persistentClass)
Construct an instance of the given tuplizer class.- 参数:
tuplizerClassName- The name of the tuplizer class to instantiatemetamodel- The metadata for the entity.persistentClass- The mapping info for the entity.- 返回:
- The instantiated tuplizer
- 抛出:
HibernateException- If class name cannot be resolved to a class reference, or if theConstructor.newInstance(java.lang.Object...)call fails.
-
constructTuplizer
public EntityTuplizer constructTuplizer(Class<? extends EntityTuplizer> tuplizerClass, EntityMetamodel metamodel, PersistentClass persistentClass)
Construct an instance of the given tuplizer class.- 参数:
tuplizerClass- The tuplizer class to instantiatemetamodel- The metadata for the entity.persistentClass- The mapping info for the entity.- 返回:
- The instantiated tuplizer
- 抛出:
HibernateException- if theConstructor.newInstance(java.lang.Object...)call fails.
-
constructDefaultTuplizer
public EntityTuplizer constructDefaultTuplizer(EntityMode entityMode, EntityMetamodel metamodel, PersistentClass persistentClass)
Construct an instance of the default tuplizer for the given entity-mode.- 参数:
entityMode- The entity mode for which to build a default tuplizer.metamodel- The entity metadata.persistentClass- The entity mapping info.- 返回:
- The instantiated tuplizer
- 抛出:
HibernateException- If no default tuplizer found for that entity-mode; may be re-thrown fromconstructTuplizer(java.lang.String, org.hibernate.tuple.entity.EntityMetamodel, org.hibernate.mapping.PersistentClass)too.
-
-