|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.metadata.PropertyMetadata
org.spicefactory.pimento.metadata.EmbeddedPropertyMetadata
public class EmbeddedPropertyMetadata
The metadata for a single property of an embedded property of a persistent entity.
| Constructor Summary | |
|---|---|
EmbeddedPropertyMetadata()
Creates a new instance. |
|
EmbeddedPropertyMetadata(String name,
PropertyType type,
Property property,
Property ownerProperty)
Creates a new instance. |
|
| Method Summary | |
|---|---|
Object |
getValue(Object entity)
Retrieve the value of this property for the specified entity. |
Object |
getValueForSnapshot(Object entity,
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,
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)
Sets the specified property value of the given entity. |
void |
writeExternal(DataOutput output)
Saves the content of this object to the DataOutput instance. |
| Methods inherited from class org.spicefactory.pimento.metadata.PropertyMetadata |
|---|
convertValue, getName, isReadOnly, isRefreshable, readExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedPropertyMetadata()
public EmbeddedPropertyMetadata(String name,
PropertyType type,
Property property,
Property ownerProperty)
name - the name of the propertytype - the type of the propertyproperty - the reflection instanceownerProperty - the embedded property of the persistent entity| Method Detail |
|---|
public Object getValue(Object entity)
PropertyMetadata
getValue in class PropertyMetadataentity - the entity to retrieve the value for
public Object getValueForSnapshot(Object entity,
IoContext context,
FetchMode fetchMode)
PropertyMetadata
getValueForSnapshot in class PropertyMetadataentity - the entity to extract the property value fromcontext - the active IoContextfetchMode - the fetch mode to use
public Object prepareValueFromSnapshot(Object entity,
Object value,
IoContext context,
boolean createChangeSet)
PropertyMetadata
prepareValueFromSnapshot in class PropertyMetadataentity - the entity to prepare the property forvalue - the new value for the propertycontext - the active IoContextcreateChangeSet - whether a change set is being created
public void setValue(Object entity,
Object value)
PropertyMetadata
setValue in class PropertyMetadataentity - the entity to set the property forvalue - the new value for the propertypublic void writeExternal(DataOutput output)
Externalizable
writeExternal in interface ExternalizablewriteExternal in class PropertyMetadataoutput - the output to write to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||