org.hibernate.tuple.component
Interface ComponentTuplizer
- Serializable, Tuplizer
- AbstractComponentTuplizer, Dom4jComponentTuplizer, DynamicMapComponentTuplizer, PojoComponentTuplizer
public interface ComponentTuplizer
Defines further responsibilities reagarding tuplization based on
a mapped components.
ComponentTuplizer implementations should have the following constructor signature:
(org.hibernate.mapping.Component)
Object | getParent(Object component)- Retreive the current value of the parent property.
|
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?
|
void | setParent(Object component, Object parent, SessionFactoryImplementor factory)- Set the value of the parent property.
|
getParent
public Object getParent(Object component)
Retreive the current value of the parent property.
component - The component instance from which to extract the parent
property value.
- The current value of the parent property.
hasParentProperty
public boolean hasParentProperty()
Does the component managed by this tuuplizer contain a parent property?
- True if the component does contain a parent property; false otherwise.
isMethodOf
public boolean isMethodOf(Method method)
Is the given method available via the managed component as a property getter?
method - The method which to check against the managed component.
- True if the managed component is available from the managed component; else false.
setParent
public void setParent(Object component,
Object parent,
SessionFactoryImplementor factory) Set the value of the parent property.
component - The component instance on which to set the parent.parent - The parent to be set on the comonent.factory - The current session factory.