|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.tuple.AbstractTuplizer
org.hibernate.tuple.PojoTuplizer
POJO-based implementation of an EntityTuplizer.
Field Summary |
Fields inherited from class org.hibernate.tuple.AbstractTuplizer |
getters, hasCustomAccessors, propertySpan, setters |
Constructor Summary | |
PojoTuplizer(EntityMetamodel entityMetamodel,
PersistentClass mappedEntity)
|
Method Summary | |
void |
afterInitialize(Object entity,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Called just after the entities properties have been initialized. |
protected Instantiator |
buildInstantiator(PersistentClass persistentClass)
|
protected Getter |
buildPropertyGetter(Property mappedProperty,
PersistentClass mappedEntity)
|
protected Setter |
buildPropertySetter(Property mappedProperty,
PersistentClass mappedEntity)
|
protected ProxyFactory |
buildProxyFactory(PersistentClass persistentClass,
Getter idGetter,
Setter idSetter)
|
Class |
getConcreteProxyClass()
Returns the java class to which generated proxies will be typed. |
EntityMode |
getEntityMode()
|
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,
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 |
isLazyPropertyLoadingAvailable()
|
boolean |
isLifecycleImplementor()
Does the class managed by this tuplizer implement
the Lifecycle interface. |
boolean |
isValidatableImplementor()
Does the class managed by this tuplizer implement
the Validatable interface. |
void |
setPropertyValues(Object entity,
Object[] values)
Inject the given values into the given entity. |
protected void |
setPropertyValuesWithOptimizer(Object object,
Object[] values)
|
Methods inherited from class org.hibernate.tuple.AbstractTuplizer |
createProxy, getEntityMetamodel, getEntityName, getFactory, getIdentifier, getInstantiator, getPropertyValue, getPropertyValue, getProxyFactory, getVersion, hasProxy, instantiate, instantiate, isInstance, resetIdentifier, setIdentifier, setPropertyValue, setPropertyValue, shouldGetAllProperties, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PojoTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity)
Method Detail |
public EntityMode getEntityMode()
getEntityMode
in class AbstractTuplizer
protected ProxyFactory buildProxyFactory(PersistentClass persistentClass, Getter idGetter, Setter idSetter)
buildProxyFactory
in class AbstractTuplizer
protected Instantiator buildInstantiator(PersistentClass persistentClass)
buildInstantiator
in class AbstractTuplizer
public void setPropertyValues(Object entity, Object[] values) throws HibernateException
Tuplizer
setPropertyValues
in interface Tuplizer
setPropertyValues
in class AbstractTuplizer
HibernateException
public Object[] getPropertyValues(Object entity) throws HibernateException
Tuplizer
getPropertyValues
in interface Tuplizer
getPropertyValues
in class AbstractTuplizer
HibernateException
public Object[] getPropertyValuesToInsert(Object entity, SessionImplementor session) throws HibernateException
EntityTuplizer
getPropertyValuesToInsert
in interface EntityTuplizer
getPropertyValuesToInsert
in class AbstractTuplizer
HibernateException
protected void setPropertyValuesWithOptimizer(Object object, Object[] values)
protected Object[] getPropertyValuesWithOptimizer(Object object)
public Class getMappedClass()
Tuplizer
public boolean isLifecycleImplementor()
EntityTuplizer
class
managed by this tuplizer implement
the Lifecycle
interface.
isLifecycleImplementor
in interface EntityTuplizer
isLifecycleImplementor
in class AbstractTuplizer
public boolean isValidatableImplementor()
EntityTuplizer
class
managed by this tuplizer implement
the Validatable
interface.
isValidatableImplementor
in interface EntityTuplizer
isValidatableImplementor
in class AbstractTuplizer
protected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
buildPropertyGetter
in class AbstractTuplizer
protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
buildPropertySetter
in class AbstractTuplizer
public Class getConcreteProxyClass()
EntityTuplizer
public void afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session)
EntityTuplizer
afterInitialize
in interface EntityTuplizer
afterInitialize
in class AbstractTuplizer
public boolean hasUninitializedLazyProperties(Object entity)
EntityTuplizer
hasUninitializedLazyProperties
in interface EntityTuplizer
hasUninitializedLazyProperties
in class AbstractTuplizer
public boolean isLazyPropertyLoadingAvailable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |