|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.type.AbstractPropertyType
public abstract class AbstractPropertyType
Base class for all simple properties.
| Constructor Summary | |
|---|---|
AbstractPropertyType()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPropertyType()
| Method Detail |
|---|
public Object getValueForSnapshot(Object entity,
Property property,
IoContext context,
FetchMode fetchMode)
PropertyTypeIoContext instance. Simple values
could be returned as-is in most cases.
getValueForSnapshot in interface PropertyTypeentity - 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
public Object prepareValueFromSnapshot(Object entity,
Object value,
Property property,
IoContext context,
boolean createChangeSet)
PropertyTypeEntityUpdate
instance which gets passed to any configured interceptors before the property is applied with
the setValue method of this class.
prepareValueFromSnapshot in interface PropertyTypeentity - 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
public void setValue(Object entity,
Object value,
Property property)
PropertyTypeprepareValueFromSnapshot method of this class before this method
gets invoked.
setValue in interface PropertyTypeentity - 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 | ||||||||