org.hibernate.EntityMode (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 toorg.dom4j.Element as the data structure and know how to access the
values as either nested org.dom4j.Element s or as org.dom4j.Attribute s.
org.hibernate.tuple.entity.EntityTuplizer , org.hibernate.tuple.component.ComponentTuplizer
| Modifier and Type | Method and Description |
|---|---|
| public Getter | Returns: The property getter.The property index. i)Retrieve the getter for the specified property. |
| public Class | |
| public Object | Returns: The current value of the given property on the given entity.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. |
| public Object[] | Returns: The current property values.The entity from which to extract values. entity)Extract the current values contained on the given entity. |
| public Object | |
| public boolean | Returns: True if the object is considered as an instance of this entity within the given mode.The object to be checked. object)Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer. |
| public void | setPropertyValues(Object
The entity. entity, Object[] The values to be injected. values)Inject the given values into the given entity. |
| getGetter | back to summary |
|---|---|
| public Getter getGetter(int i) Retrieve the getter for the specified property.
| |
| getMappedClass | back to summary |
|---|---|
| public Class 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...
| |
| getPropertyValue | back to summary |
|---|---|
| public Object getPropertyValue(Object entity, int i) Extract the value of a particular property from the given entity. | |
| getPropertyValues | back to summary |
|---|---|
| public Object[] getPropertyValues(Object entity) Extract the current values contained on the given entity. | |
| instantiate | back to summary |
|---|---|
| public Object instantiate() Generate a new, empty entity.
| |
| isInstance | back to summary |
|---|---|
| public boolean isInstance(Object object) Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer.
| |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(Object entity, Object[] values) Inject the given values into the given entity. | |