public class PojoComponentTuplizer extends AbstractComponentTuplizer
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) |
java.lang.Class |
getMappedClass()
Return the pojo class managed by this tuplizer.
|
java.lang.Object |
getParent(java.lang.Object component)
Retrieve the current value of the parent property.
|
java.lang.Object[] |
getPropertyValues(java.lang.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(java.lang.reflect.Method method)
Is the given method available via the managed component as a property getter?
|
void |
setParent(java.lang.Object component,
java.lang.Object parent,
SessionFactoryImplementor factory)
Set the value of the parent property.
|
void |
setPropertyValues(java.lang.Object component,
java.lang.Object[] values)
Inject the given values into the given entity.
|
getGetter, getPropertyValue, instantiate, isInstance
public boolean hasParentProperty
hasParentProperty
in interface ComponentTuplizer
hasParentProperty
in class AbstractComponentTuplizer
public PojoComponentTuplizer(Component component)
public java.lang.Class getMappedClass()
Tuplizer
public java.lang.Object[] getPropertyValues(java.lang.Object component) throws HibernateException
Tuplizer
getPropertyValues
in interface Tuplizer
getPropertyValues
in class AbstractComponentTuplizer
component
- The entity from which to extract values.HibernateException
public void setPropertyValues(java.lang.Object component, java.lang.Object[] values) throws HibernateException
Tuplizer
setPropertyValues
in interface Tuplizer
setPropertyValues
in class AbstractComponentTuplizer
component
- The entity.values
- The values to be injected.HibernateException
public java.lang.Object getParent(java.lang.Object component)
ComponentTuplizer
getParent
in interface ComponentTuplizer
getParent
in class AbstractComponentTuplizer
component
- The component instance from which to extract the parent
property value.public boolean hasParentProperty()
ComponentTuplizer
hasParentProperty
in interface ComponentTuplizer
hasParentProperty
in class AbstractComponentTuplizer
public boolean isMethodOf(java.lang.reflect.Method method)
ComponentTuplizer
isMethodOf
in interface ComponentTuplizer
isMethodOf
in class AbstractComponentTuplizer
method
- The method which to check against the managed component.public void setParent(java.lang.Object component, java.lang.Object parent, SessionFactoryImplementor factory)
ComponentTuplizer
setParent
in interface ComponentTuplizer
setParent
in class AbstractComponentTuplizer
component
- 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 AbstractComponentTuplizer
protected Getter buildGetter(Component component, Property prop)
buildGetter
in class AbstractComponentTuplizer
protected Setter buildSetter(Component component, Property prop)
buildSetter
in class AbstractComponentTuplizer
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.