public class FieldSearchResultSQLImpl extends Object implements FieldSearchResult
A FieldSearchResultSQLImpl is intended to be re-used in cases where the results of a query require more than one call to the server.
| Modifier | Constructor and Description |
|---|---|
protected |
FieldSearchResultSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
String[] resultFields,
int maxResults,
int maxSeconds,
FieldSearchQuery query)
Construct a FieldSearchResultSQLImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCompleteListSize() |
long |
getCursor() |
Date |
getExpirationDate() |
String |
getToken() |
protected boolean |
isExpired() |
List |
objectFieldsList() |
protected void |
step()
Update object with the next chunk of results.
|
protected FieldSearchResultSQLImpl(ConnectionPool cPool, RepositoryReader repoReader, String[] resultFields, int maxResults, int maxSeconds, FieldSearchQuery query) throws SQLException, QueryParseException
cPool - the connectionPoolrepoReader - the provider of object field information for resultsresultFields - which fields should be returned in resultsmaxResults - how many results should be returned at one time. This should be
the smaller of a) the FieldSearchImpl's limit [the server limit]
and b) the requested limit [the client limit]query - the end-user querySQLExceptionQueryParseExceptionprotected boolean isExpired()
protected void step()
throws UnrecognizedFieldException,
ObjectIntegrityException,
RepositoryConfigurationException,
StreamIOException,
ServerException
public List objectFieldsList()
objectFieldsList in interface FieldSearchResultpublic String getToken()
getToken in interface FieldSearchResultpublic long getCursor()
getCursor in interface FieldSearchResultpublic long getCompleteListSize()
getCompleteListSize in interface FieldSearchResultpublic Date getExpirationDate()
getExpirationDate in interface FieldSearchResultCopyright © 2013 DuraSpace. All Rights Reserved.