|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.tuple.component.ComponentTuplizerFactory
public class ComponentTuplizerFactory
A registry allowing users to define the default ComponentTuplizer class to use per EntityMode.
| Constructor Summary | |
|---|---|
ComponentTuplizerFactory()
|
|
| Method Summary | |
|---|---|
ComponentTuplizer |
constructDefaultTuplizer(EntityMode entityMode,
Component metadata)
Construct am instance of the default tuplizer for the given entity-mode. |
ComponentTuplizer |
constructTuplizer(Class<? extends ComponentTuplizer> tuplizerClass,
Component metadata)
Construct an instance of the given tuplizer class. |
ComponentTuplizer |
constructTuplizer(String tuplizerClassName,
Component metadata)
Construct an instance of the given tuplizer class. |
void |
registerDefaultTuplizerClass(EntityMode entityMode,
Class<? extends ComponentTuplizer> tuplizerClass)
Method allowing registration of the tuplizer class to use as default for a particular entity-mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentTuplizerFactory()
| Method Detail |
|---|
public void registerDefaultTuplizerClass(EntityMode entityMode,
Class<? extends ComponentTuplizer> tuplizerClass)
entityMode - The entity-mode for which to register the tuplizer classtuplizerClass - The class to use as the default tuplizer for the given entity-mode.
public ComponentTuplizer constructTuplizer(String tuplizerClassName,
Component metadata)
tuplizerClassName - The name of the tuplizer class to instantiatemetadata - The metadata for the component.
HibernateException - If class name cannot be resolved to a class reference, or if the
Constructor.newInstance(java.lang.Object...) call fails.
public ComponentTuplizer constructTuplizer(Class<? extends ComponentTuplizer> tuplizerClass,
Component metadata)
tuplizerClass - The tuplizer class to instantiatemetadata - The metadata for the component.
HibernateException - if the Constructor.newInstance(java.lang.Object...) call fails.
public ComponentTuplizer constructDefaultTuplizer(EntityMode entityMode,
Component metadata)
entityMode - The entity mode for which to build a default tuplizer.metadata - The metadata for the component.
HibernateException - If no default tuplizer found for that entity-mode; may be re-thrown from
constructTuplizer(java.lang.String, org.hibernate.mapping.Component) too.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||