public class

PojoComponentTuplizer

extends AbstractComponentTuplizer
java.lang.Object
   ↳ org.hibernate.tuple.component.AbstractComponentTuplizer
     ↳ org.hibernate.tuple.component.PojoComponentTuplizer

Class Overview

A ComponentTuplizer specific to the pojo entity mode.

Summary

[Expand]
Inherited Fields
From class org.hibernate.tuple.component.AbstractComponentTuplizer
Public Constructors
PojoComponentTuplizer(Component component)
Public Methods
Class getMappedClass()
Object getParent(Object component)
Retreive 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?
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.
Protected Methods
Getter buildGetter(Component component, Property prop)
Instantiator buildInstantiator(Component component)
Setter buildSetter(Component component, Property prop)
[Expand]
Inherited Methods
From class org.hibernate.tuple.component.AbstractComponentTuplizer
From class java.lang.Object
From interface org.hibernate.tuple.Tuplizer
From interface org.hibernate.tuple.component.ComponentTuplizer

Public Constructors

public PojoComponentTuplizer (Component component)

Public Methods

public Class getMappedClass ()

public Object getParent (Object component)

Retreive the current value of the parent property.

Parameters
component The component instance from which to extract the parent property value.
Returns
  • The current value of the parent property.

public Object[] getPropertyValues (Object component)

Extract the current values contained on the given entity.

Parameters
component The entity from which to extract values.
Returns
  • The current property values.

public boolean hasParentProperty ()

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

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

public boolean isMethodOf (Method method)

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

Parameters
method The method which to check against the managed component.
Returns
  • True if the managed component is available from the managed component; else false.

public void setParent (Object component, Object parent, SessionFactoryImplementor factory)

Set the value of the parent property.

Parameters
component The component instance on which to set the parent.
parent The parent to be set on the comonent.
factory The current session factory.

public void setPropertyValues (Object component, Object[] values)

Inject the given values into the given entity.

Parameters
component The entity.
values The values to be injected.

Protected Methods

protected Getter buildGetter (Component component, Property prop)

protected Instantiator buildInstantiator (Component component)

protected Setter buildSetter (Component component, Property prop)