|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SandCollectionMessage
A collection of SandStructMessages, as would be returned from a query.
If a collection isComplete then it contains all of the
required instances. For example if the collection is being returned in
response to a SandQueryMessage, and all of the matching instances
are contained in the collection, then isComplete would be
true. If the collection is not complete, then the application must
retrieve the additional instances through subsequent queries.
Two factors contribute to the number of elements in a collection being constrained:
maxQueryReturn parameter and a maxQueryReturnSize
parameter which can be accessed by the
Persister. This is an upper
bound for all queries in the system, and is typically set high enough
so that the resulting collection is complete for all except very large
numbers of instances (over 1k instances).
maxReturn value of the query message.
The default ordering for collections is by uniqueID. To retrieve the
collection for the next dataset page with default ordering, simply set
the uniqueIDAfter field to the last uniqueID in the collection.
If custom ordering was used, then the application will need to figure out
the appropriate subsequent query based on that ordering. More information
on dataset pagination can be found in
UIGen.html
| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
void |
addElement(SandInstanceMessage elem)
Append an element to this collection. |
SandInstanceMessage[] |
getElements()
Retrieve the elements of this collection regardless of what kind of actual array it is. |
java.lang.String |
getQueryResult()
Return the result of the query function. |
boolean |
isComplete()
Return true if this collection contains all of the elements matching the source query, false otherwise. |
boolean |
removeElement(SandInstanceMessage elem)
Remove this element from the collection. |
void |
setComplete(boolean val)
Set the complete flag for this collection. |
void |
setElements(java.lang.Object[] elements)
Set the elements of this collection to the given array. |
void |
setQueryResult(java.lang.String val)
Set the result of the query function. |
| Methods inherited from interface org.sandev.basics.structs.SandTransmitMessage |
|---|
getSandTransmissionCount, getSandTransmissionLocale, getSandTransmitAuthID, getSandTransmitErrorCode, getSandTransmitErrorMessage, getSandTransmitStatus, setSandTransmissionCount, setSandTransmissionLocale, setSandTransmitAuthID, setSandTransmitError, setSandTransmitErrorCode, setSandTransmitErrorMessage, setSandTransmitStatus |
| Methods inherited from interface org.sandev.basics.structs.SandMessage |
|---|
getCollectionMessage, getQueryMessage, getShortName, getStructMessage, getUpdateMessage, isEquivalent |
| Method Detail |
|---|
SandInstanceMessage[] getElements()
void setElements(java.lang.Object[] elements)
void addElement(SandInstanceMessage elem)
boolean removeElement(SandInstanceMessage elem)
boolean isComplete()
void setComplete(boolean val)
java.lang.String getQueryResult()
void setQueryResult(java.lang.String val)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||