|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.StdoutLogging
fedora.server.search.FieldSearchSQLImpl
Title: FieldSearchSQLImpl.java
Description: A FieldSearch implementation that uses a relational database as a backend.
| Field Summary | |
static java.lang.String[] |
DB_COLUMN_NAMES
|
| Fields inherited from class fedora.server.StdoutLogging |
CONFIG, FINE, FINER, FINEST, INFO, SEVERE, WARNING |
| Constructor Summary | |
FieldSearchSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
int maxResults,
int maxSecondsPerSession,
Logging logTarget)
Construct a FieldSearchSQLImpl. |
|
| Method Summary | |
boolean |
delete(java.lang.String pid)
Remove an object from the search indexes. |
FieldSearchResult |
findObjects(java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
Search across specific fields and return the desired fields. |
static java.lang.String |
getDbValueCaseSensitive(java.util.List dcItem)
|
FieldSearchResult |
resumeFindObjects(java.lang.String sessionToken)
Resume an in-progress search across specific fields and return the desired fields. |
void |
update(DOReader reader)
Update the search indexes with information from the provided DOReader. |
| 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 |
| Field Detail |
public static java.lang.String[] DB_COLUMN_NAMES
| Constructor Detail |
public FieldSearchSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
int maxResults,
int maxSecondsPerSession,
Logging logTarget)
cPool - the ConnectionPool with connections to the db containing
the fieldsrepoReader - the RepositoryReader to use when getting the original
values of the fieldsmaxResults - the maximum number of results to return at a time,
regardless of what the user might requestlogTarget - where to send log messages| Method Detail |
public void update(DOReader reader)
throws ServerException
FieldSearch
update in interface FieldSearchreader - the DOReader containing all the field information
for the object
ServerException - if anything went wrong
public boolean delete(java.lang.String pid)
throws ServerException
FieldSearch
delete in interface FieldSearchpid - the unique id of the object whose info should be removed
ServerException - if anything went wrong
public FieldSearchResult findObjects(java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws UnrecognizedFieldException,
ObjectIntegrityException,
RepositoryConfigurationException,
StreamIOException,
ServerException,
StorageDeviceException
FieldSearch
findObjects in interface FieldSearchresultFields - the desired fieldsmaxResults - the maximum number of results the client wantsquery - the query
ServerException - if anything went wrong
UnrecognizedFieldException
ObjectIntegrityException
RepositoryConfigurationException
StreamIOException
StorageDeviceException
public FieldSearchResult resumeFindObjects(java.lang.String sessionToken)
throws UnrecognizedFieldException,
ObjectIntegrityException,
RepositoryConfigurationException,
StreamIOException,
ServerException,
UnknownSessionTokenException
FieldSearch
resumeFindObjects in interface FieldSearchsessionToken - the token of the session in which the remaining
results can be found
ServerException - if anything went wrong
UnrecognizedFieldException
ObjectIntegrityException
RepositoryConfigurationException
StreamIOException
UnknownSessionTokenExceptionpublic static java.lang.String getDbValueCaseSensitive(java.util.List dcItem)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||