|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.io.TypeSnapshot
org.spicefactory.pimento.io.EntitySnapshot
public class EntitySnapshot
Disassembled snapshot representation of a persistent entity type.
| Field Summary |
|---|
| Fields inherited from class org.spicefactory.pimento.io.TypeSnapshot |
|---|
EMPTY, FULL, PARTIAL, propertyValues |
| Constructor Summary | |
|---|---|
EntitySnapshot()
Creates a new instance. |
|
EntitySnapshot(Object instance,
Entity entity)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Object |
getEntityId()
Returns the id of the entity. |
int |
getTransientId()
Returns the temporary id in case this snapshot represents a transient entity. |
int |
getTypeHandle()
Returns the type handle of the associated entity. |
int |
hashCode()
|
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.TypeSnapshot |
|---|
addProperty, addProperty, getPropertyIterator, isEmpty, isPartial, readProperties, writeProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntitySnapshot()
public EntitySnapshot(Object instance,
Entity entity)
instance - the instance to create a snapshot forentity - the metamodel for the entity| Method Detail |
|---|
public int getTypeHandle()
public Object getEntityId()
public int getTransientId()
public void readExternal(DataInput input)
Externalizable
readExternal in interface ExternalizablereadExternal in class TypeSnapshotinput - the AMF3 data to read frompublic void writeExternal(DataOutput output)
Externalizable
writeExternal in interface ExternalizablewriteExternal in class TypeSnapshotoutput - the output to write topublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||