public class ResultPage extends Result
Result.getResults()
method of the
Result
base class. Since paging methods may return only a subset of all
the results getAvailableItems()
can be used to get the total number of results
available on the server.Result
,
ResultList
,
Serialized FormConstructor and Description |
---|
ResultPage() |
Modifier and Type | Method and Description |
---|---|
void |
addResults(java.lang.Object[] results_)
Add results to the result page.
|
long |
getAvailableItems()
Returns the total number of items available on the server (as opposed to the number
of items actually returned by the service call and stored in the result page, which
may be different when using a paging method and specifying a batch size that is less
than the total number of results on the server).
|
java.lang.Integer[] |
getCodesForFailedIds()
Returns the codes for why the requested objects that were not returned from the
server couldn't be returned.
|
java.lang.Long[] |
getFailedIds()
Returns the ids of any objects requested but not returned from the server.
|
java.lang.Object |
getParent()
Returns the parent object of the results (for instance, if getting a page of members
of a group, this field might be populated with the group ID).
|
void |
setAvailableItems(long availableItems_)
See
getAvailableItems() . |
void |
setCodesForFailedIds(java.lang.Integer[] codesForFailedIds_)
|
void |
setFailedIds(java.lang.Long[] failedIds_)
See
getFailedIds() . |
void |
setParent(java.lang.Object object_)
See
getParent() . |
java.lang.String |
toString()
Returns the
ResultPage and its array of results as a string. |
getNumResults, getResults, setResults
public java.lang.String toString()
ResultPage
and its array of results as a string.public long getAvailableItems()
setAvailableItems(long)
public void setAvailableItems(long availableItems_)
getAvailableItems()
.availableItems_
- The number of available items.getAvailableItems()
public void addResults(java.lang.Object[] results_)
results_
- The objects to add to the result page.public java.lang.Long[] getFailedIds()
getCodesForFailedIds()
.setFailedIds(Long[])
public void setFailedIds(java.lang.Long[] failedIds_)
getFailedIds()
.failedIds_
- An array of failed ids.getFailedIds()
public java.lang.Integer[] getCodesForFailedIds()
getFailedIds()
.setCodesForFailedIds(Integer[])
public void setCodesForFailedIds(java.lang.Integer[] codesForFailedIds_)
codesForFailedIds_
- The codes for why the requested objects that were not returned from the
server couldn't be returned.getCodesForFailedIds()
public java.lang.Object getParent()
setParent(Object)
public void setParent(java.lang.Object object_)
getParent()
.object_
- The parent object of the resultsgetParent()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.