public class PojoEntityTuplizer extends AbstractEntityTuplizer
EntityTuplizer specific to the pojo entity mode.getters, hasCustomAccessors, propertySpan, setters| Constructor and Description | 
|---|
PojoEntityTuplizer(EntityMetamodel entityMetamodel,
                  EntityBinding mappedEntity)  | 
PojoEntityTuplizer(EntityMetamodel entityMetamodel,
                  PersistentClass mappedEntity)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterInitialize(Object entity,
               boolean lazyPropertiesAreUnfetched,
               SessionImplementor session)
Called just after the entities properties have been initialized. 
 | 
protected Instantiator | 
buildInstantiator(EntityBinding entityBinding)
Build an appropriate Instantiator for the given mapped entity. 
 | 
protected Instantiator | 
buildInstantiator(PersistentClass persistentClass)
Build an appropriate Instantiator for the given mapped entity. 
 | 
protected Getter | 
buildPropertyGetter(AttributeBinding mappedProperty)
Build an appropriate Getter for the given property. 
 | 
protected Getter | 
buildPropertyGetter(Property mappedProperty,
                   PersistentClass mappedEntity)
Build an appropriate Getter for the given property. 
 | 
protected Setter | 
buildPropertySetter(AttributeBinding mappedProperty)
Build an appropriate Setter for the given property. 
 | 
protected Setter | 
buildPropertySetter(Property mappedProperty,
                   PersistentClass mappedEntity)
Build an appropriate Setter for the given property. 
 | 
