public class PojoComponentTuplizer extends AbstractComponentTuplizer
A ComponentTuplizer specific to the pojo entity mode.
| Type | Property and Description |
|---|---|
boolean |
hasParent
Does the component managed by this tuuplizer contain a parent property?
|
getters, hasCustomAccessors, instantiator, propertySpan, setters| Constructor and Description |
|---|
PojoComponentTuplizer(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected Getter |
buildGetter(Component component,
Property prop) |
protected Instantiator |
buildInstantiator(Component component) |
protected Setter |
buildSetter(Component component,
Property prop) |
Class |
getMappedClass()
Return the pojo class managed by this tuplizer.
|
Object |
getParent(Object component)
Retrieve the current value of the parent property.
|
Object[] |
getPropertyValues(Object component)
Extract the current values contained on the given entity.
|
boolean |
hasParentProperty()
Does the component managed by this tuuplizer contain a parent property?
|
boolean |
isMethodOf(Method method)
Is the given method available via the managed component as a property getter?
|
protected void |
setComponentClass(Component component) |
void |
setParent(Object component,
Object parent,
SessionFactoryImplementor factory)
Set the value of the parent property.
|
void |
setPropertyValues(Object component,
Object[] values)
Inject the given values into the given entity.
|
getGetter, getPropertyValue, instantiate, isInstancepublic boolean hasParentProperty
hasParentProperty in interface ComponentTuplizerhasParentProperty in class AbstractComponentTuplizerpublic PojoComponentTuplizer(Component component)
public Class getMappedClass()
TuplizerReturn the pojo class managed by this tuplizer. </p> Need to determine how to best handle this for the Tuplizers for EntityModes other than POJO. </p> todo : be really nice to not have this here since it is essentially pojo specific…
public Object[] getPropertyValues(Object component) throws HibernateException
TuplizerExtract the current values contained on the given entity.
getPropertyValues in interface TuplizergetPropertyValues in class AbstractComponentTuplizercomponent - The entity from which to extract values.HibernateExceptionpublic void setPropertyValues(Object component, Object[] values) throws HibernateException
TuplizerInject the given values into the given entity.
setPropertyValues in interface TuplizersetPropertyValues in class AbstractComponentTuplizercomponent - The entity.values - The values to be injected.HibernateExceptionpublic Object getParent(Object component)
ComponentTuplizerRetrieve the current value of the parent property.
getParent in interface ComponentTuplizergetParent in class AbstractComponentTuplizercomponent - The component instance from which to extract the parent
property value.public boolean hasParentProperty()
ComponentTuplizerDoes the component managed by this tuuplizer contain a parent property?
hasParentProperty in interface ComponentTuplizerhasParentProperty in class AbstractComponentTuplizerpublic boolean isMethodOf(Method method)
ComponentTuplizerIs the given method available via the managed component as a property getter?
isMethodOf in interface ComponentTuplizerisMethodOf in class AbstractComponentTuplizermethod - The method which to check against the managed component.public void setParent(Object component, Object parent, SessionFactoryImplementor factory)
ComponentTuplizerSet the value of the parent property.
setParent in interface ComponentTuplizersetParent in class AbstractComponentTuplizercomponent - The component instance on which to set the parent.parent - The parent to be set on the comonent.factory - The current session factory.protected Instantiator buildInstantiator(Component component)
buildInstantiator in class AbstractComponentTuplizerprotected Getter buildGetter(Component component, Property prop)
buildGetter in class AbstractComponentTuplizerprotected Setter buildSetter(Component component, Property prop)
buildSetter in class AbstractComponentTuplizerprotected void setComponentClass(Component component)
setComponentClass in class AbstractComponentTuplizerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.