|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.io.AbstractEntitySnapshot
org.spicefactory.pimento.io.AbstractApplicableEntitySnapshot
org.spicefactory.pimento.io.FullEntitySnapshot
public class FullEntitySnapshot
Represent an entity with all of its current property values. Some of these values may be uninitialized proxies though.
When an instance of this class gets populated, the order of addProperty invocations must correspond
to the order of properties in the associated EntityMetadata instance. Furthermore it must be guaranteed
that it will always be filled with values for all entity properties.
| Constructor Summary | |
|---|---|
FullEntitySnapshot()
Creates a new instance. |
|
FullEntitySnapshot(int metadataId,
Object entityId)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addProperty(Object value)
Add the specified property value to this instance. |
String |
getLogString(EntityMetadata metadata,
boolean includeProperties)
Returns a log String for this snapshot. |
EntityUpdate |
prepareUpdate(Object entity,
EntityMetadata metadata,
IoContext context)
Creates and returns an EntityUpdate instance that reflects the state of this instance. |
void |
readExternal(DataInput input)
Restores the content of this object from the DataInput instance. |
void |
writeExternal(DataOutput output)
Saves the content of this object to the DataOutput instance. |
| Methods inherited from class org.spicefactory.pimento.io.AbstractApplicableEntitySnapshot |
|---|
clearInvocationCache, getEntity, getProperties, hasEntity, isTransient, setEntity |
| Methods inherited from class org.spicefactory.pimento.io.AbstractEntitySnapshot |
|---|
equals, getEntityId, getMetadataId, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.spicefactory.pimento.io.EntitySnapshot |
|---|
getEntityId, getMetadataId |
| Constructor Detail |
|---|
public FullEntitySnapshot()
public FullEntitySnapshot(int metadataId,
Object entityId)
metadataId - the id of the metadata for this entityentityId - the id of the entity| Method Detail |
|---|
public void addProperty(Object value)
value - the property value to add to this snapshot
public EntityUpdate prepareUpdate(Object entity,
EntityMetadata metadata,
IoContext context)
ApplicableEntitySnapshot
entity - the entity the update will later be applied tometadata - the metadata for the specified entitycontext - the active IoContext
public void readExternal(DataInput input)
Externalizable
readExternal in interface ExternalizablereadExternal in class AbstractApplicableEntitySnapshotinput - the AMF3 data to read frompublic void writeExternal(DataOutput output)
Externalizable
writeExternal in interface ExternalizablewriteExternal in class AbstractApplicableEntitySnapshotoutput - the output to write to
public String getLogString(EntityMetadata metadata,
boolean includeProperties)
EntitySnapshot
getLogString in interface EntitySnapshotgetLogString in class AbstractEntitySnapshotmetadata - the metadata associated with this snapshotincludeProperties - whether properties should be included in the log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||