protected ProxyFactory | 
buildProxyFactory(EntityBinding entityBinding,
                 Getter idGetter,
                 Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity. 
 | 
protected ProxyFactory | 
buildProxyFactory(PersistentClass persistentClass,
                 Getter idGetter,
                 Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity. 
 | 
protected ProxyFactory | 
buildProxyFactoryInternal(EntityBinding entityBinding,
                         Getter idGetter,
                         Setter idSetter)  | 
protected ProxyFactory | 
buildProxyFactoryInternal(PersistentClass persistentClass,
                         Getter idGetter,
                         Setter idSetter)  | 
String | 
determineConcreteSubclassEntityName(Object entityInstance,
                                   SessionFactoryImplementor factory)
Given an entity instance, determine the most appropriate (most targeted) entity-name which represents it. 
 | 
Class | 
getConcreteProxyClass()
Returns the java class to which generated proxies will be typed. 
 | 
EntityMode | 
getEntityMode()
Return the entity-mode handled by this tuplizer instance. 
 | 
EntityNameResolver[] | 
getEntityNameResolvers()
Get any  
EntityNameResolvers associated with this Tuplizer. | 
Class | 
getMappedClass()
Return the pojo class managed by this tuplizer. 
 | 
Object[] | 
getPropertyValues(Object entity)
Extract the current values contained on the given entity. 
 | 
Object[] | 
getPropertyValuesToInsert(Object entity,
                         Map mergeMap,
                         SessionImplementor session)
Extract the values of the insertable properties of the entity (including backrefs) 
 | 
protected Object[] | 
getPropertyValuesWithOptimizer(Object object)  | 
boolean | 
hasUninitializedLazyProperties(Object entity)
Does the given entity instance have any currently uninitialized lazy properties? 
 | 
boolean | 
isInstrumented()
Is it an instrumented POJO? 
 | 
boolean | 
isLifecycleImplementor()
 | 
void | 
setPropertyValues(Object entity,
                 Object[] values)
Inject the given values into the given entity. 
 | 
protected void | 
setPropertyValuesWithOptimizer(Object object,
                              Object[] values)  | 
createProxy, getComponentValue, getEntityMetamodel, getEntityName, getFactory, getGetter, getIdentifier, getIdentifier, getIdentifierGetter, getIdentifierMapperType, getInstantiator, getPropertyValue, getPropertyValue, getProxyFactory, getSubclassEntityNames, getVersion, getVersionGetter, hasProxy, instantiate, instantiate, instantiate, isInstance, resetIdentifier, resetIdentifier, setIdentifier, setIdentifier, setPropertyValue, setPropertyValue, shouldGetAllProperties, toStringpublic PojoEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity)
public PojoEntityTuplizer(EntityMetamodel entityMetamodel, EntityBinding mappedEntity)
protected ProxyFactory buildProxyFactory(PersistentClass persistentClass, Getter idGetter, Setter idSetter)
AbstractEntityTuplizerbuildProxyFactory in class AbstractEntityTuplizerpersistentClass - The mapping information regarding the mapped entity.idGetter - The constructed Getter relating to the entity's id property.idSetter - The constructed Setter relating to the entity's id property.protected ProxyFactory buildProxyFactoryInternal(PersistentClass persistentClass, Getter idGetter, Setter idSetter)
protected Instantiator buildInstantiator(PersistentClass persistentClass)
AbstractEntityTuplizerbuildInstantiator in class AbstractEntityTuplizerpersistentClass - The mapping information regarding the mapped entity.protected ProxyFactory buildProxyFactory(EntityBinding entityBinding, Getter idGetter, Setter idSetter)
AbstractEntityTuplizerbuildProxyFactory in class AbstractEntityTuplizerentityBinding - The mapping information regarding the mapped entity.idGetter - The constructed Getter relating to the entity's id property.idSetter - The constructed Setter relating to the entity's id property.protected ProxyFactory buildProxyFactoryInternal(EntityBinding entityBinding, Getter idGetter, Setter idSetter)
protected Instantiator buildInstantiator(EntityBinding entityBinding)
AbstractEntityTuplizerbuildInstantiator in class AbstractEntityTuplizerentityBinding - The mapping information regarding the mapped entity.public void setPropertyValues(Object entity, Object[] values) throws HibernateException
TuplizersetPropertyValues in interface TuplizersetPropertyValues in class AbstractEntityTuplizerentity - The entity.values - The values to be injected.HibernateExceptionpublic Object[] getPropertyValues(Object entity) throws HibernateException
TuplizergetPropertyValues in interface TuplizergetPropertyValues in class AbstractEntityTuplizerentity - The entity from which to extract values.HibernateExceptionpublic Object[] getPropertyValuesToInsert(Object entity, Map mergeMap, SessionImplementor session) throws HibernateException
EntityTuplizergetPropertyValuesToInsert in interface EntityTuplizergetPropertyValuesToInsert in class AbstractEntityTuplizerentity - The entity from which to extract.mergeMap - a map of instances being merged to merged instancessession - The session in which the resuest is being made.HibernateException - Indicates a problem access the propertiesprotected void setPropertyValuesWithOptimizer(Object object, Object[] values)
public EntityMode getEntityMode()
EntityTuplizerpublic Class getMappedClass()
Tuplizerpublic boolean isLifecycleImplementor()
EntityTuplizerisLifecycleImplementor in interface EntityTuplizerisLifecycleImplementor in class AbstractEntityTuplizerprotected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
AbstractEntityTuplizerbuildPropertyGetter in class AbstractEntityTuplizermappedProperty - The property to be accessed via the built Getter.mappedEntity - The entity information regarding the mapped entity owning this property.protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
AbstractEntityTuplizerbuildPropertySetter in class AbstractEntityTuplizermappedProperty - The property to be accessed via the built Setter.mappedEntity - The entity information regarding the mapped entity owning this property.protected Getter buildPropertyGetter(AttributeBinding mappedProperty)
AbstractEntityTuplizerbuildPropertyGetter in class AbstractEntityTuplizermappedProperty - The property to be accessed via the built Getter.protected Setter buildPropertySetter(AttributeBinding mappedProperty)
AbstractEntityTuplizerbuildPropertySetter in class AbstractEntityTuplizermappedProperty - The property to be accessed via the built Setter.public Class getConcreteProxyClass()
EntityTuplizerPersistenceContext.narrowProxy(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.engine.spi.EntityKey, java.lang.Object) here,
 since that is the only external use of this methodpublic void afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session)
EntityTuplizerafterInitialize in interface EntityTuplizerafterInitialize in class AbstractEntityTuplizerentity - The entity being initialized.lazyPropertiesAreUnfetched - Are defined lazy properties currently unfecthedsession - The session initializing this entity.public boolean hasUninitializedLazyProperties(Object entity)
EntityTuplizerhasUninitializedLazyProperties in interface EntityTuplizerhasUninitializedLazyProperties in class AbstractEntityTuplizerentity - The entity to be check for uninitialized lazy properties.public boolean isInstrumented()
EntityTuplizertrue if the entity class is instrumented; false otherwise.public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory)
EntityTuplizerentityInstance - The entity instance.factory - Reference to the SessionFactory.public EntityNameResolver[] getEntityNameResolvers()
EntityTuplizerEntityNameResolvers associated with this Tuplizer.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.