|
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.webz.Db
The Db class maintains configuration for a Z39.50 Database. This information is used to customize Z39.50 access for the database. The configuration settings are read from the database inifile. Db also provides methods to retrieve configuration information for the database.
ZServer
,
Log
,
IndexMap
,
Sort
Field Summary | |
protected String |
alternateThesaurusDbName
String data type containing the name of an alternate associated thesaurus database. |
protected DbAttributes |
attributes
DbAttributes object contains the set of index specificat |
protected String |
dbIniFile
String data type containing the name of the configuration inifile for the database. |
protected DedupKeys |
dedup
DedupKeys object containing the sort parameters for the database. |
protected boolean |
fCanDoScan
boolean data type indicating whether this database supports scan (default=Z3950 server setting). |
protected boolean |
fCanDoSort
boolean data type indicating whether this database supports sort (default=Z3950 server setting). |
protected boolean |
fDbGroup
boolean data type indicating whether this database definition is for a Group database - a type of global database definition for cross database searches and scans (default=false). |
protected boolean |
fFullText
boolean data type indicating whether this database has full text (default=false). |
protected boolean |
fHideit
boolean data type indicating whether to show database on menus. |
protected Hashtable |
fmtClassTable
Hashtable object containing the Format objects for the database. |
protected String |
fullTextRecordSyntax
String data type containing the Z3950 record syntax for full Text Database reads with ElementSetName=T (default=SUTRS). |
protected String |
holdingsDbName
String data type containing the name of the database to retrieve holdings. |
protected String |
ILLService
String data type containing the ILL Service Type (NONE, EMAIL, OCLCILL). |
protected IndexMap |
indexMap
IndexMap object containing the index specification. |
protected String |
longName
String data type containing the long descriptive name of the database. |
protected String |
name
String data type containing name of the database. |
protected String |
recordIdTag
String containing the BER tag path to record ID. |
protected String |
recordSyntax
String data type containing the Z3950 record syntax for database reads (default=MARC). |
protected boolean |
remoteAuthorizationRequired
boolean data type indicating whether the remote target server database requires an authorization/password for the database. |
protected String |
remoteDatabaseAutho
String data type containing the remote server database authorization, if supplied from the configuration file. |
protected String |
remoteDatabasePassword
String data type containing the remote server database password, if supplied from the configuration file. |
protected String |
remoteDatabaseServerName
String data type containing the remote server database name, if supplied from the configuration file. |
protected Sort |
sort
Sort object containing the sort parameters for the database. |
protected TermFinderInfo |
termFinder
TermFinderInfo object containing parms for doing related term list and thesaurus searching. |
protected String |
thesaurusDbName
String data type containing the name of the primary associated thesaurus database. |
protected String |
zName
String data type containing the Z3950 ServerName for searching the database. |
protected Object |
zServer
ZServer object that owns the database. |
Constructor Summary | |
Db()
Constructs a Db object. |
|
Db(Object zServer,
IniFile ini)
Constructs a Db object using a ZServer object and an IniFile object containing the configuration information for the database. |
|
Db(Object zServer,
IniFile ini,
boolean dbGroupFlag)
Constructs a Db object using a ZServer object, the information in the IniFile object from the configuration files, and a boolean indicating whether the database is a Db Group type database. |
Method Summary | |
String |
alternateThesaurusDb()
Returns the String containing the name of the alternate thesaurus database. |
String |
dbIniFile()
Returns the String containing the name of the database inifile. |
DedupKeys |
dedup()
Retrieves the Sort object containing the information needed to perform a Z3950 sort for the database. |
String |
deweyDb()
Returns the String containing the name of the dewey database. |
protected boolean |
fCanDoRanked()
Returns boolean indicating whether probalistic queries are allowed for this database. |
boolean |
fCanDoScan()
Returns the boolean indicating whether Z3950 Scan is supported for the database. |
boolean |
fCanDoSort()
Returns the boolean indicating whether Z3950 Sort is supported for the database. |
boolean |
fCanDoTermFinder()
Returns the boolean indicating whether the TermFinder searching option is available for this database. |
boolean |
fFullText()
Returns the boolean indicating whether the database can show full text. |
Hashtable |
fmtClassTable()
Retrieves the Hashtable object table containing a list of Format objects for the database. |
protected boolean |
fPartialSearch()
Returns the boolean indicating whether this database supports partial searching. |
String |
fullTextRecordSyntax()
Returns the String containing the preferred record syntax for Z3950 present requests for FullText (ElementSetName=T). |
static Db |
get(String dbname)
Retrieves a Db object for the specified input database name. |
static Hashtable |
getAllDbs()
Retrieves the Hashtable object containing all Db objects in the system. |
DbAttributes |
getAttributes()
Returns the DbAttributes object containing the set of index information for the database. |
static Db |
getDefaultDbGroup()
Retrieves the Db object for the defaultDbGroup definition. |
Format |
getFormat(String fmtname)
Returns the Format object for the requested format that can be used to format records returned from a Z3950 request. |
static String[] |
getSortedNames()
Creates a sorted String array of all dbnames for all Db objects in the system. |
String |
holdingsDb()
Returns the String containing the name of the holdings database. |
String |
ILLService()
Returns the String containing the ILL Service Type for the database. |
IndexMap |
indexMap()
Returns the IndexMap object containing the index configuration information for the database. |
boolean |
isDbGroupDefinition()
Returns the boolean indicating whether this is a Db Group database object. |
boolean |
isHidden()
Returns the boolean indicating whether database should be hidden in generated menus of databases. |
void |
loadFromIniFile(IniFile ini)
Initializes a Db object using the configuration information in the input IniFile object. |
String |
longName()
Returns the String containing the textual long name of the database. |
String |
name()
Returns the String containing the database name. |
protected DataDir |
partialSearchParms()
Returns the DataDir object to perform a partial search. |
String |
recordIdTag()
Returns the String containing the BER tag path to the record ID. |
String |
recordSyntax()
Returns the String containing the preferred record syntax for Z3950 present requests. |
static void |
setDefaultDbGroup(Db db)
Sets the defaultDbGroup object to the input Db object. |
Sort |
sort()
Retrieves the Sort object containing the information needed to perform a Z3950 sort for the database. |
StopWord |
stopWords()
Returns the StopWord object containing the stopwords for the database. |
TermFinderInfo |
termFinderInfo()
Returns the object containing the parameters for doing the term finder and related term list search. |
String |
thesaurusDb()
Returns the String containing the name of the thesaurus database. |
String |
toString()
Generates the string representation of this object. |
String |
zName()
Returns the String containing the name of the database on the Z3950 Server. |
ZServer |
zServer()
Returns the ZServer object that owns the database. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected String name
protected String longName
protected String zName
protected String holdingsDbName
protected Object zServer
protected String dbIniFile
protected String recordSyntax
protected String fullTextRecordSyntax
protected String recordIdTag
protected IndexMap indexMap
protected DbAttributes attributes
protected Hashtable fmtClassTable
protected boolean fDbGroup
protected boolean fCanDoScan
protected boolean fCanDoSort
protected boolean fFullText
protected Sort sort
protected DedupKeys dedup
protected boolean fHideit
protected String ILLService
protected String alternateThesaurusDbName
protected String thesaurusDbName
protected TermFinderInfo termFinder
protected boolean remoteAuthorizationRequired
protected String remoteDatabaseAutho
protected String remoteDatabasePassword
protected String remoteDatabaseServerName
Constructor Detail |
public Db()
public Db(Object zServer, IniFile ini)
zServer
- the Object of the owning Z39.50 Serverini
- the configuration iniFilepublic Db(Object zServer, IniFile ini, boolean dbGroupFlag)
zServer
- the Object of the owning Z39.50 Serverini
- the configuration iniFiledbGroupFlag
- indication that this is a combined database definitionMethod Detail |
public static Hashtable getAllDbs()
public static Db get(String dbname)
dbname
- the name of the database.public static void setDefaultDbGroup(Db db)
db
- the database object.public static Db getDefaultDbGroup()
public static String[] getSortedNames()
public final boolean fCanDoScan()
public final boolean fCanDoTermFinder()
public final boolean fCanDoSort()
protected final boolean fCanDoRanked()
public final boolean isHidden()
protected final DataDir partialSearchParms()
protected final boolean fPartialSearch()
public final Hashtable fmtClassTable()
public final Sort sort()
public final DedupKeys dedup()
public final Format getFormat(String fmtname)
public final boolean fFullText()
public final String ILLService()
public final IndexMap indexMap()
IndexMap
public final DbAttributes getAttributes()
DbAttributes
public final boolean isDbGroupDefinition()
public final String longName()
public final String name()
public final String holdingsDb()
public final TermFinderInfo termFinderInfo()
public final String thesaurusDb()
public final String alternateThesaurusDb()
public final String deweyDb()
public final String recordIdTag()
public final String recordSyntax()
public final String fullTextRecordSyntax()
public final StopWord stopWords()
public final String dbIniFile()
public String toString()
public final String zName()
public final ZServer zServer()
public void loadFromIniFile(IniFile ini)
ini
- the input IniFile.
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |