|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PropertyType
Represents a single type of property and encapsulates the mechanism with which values for that type are converted from and to entity snapshots.
| Method Summary | |
|---|---|
Object |
getValueForSnapshot(Object entity,
Property property,
IoContext context,
FetchMode fetchMode)
Reads the specified property from the given entity and returns it in a form suitable for inclusion in an entity snapshot. |
Object |
prepareValueFromSnapshot(Object entity,
Object value,
Property property,
IoContext context,
boolean createChangeSet)
Prepares the specified property value, performing all necessary conversions, but without actually applying it to the specified entity. |
void |
setValue(Object entity,
Object value,
Property property)
Sets the specified property value of the given entity. |
| Method Detail |
|---|
Object getValueForSnapshot(Object entity,
Property property,
IoContext context,
FetchMode fetchMode)
IoContext instance. Simple values
could be returned as-is in most cases.
entity - the entity to extract the property value fromproperty - the property to extractcontext - the active IoContextfetchMode - the fetchMode to use if the property type is an association
Object prepareValueFromSnapshot(Object entity,
Object value,
Property property,
IoContext context,
boolean createChangeSet)
EntityUpdate
instance which gets passed to any configured interceptors before the property is applied with
the setValue method of this class.
entity - the entity to prepare the property forvalue - the new value for the propertyproperty - the property to preparecontext - the active IoContextcreateChangeSet - whether a change set is being created
void setValue(Object entity,
Object value,
Property property)
prepareValueFromSnapshot method of this class before this method
gets invoked.
entity - the entity to set the property forvalue - the new value for the propertyproperty - the property to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||