public class WGStandardResultSet extends WGAbstractResultSet
Modifier and Type | Class and Description |
---|---|
class |
WGStandardResultSet.FetchingIterator |
Constructor and Description |
---|
WGStandardResultSet(WGDatabase db,
WGResultSetCore core,
java.util.Map parameters,
java.lang.String query)
Constructor.
|
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
|
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.
|
close, isLimitingResultsInBackend, iterator
public WGStandardResultSet(WGDatabase db, WGResultSetCore core, java.util.Map parameters, java.lang.String query)
db
- core
- parameters
- public WGContentList getContentList() throws WGAPIException
WGResultSet
WGAPIException
public WGContentList getContentList(int start, int length) throws WGAPIException
WGResultSet
start
- Starting index of contents to be retrieved. First index is 1.length
- Number of contents to be retrievedWGAPIException
public int results() throws WGBackendException
WGResultSet
WGBackendException
public void limitResults(int limit) throws WGBackendException
WGResultSet
limit
- Maximum number of results to return.WGBackendException
public de.innovationgate.utils.SkippingIterator<WGContent> getResultIterator() throws WGAPIException
WGResultSet
WGAPIException
public boolean hasResults() throws WGBackendException
WGResultSet
WGBackendException
public long getExecutionTime()
WGResultSet