|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Tuplizer
A tuplizer defines the contract for things which know how to manage
a particular representation of a piece of data, given that
representation's EntityMode (the entity-mode
essentially defining which representation).
Element as the data structure and know how to access the
values as either nested Elements or as Attributes.
EntityTuplizer,
ComponentTuplizer| Method Summary | |
|---|---|
java.lang.Class |
getMappedClass()
Return the pojo class managed by this tuplizer. |
java.lang.Object |
getPropertyValue(java.lang.Object entity,
int i)
Extract the value of a particular property from the given entity. |
java.lang.Object[] |
getPropertyValues(java.lang.Object entity)
Extract the current values contained on the given entity. |
java.lang.Object |
instantiate()
Generate a new, empty entity. |
boolean |
isInstance(java.lang.Object object)
Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer. |
void |
setPropertyValues(java.lang.Object entity,
java.lang.Object[] values)
Inject the given values into the given entity. |
| Method Detail |
|---|
java.lang.Object[] getPropertyValues(java.lang.Object entity)
throws HibernateException
entity - The entity from which to extract values.
HibernateException
void setPropertyValues(java.lang.Object entity,
java.lang.Object[] values)
throws HibernateException
entity - The entity.values - The values to be injected.
HibernateException
java.lang.Object getPropertyValue(java.lang.Object entity,
int i)
throws HibernateException
entity - The entity from which to extract the property value.i - The index of the property for which to extract the value.
HibernateException
java.lang.Object instantiate()
throws HibernateException
HibernateExceptionboolean isInstance(java.lang.Object object)
object - The object to be checked.
java.lang.Class getMappedClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||