|
||||||||||
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 Element
s or as Attribute
s.
EntityTuplizer
,
ComponentTuplizer
Method Summary | |
---|---|
Class |
getMappedClass()
Return the pojo class managed by this tuplizer. |
Object |
getPropertyValue(Object entity,
int i)
Extract the value of a particular property from the given entity. |
Object[] |
getPropertyValues(Object entity)
Extract the current values contained on the given entity. |
Object |
instantiate()
Generate a new, empty entity. |
boolean |
isInstance(Object object)
Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer. |
void |
setPropertyValues(Object entity,
Object[] values)
Inject the given values into the given entity. |
Method Detail |
---|
Object[] getPropertyValues(Object entity) throws HibernateException
entity
- The entity from which to extract values.
HibernateException
void setPropertyValues(Object entity, Object[] values) throws HibernateException
entity
- The entity.values
- The values to be injected.
HibernateException
Object getPropertyValue(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
Object instantiate() throws HibernateException
HibernateException
boolean isInstance(Object object)
object
- The object to be checked.
Class getMappedClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |