|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.basics.structs.AggregateUpdate
An AggregateUpdate holds an array of update messages which must be
executed together as a single transaction. The updates are performed
in order, and either succeed or fail as a single transaction.
To specify reference relationships between new instances, or between
existing instances and new instances, use temporary uniqueID values.
Any value below
TEMPIDTHRESHOLD is considered temporary, and will be remapped by
the DataManager preserving the defined relationships.
The updates are performed in the order they are given.
| Field Summary | |
protected int |
sandTransmissionCount
Counter value to aid in tracking sent messages. |
protected long |
sandTransmitAuthID
User ID for authorization context of this message. |
protected java.lang.String |
sandTransmitErrorMessage
Full description of the error message, and any accompanying information. |
protected int |
sandTransmitStatus
Status of the message. |
protected SandUpdateMessage[] |
updates
The updates comprising this transaction |
| Fields inherited from interface org.sandev.basics.structs.SandTransmitMessage |
APPERROR_NODE_UNAVAILABLE, APPERROR_NODE_UNKNOWN, APPERROR_NODE_UNREACHABLE, STATUS_APPERROR, STATUS_NORMAL, STATUS_SANDERROR, STATUS_SYSERROR |
| Constructor Summary | |
AggregateUpdate()
Default constructor. |
|
| Method Summary | |
void |
addUpdate(SandUpdateMessage element)
|
SandCollectionMessage |
getCollectionMessage()
There is no collection form for an AggregateUpdate so this returns null. |
long |
getNextTempID()
Return a new temporary uniqueID value for use in creation of a new instance. |
long |
getNextTempID(java.util.List updMsgs)
Works just like the no args version of the method, but also traverses all updates in the given list. |
SandQueryMessage |
getQueryMessage()
There is no query form for an AggregateUpdate so this returns null. |
int |
getSandTransmissionCount()
accessor for sandTransmissionCount |
long |
getSandTransmitAuthID()
accessor for sandTransmitAuthID |
java.lang.String |
getSandTransmitErrorMessage()
accessor for sandTransmitErrorMessage |
int |
getSandTransmitStatus()
accesor for sandTransmitstatus |
java.lang.String |
getShortName()
Return the short name for this message class. |
SandStructMessage |
getStructMessage()
There is no struct form for an AggregateUpdate so this returns null. |
SandUpdateMessage |
getUpdateMessage()
There is no update form for an AggregateUpdate so this returns null. |
SandUpdateMessage[] |
getUpdates()
accessor for updates |
boolean |
isEquivalent(SandMessage sm)
We don't yet know of a need for equality checking of aggregate updates, so this method always returns false. |
void |
setSandTransmissionCount(int val)
mutator for sandTransmissionCount |
void |
setSandTransmitAuthID(long id)
mutator for sandTransmitAuthID |
void |
setSandTransmitErrorMessage(java.lang.String errmsg)
mutator for sandTransmitErrorMessage |
void |
setSandTransmitStatus(int status)
mutator for sandTransmitstatus |
void |
setUpdates(SandUpdateMessage[] msgs)
mutator for updates |
java.lang.String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int sandTransmitStatus
SandTransmitMessage.
protected java.lang.String sandTransmitErrorMessage
protected long sandTransmitAuthID
protected int sandTransmissionCount
protected SandUpdateMessage[] updates
| Constructor Detail |
public AggregateUpdate()
| Method Detail |
public boolean isEquivalent(SandMessage sm)
isEquivalent in interface SandMessagepublic java.lang.String getShortName()
getShortName in interface SandMessagepublic SandQueryMessage getQueryMessage()
getQueryMessage in interface SandMessagepublic SandCollectionMessage getCollectionMessage()
getCollectionMessage in interface SandMessagepublic SandUpdateMessage getUpdateMessage()
getUpdateMessage in interface SandMessagepublic SandStructMessage getStructMessage()
getStructMessage in interface SandMessagepublic int getSandTransmitStatus()
getSandTransmitStatus in interface SandTransmitMessagepublic void setSandTransmitStatus(int status)
setSandTransmitStatus in interface SandTransmitMessagepublic java.lang.String getSandTransmitErrorMessage()
getSandTransmitErrorMessage in interface SandTransmitMessagepublic void setSandTransmitErrorMessage(java.lang.String errmsg)
setSandTransmitErrorMessage in interface SandTransmitMessagepublic long getSandTransmitAuthID()
getSandTransmitAuthID in interface SandTransmitMessagepublic void setSandTransmitAuthID(long id)
setSandTransmitAuthID in interface SandTransmitMessagepublic int getSandTransmissionCount()
getSandTransmissionCount in interface SandTransmitMessagepublic void setSandTransmissionCount(int val)
setSandTransmissionCount in interface SandTransmitMessagepublic SandUpdateMessage[] getUpdates()
public void setUpdates(SandUpdateMessage[] msgs)
public void addUpdate(SandUpdateMessage element)
public java.lang.String toString()
public long getNextTempID()
public long getNextTempID(java.util.List updMsgs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||