|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.StdoutLogging
fedora.server.search.FieldSearchResultSQLImpl
Title: FieldSearchResultSQLImpl.java
Description: A FieldSearchResults object returned as the result of a FieldSearchSQLImpl search.
A FieldSearchResultSQLImpl is intended to be re-used in cases where the results of a query require more than one call to the server.
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Field Summary |
| Fields inherited from class fedora.server.StdoutLogging |
CONFIG, FINE, FINER, FINEST, INFO, SEVERE, WARNING |
| Constructor Summary | |
protected |
FieldSearchResultSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
java.lang.String[] resultFields,
int maxResults,
int maxSeconds,
FieldSearchQuery query,
Logging logTarget)
Construct a FieldSearchResultSQLImpl object. |
| Method Summary | |
long |
getCompleteListSize()
|
long |
getCursor()
|
java.util.Date |
getExpirationDate()
|
java.lang.String |
getToken()
|
protected boolean |
isExpired()
|
java.util.List |
objectFieldsList()
|
protected void |
step()
Update object with the next chunk of results. |
| Methods inherited from class fedora.server.StdoutLogging |
logConfig, logFine, logFiner, logFinest, loggingConfig, loggingFine, loggingFiner, loggingFinest, loggingInfo, loggingSevere, loggingWarning, logInfo, logSevere, logWarning, setLogLevel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected FieldSearchResultSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
java.lang.String[] resultFields,
int maxResults,
int maxSeconds,
FieldSearchQuery query,
Logging logTarget)
throws java.sql.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 querylogTarget - where to send log messages| Method Detail |
protected boolean isExpired()
protected void step()
throws UnrecognizedFieldException,
ObjectIntegrityException,
RepositoryConfigurationException,
StreamIOException,
ServerException
UnrecognizedFieldException
ObjectIntegrityException
RepositoryConfigurationException
StreamIOException
ServerExceptionpublic java.util.List objectFieldsList()
objectFieldsList in interface FieldSearchResultpublic java.lang.String getToken()
getToken in interface FieldSearchResultpublic long getCursor()
getCursor in interface FieldSearchResultpublic long getCompleteListSize()
getCompleteListSize in interface FieldSearchResultpublic java.util.Date getExpirationDate()
getExpirationDate in interface FieldSearchResult
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||