Top Description Methods
org.hibernate.tuple.component

public Interface ComponentTuplizer

extends Tuplizer, Serializable
Known Direct Implementers
org.hibernate.tuple.component.AbstractComponentTuplizer
Imports
java.io.Serializable, java.lang.reflect.Method, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.tuple.Tuplizer

Defines further responsibilities regarding tuplization based on a mapped components.

ComponentTuplizer implementations should have the following constructor signature: (org.hibernate.mapping.Component)
Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The current value of the parent property.
getParent
(Object
The component instance from which to extract the parent property value.
component
)

Retreive the current value of the parent property.

public boolean

Returns:

True if the component does contain a parent property; false otherwise.
hasParentProperty
()

Does the component managed by this tuuplizer contain a parent property?

public boolean

Returns:

True if the managed component is available from the managed component; else false.
isMethodOf
(Method
The method which to check against the managed component.
method
)

Is the given method available via the managed component as a property getter?

public void
setParent(Object
The component instance on which to set the parent.
component
,
Object
The parent to be set on the comonent.
parent
,
SessionFactoryImplementor
The current session factory.
factory
)

Set the value of the parent property.

Inherited from org.hibernate.tuple.Tuplizer:
getGettergetMappedClassgetPropertyValuegetPropertyValuesinstantiateisInstancesetPropertyValues

Method Detail

getParentback to summary
public Object getParent(Object component)

Retreive the current value of the parent property.

Parameters
component:Object

The component instance from which to extract the parent property value.

Returns:Object

The current value of the parent property.

hasParentPropertyback to summary
public boolean hasParentProperty()

Does the component managed by this tuuplizer contain a parent property?

Returns:boolean

True if the component does contain a parent property; false otherwise.

isMethodOfback to summary
public boolean isMethodOf(Method method)

Is the given method available via the managed component as a property getter?

Parameters
method:Method

The method which to check against the managed component.

Returns:boolean

True if the managed component is available from the managed component; else false.

setParentback to summary
public void setParent(Object component, Object parent, SessionFactoryImplementor factory)

Set the value of the parent property.

Parameters
component:Object

The component instance on which to set the parent.

parent:Object

The parent to be set on the comonent.

factory:SessionFactoryImplementor

The current session factory.