|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.db.Db | +--ORG.oclc.db.DbDeleted
Fields inherited from class ORG.oclc.db.Db |
CLOSED,
dbNames,
dbVersion,
dumpConfigInfo,
globals,
modeNames,
OPEN,
opsClient,
parents,
sortMap,
UPDATE,
users,
WAITINGTOCLOSE |
Method Summary | |
void |
accessAllowed(Object dbUserData)
Determines whether the user is authorized to search the database and throws the appropriate exception indicating whether some action needs to be taken. |
void |
accessControl(Object accessControlResponse,
Object dbUserData)
Process the information from an AccessControl response to set user specific authorization information. |
TermInfo[] |
browse(String query,
int preferredPosition,
int numTerms,
DataDir Z39attributesPlusTerm,
DataDir resultSetAttributes,
int stepSize,
Object dbUserData)
Perform a browse. |
void |
close()
close this Db. |
void |
connect(Object userInformation,
Object dbUserData)
Create a connection to this Db for a user. |
void |
deleteHitlist(String hitlist,
Object dbUserData)
Delete the specified hitlist. |
void |
disconnect(Object dbUserData)
Destroy a connection to this Db for a user. |
ExtSvcData |
extsvc(ExtSvcData esData,
ExtSvcHandler esHandler,
Object dbUserData)
Performs an Extended Services request. |
TermComponentPostings[] |
getComponentResults(String hitlist,
Object dbUserData)
Get the database component term postings summaries for the specified hitlist. |
DbResults[] |
getDbResults(String hitlist,
Object dbUserData)
Get the database search summaries for the specified hitlist. |
boolean |
hasUsers()
Check if any users are associated with this Db. |
protected boolean |
init(IniFile inifile,
String which)
Initialize this Db object. |
Object |
initDbUserData(String sessionId,
Object access,
Log log,
Object userDbMap)
Creates a database User data object for searching the database - Each database has it's own unique DbUserData object. |
boolean |
OK()
Check if the Db is open and ready for requests. |
int |
postings(String hitlist,
Object dbUserData)
Get postings for a specified hitlist. |
DbPresentData[] |
present(String hitlist,
int startPoint,
int numRecs,
String elementSetName,
String syntax,
Object dbUserData)
Get the specified records from the specified hitlist. |
int |
search(String query,
String hitlist,
boolean replaceFlag,
DataDir Z39attributesPlusTerm,
boolean doRestrictorSummary,
Object additionalSearchInfo,
Object dbUserData)
Perform a search. |
void |
sort(String hitlist,
String sortedList,
String[] keys,
int[] order,
boolean fUseSortAttributes,
boolean sortAccrossDbs,
Object dupCritera,
Object userData)
Sort the hitlist according to the keys. |
protected boolean |
supportsScan()
Does this Db support scan requests? |
protected boolean |
supportsSort()
Does this Db support sort requests? |
protected void |
unsort(String hitlist,
Object userData)
Unsort the hitlist. |
Methods inherited from class ORG.oclc.db.Db |
browse,
buildSortKeys,
closewhenidle,
dbnames,
deleteHitlist,
filterName,
getDb,
getDbNames,
getDbs,
getGlobals,
getName,
getOpenedFilesCount,
getOutstandingCount,
getStats,
numUsers,
openDb,
openDbs,
present,
rolldatabase,
rolldatabaseusers,
search,
setOps,
setSearchMode,
SetupDatabase,
SetupDatabase,
sort,
sort,
updateOpenedFiles |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public Object initDbUserData(String sessionId, Object access, Log log, Object userDbMap)
sessionId
- assigned by something elseaccess
- the object containing access info to connect to an
access serverlog
- the Log object for the user for tracingpublic void accessAllowed(Object dbUserData) throws AccessControl, Diagnostic1
dbUserData
- user data object containing hitlistspublic int postings(String hitlist, Object dbUserData) throws Diagnostic1
hitlist
- result set namedbUserData
- user data object containing hitlistsprotected boolean init(IniFile inifile, String which) throws Exception
inifile
- for parameterswhich
- section name for inifile for this Dbprotected boolean supportsScan()
protected boolean supportsSort()
public DbPresentData[] present(String hitlist, int startPoint, int numRecs, String elementSetName, String syntax, Object dbUserData) throws Exception, Diagnostic1
hitlist
- result set namestartPoint
- starts at 1numRecs
- to retrieveelementSetName
- view of record to retrievesyntax
- in which to return recorddbUserData
- user data containing hitlistspublic int search(String query, String hitlist, boolean replaceFlag, DataDir Z39attributesPlusTerm, boolean doRestrictorSummary, Object additionalSearchInfo, Object dbUserData) throws Exception, Diagnostic1, AccessControl, PartialResults
query
- type 0 query or null if this is not type 0hitlist
- result set name to createreplaceFlag
- can this hitlist overwrite a previous one?Z39attributesPlusTerm
- non-type 0 querydoRestrictorSummary
- flag to return a summary of recordsadditionalSearchInfo
- the Z39.50 additional Search Info fielddbUserData
- user data containing hitlistspublic TermInfo[] browse(String query, int preferredPosition, int numTerms, DataDir Z39attributesPlusTerm, DataDir resultSetAttributes, int stepSize, Object dbUserData) throws Exception, Diagnostic1, AccessControl, PartialResults
query
- starting termpreferredPosition
- of the query term in the returned listnumTerms
- to returnZ39attributesPlusTerm
- term plus starting point attributesresultSetAttributes
- result set attributes if they are different
from the starting point attributesstepSize
- number of terms between termsdbUserData
- user data containing hitlistspublic ExtSvcData extsvc(ExtSvcData esData, ExtSvcHandler esHandler, Object dbUserData) throws Exception, Diagnostic1, AccessControl
function
- the ES function - see Z39.50 apipackageType
- the type of ES requestesTask
- the ES task packageuserId
- the ES userIddescription
- the ES description field.packageName
- the ES package namewaitAction
- the ES wait action valuepublic void deleteHitlist(String hitlist, Object dbUserData) throws Exception, Diagnostic1
hitlist
- the one to deletedbUserData
- user data containing hitlistspublic boolean OK()
public DbResults[] getDbResults(String hitlist, Object dbUserData)
hitlist
- result set namedbUserData
- user data containing hitlistspublic TermComponentPostings[] getComponentResults(String hitlist, Object dbUserData)
hitlist
- result set namedbUserData
- user data containing hitlistspublic void accessControl(Object accessControlResponse, Object dbUserData)
accessControlResponse
- object containing the access control
responsedbUserData
- user data containing hitlistspublic void close()
public boolean hasUsers()
public void connect(Object userInformation, Object dbUserData) throws Diagnostic1
userInformation
- the userInformation data from the Z3950 Init requestdbUserData
- the user's database information for searching the
database.public void disconnect(Object dbUserData)
dbUserData
- created by connectpublic void sort(String hitlist, String sortedList, String[] keys, int[] order, boolean fUseSortAttributes, boolean sortAccrossDbs, Object dupCritera, Object userData) throws Exception, Diagnostic1
hitlist
- result set namesortedList
- result set name for sorted resultskeys
- sort key parametersorder
- ascending or descendingfUseSortAttributes
- flag to sort by use attributessortAccrossDatabases
- flag to indicate to tell the ZBase that
the results should be the sort of all the records from all the databases
in the group vs. having the sorts be within each db not merged together
where true indicates to sort accross database boundaries.dupCriteria
- the dedup criteria to use for a dedup sort.
for each record.userData
- user data containing hitlistsprotected void unsort(String hitlist, Object userData)
hitlist
- result set name
userData user data containing hitlists
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |