public interface WGResultSet
| Modifier and Type | Method and Description |
|---|---|
WGContentList |
getContentList()
Called to retrieve a list of all content in this result set.
|
WGContentList |
getContentList(int start,
int length)
Called to retrieve a subset of content of this result set.
|
long |
getExecutionTime()
This method may return the execution time of the backend query in milliseconds.
|
de.innovationgate.utils.SkippingIterator<WGContent> |
getResultIterator()
Returns an iterator iterating over the results
|
boolean |
hasResults()
Indicates if the result set contains any results
|
boolean |
isLimitingResultsInBackend()
Indicates if the query type does honor result size limits, give via
WGDatabase.QUERYOPTION_MAXRESULTS. |
void |
limitResults(int limit)
Call to limit the results to return to the given count.
|
int |
results()
Number of results that are in this results set.
|
int results()
throws WGBackendException
WGBackendExceptionboolean hasResults()
throws WGBackendException
WGBackendExceptionWGContentList getContentList(int start, int length) throws WGAPIException
start - Starting index of contents to be retrieved. First index is 1.length - Number of contents to be retrievedWGAPIExceptionWGContentList getContentList() throws WGAPIException
WGAPIExceptionde.innovationgate.utils.SkippingIterator<WGContent> getResultIterator() throws WGAPIException
WGAPIExceptionvoid limitResults(int limit)
throws WGBackendException
limit - Maximum number of results to return.WGBackendExceptionlong getExecutionTime()
boolean isLimitingResultsInBackend()
WGDatabase.QUERYOPTION_MAXRESULTS. False means that the result set does not limit itself, and the limit must be enforced by WGA (for example via limitResults(int)