|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.transaction.TransactionResponse
public class TransactionResponse
Represents a transaction response to be sent to the client. Contains snapshots for loaded or refreshed entities as well as the return values for all operations that were executed within the transaction. Those return values may include non-entity values not managed by Pimento.
| Constructor Summary | |
|---|---|
TransactionResponse()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addLoadedSnapshot(EntitySnapshot snapshot)
Adds a snapshot for an entity to be loaded into the client. |
void |
addOperation(ServiceResponse response)
Adds the response for an operation that was executed within this transaction. |
void |
addPersistedSnapshot(EntitySnapshot snapshot)
Adds a snapshot for an entity that was persisted in this transaction. |
void |
addRefreshedSnapshot(EntitySnapshot snapshot)
Adds a snapshot for an entity that must be synchronized in the client. |
void |
addRemovedSnapshot(EntitySnapshot snapshot)
Adds a snapshot for an entity that needs to be removed from the client cache. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionResponse()
| Method Detail |
|---|
public void addLoadedSnapshot(EntitySnapshot snapshot)
snapshot - a snapshot for an entity to be loaded into the clientpublic void addPersistedSnapshot(EntitySnapshot snapshot)
snapshot - a snapshot for an entity that was persisted in this transactionpublic void addRefreshedSnapshot(EntitySnapshot snapshot)
snapshot - a snapshot for an entity that must be synchronized in the clientpublic void addRemovedSnapshot(EntitySnapshot snapshot)
snapshot - a snapshot for an entity that needs to be removed from the client cachepublic void addOperation(ServiceResponse response)
response - a response for an operation that was executed within this transactionpublic void readExternal(DataInput input)
Externalizable
readExternal in interface Externalizableinput - the AMF3 data to read frompublic void writeExternal(DataOutput output)
Externalizable
writeExternal in interface Externalizableoutput - the output to write to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||