public class EntityTuplizerFactory extends Object implements Serializable
EntityTuplizer
class to use per EntityMode
.Modifier and Type | Field and Description |
---|---|
static Class[] |
ENTITY_TUP_CTOR_SIG |
Constructor and Description |
---|
EntityTuplizerFactory() |
Modifier and Type | Method and Description |
---|---|
EntityTuplizer |
constructDefaultTuplizer(EntityMode entityMode,
EntityMetamodel metamodel,
PersistentClass persistentClass)
Construct am instance of the default tuplizer for the given entity-mode.
|
EntityTuplizer |
constructTuplizer(Class<? extends EntityTuplizer> tuplizerClass,
EntityMetamodel metamodel,
PersistentClass persistentClass)
Construct an instance of the given tuplizer class.
|
EntityTuplizer |
constructTuplizer(String tuplizerClassName,
EntityMetamodel metamodel,
PersistentClass persistentClass)
Construct an instance of the given tuplizer class.
|
void |
registerDefaultTuplizerClass(EntityMode entityMode,
Class<? extends EntityTuplizer> tuplizerClass)
Method allowing registration of the tuplizer class to use as default for a particular entity-mode.
|
public static final Class[] ENTITY_TUP_CTOR_SIG
public void registerDefaultTuplizerClass(EntityMode entityMode, Class<? extends EntityTuplizer> 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 EntityTuplizer constructTuplizer(String tuplizerClassName, EntityMetamodel metamodel, PersistentClass persistentClass)
tuplizerClassName
- The name of the tuplizer class to instantiatemetamodel
- The metadata for the entity.persistentClass
- The mapping info for the entity.HibernateException
- If class name cannot be resolved to a class reference, or if the
Constructor.newInstance(java.lang.Object...)
call fails.public EntityTuplizer constructTuplizer(Class<? extends EntityTuplizer> tuplizerClass, EntityMetamodel metamodel, PersistentClass persistentClass)
tuplizerClass
- The tuplizer class to instantiatemetamodel
- The metadata for the entity.persistentClass
- The mapping info for the entity.HibernateException
- if the Constructor.newInstance(java.lang.Object...)
call fails.public EntityTuplizer constructDefaultTuplizer(EntityMode entityMode, EntityMetamodel metamodel, PersistentClass persistentClass)
entityMode
- The entity mode for which to build a default tuplizer.metamodel
- The entity metadata.persistentClass
- The entity mapping info.HibernateException
- If no default tuplizer found for that entity-mode; may be re-thrown from
constructTuplizer(java.lang.String, org.hibernate.tuple.entity.EntityMetamodel, org.hibernate.mapping.PersistentClass)
too.Copyright © 2019 JBoss by Red Hat. All rights reserved.