Package org.hibernate.tuple.component
Class ComponentTuplizerFactory
- java.lang.Object
-
- org.hibernate.tuple.component.ComponentTuplizerFactory
-
- All Implemented Interfaces:
java.io.Serializable
public class ComponentTuplizerFactory extends java.lang.Object implements java.io.Serializable
A registry allowing users to define the defaultComponentTuplizer
class to use perEntityMode
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentTuplizerFactory(BootstrapContext bootstrapContext)
ComponentTuplizerFactory(MetadataBuildingOptions metadataBuildingOptions)
Deprecated.UseComponentTuplizerFactory(BootstrapContext)
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentTuplizer
constructDefaultTuplizer(EntityMode entityMode, Component metadata)
Construct am instance of the default tuplizer for the given entity-mode.ComponentTuplizer
constructTuplizer(java.lang.Class<? extends ComponentTuplizer> tuplizerClass, Component metadata)
Construct an instance of the given tuplizer class.ComponentTuplizer
constructTuplizer(java.lang.String tuplizerClassName, Component metadata)
Construct an instance of the given tuplizer class.void
registerDefaultTuplizerClass(EntityMode entityMode, java.lang.Class<? extends ComponentTuplizer> tuplizerClass)
Method allowing registration of the tuplizer class to use as default for a particular entity-mode.
-
-
-
Constructor Detail
-
ComponentTuplizerFactory
@Deprecated public ComponentTuplizerFactory(MetadataBuildingOptions metadataBuildingOptions)
Deprecated.UseComponentTuplizerFactory(BootstrapContext)
instead.
-
ComponentTuplizerFactory
public ComponentTuplizerFactory(BootstrapContext bootstrapContext)
-
-
Method Detail
-
registerDefaultTuplizerClass
public void registerDefaultTuplizerClass(EntityMode entityMode, java.lang.Class<? extends ComponentTuplizer> tuplizerClass)
Method allowing registration of the tuplizer class to use as default for a particular entity-mode.- Parameters:
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(java.lang.String tuplizerClassName, Component metadata)
Construct an instance of the given tuplizer class.- Parameters:
tuplizerClassName
- The name of the tuplizer class to instantiatemetadata
- The metadata for the component.- Returns:
- The instantiated tuplizer
- Throws:
HibernateException
- If class name cannot be resolved to a class reference, or if theConstructor.newInstance(java.lang.Object...)
call fails.
-
constructTuplizer
public ComponentTuplizer constructTuplizer(java.lang.Class<? extends ComponentTuplizer> tuplizerClass, Component metadata)
Construct an instance of the given tuplizer class.- Parameters:
tuplizerClass
- The tuplizer class to instantiatemetadata
- The metadata for the component.- Returns:
- The instantiated tuplizer
- Throws:
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.- Parameters:
entityMode
- The entity mode for which to build a default tuplizer.metadata
- The metadata for the component.- Returns:
- The instantiated tuplizer
- Throws:
HibernateException
- If no default tuplizer found for that entity-mode; may be re-thrown fromconstructTuplizer(java.lang.String, org.hibernate.mapping.Component)
too.
-
-