类 ComponentTuplizerFactory
- java.lang.Object
-
- org.hibernate.tuple.component.ComponentTuplizerFactory
-
- 所有已实现的接口:
Serializable
public class ComponentTuplizerFactory extends Object implements Serializable
A registry allowing users to define the defaultComponentTuplizerclass to use perEntityMode.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ComponentTuplizerFactory(BootstrapContext bootstrapContext)ComponentTuplizerFactory(MetadataBuildingOptions metadataBuildingOptions)已过时。UseComponentTuplizerFactory(BootstrapContext)instead.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ComponentTuplizerconstructDefaultTuplizer(EntityMode entityMode, Component metadata)Construct am instance of the default tuplizer for the given entity-mode.ComponentTuplizerconstructTuplizer(Class<? extends ComponentTuplizer> tuplizerClass, Component metadata)Construct an instance of the given tuplizer class.ComponentTuplizerconstructTuplizer(String tuplizerClassName, Component metadata)Construct an instance of the given tuplizer class.voidregisterDefaultTuplizerClass(EntityMode entityMode, Class<? extends ComponentTuplizer> tuplizerClass)Method allowing registration of the tuplizer class to use as default for a particular entity-mode.
-
-
-
构造器详细资料
-
ComponentTuplizerFactory
@Deprecated public ComponentTuplizerFactory(MetadataBuildingOptions metadataBuildingOptions)
已过时。UseComponentTuplizerFactory(BootstrapContext)instead.
-
ComponentTuplizerFactory
public ComponentTuplizerFactory(BootstrapContext bootstrapContext)
-
-
方法详细资料
-
registerDefaultTuplizerClass
public void registerDefaultTuplizerClass(EntityMode entityMode, Class<? extends ComponentTuplizer> 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 ComponentTuplizer constructTuplizer(String tuplizerClassName, Component metadata)
Construct an instance of the given tuplizer class.- 参数:
tuplizerClassName- The name of the tuplizer class to instantiatemetadata- The metadata for the component.- 返回:
- 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 ComponentTuplizer constructTuplizer(Class<? extends ComponentTuplizer> tuplizerClass, Component metadata)
Construct an instance of the given tuplizer class.- 参数:
tuplizerClass- The tuplizer class to instantiatemetadata- The metadata for the component.- 返回:
- The instantiated tuplizer
- 抛出:
HibernateException- if theConstructor.newInstance(java.lang.Object...)call fails.
-
constructDefaultTuplizer
public ComponentTuplizer constructDefaultTuplizer(EntityMode entityMode, Component metadata)
Construct am instance of the default tuplizer for the given entity-mode.- 参数:
entityMode- The entity mode for which to build a default tuplizer.metadata- The metadata for the component.- 返回:
- The instantiated tuplizer
- 抛出:
HibernateException- If no default tuplizer found for that entity-mode; may be re-thrown fromconstructTuplizer(java.lang.String, org.hibernate.mapping.Component)too.
-
-