Top Description Methods
org.hibernate.tuple

public Interface Tuplizer

Annotations
@Deprecated
Imports
org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy, org.hibernate.metamodel.RepresentationMode, org.hibernate.property.access.spi.Getter

Deprecated

See ManagedTypeRepresentationStrategy

A tuplizer defines the contract for things which know how to manage a particular representation of a piece of data, given that representation's RepresentationMode (the entity-mode essentially defining which representation).

If that given piece of data is thought of as a data structure, then a tuplizer is the thing which knows how to

For example, a given piece of data might be represented as a POJO class. Here, it's representation and entity-mode is POJO. Well a tuplizer for POJO entity-modes would know how to

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Getter

Returns:

The property getter.
getGetter
(int
The property index.
i
)

Retrieve the getter for the specified property.

public Class<?>

Returns:

The persistent class.
getMappedClass
()

Return the pojo class managed by this tuplizer.

public Object

Returns:

The current value of the given property on the given entity.
getPropertyValue
(Object
The entity from which to extract the property value.
entity
,
int
The index of the property for which to extract the value.
i
)

Extract the value of a particular property from the given entity.

Method Detail

getGetterback to summary
public Getter getGetter(int i)

Retrieve the getter for the specified property.

Parameters
i:int

The property index.

Returns:Getter

The property getter.

getMappedClassback to summary
public Class<?> getMappedClass()

Return the pojo class managed by this tuplizer.

Need to determine how to best handle this for the Tuplizers for EntityModes other than POJO.

todo : be really nice to not have this here since it is essentially pojo specific...

Returns:Class<?>

The persistent class.

getPropertyValueback to summary
public Object getPropertyValue(Object entity, int i)

Extract the value of a particular property from the given entity.

Parameters
entity:Object

The entity from which to extract the property value.

i:int

The index of the property for which to extract the value.

Returns:Object

The current value of the given property on the given entity.