|
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.Sort | +--ORG.oclc.tools.IniSort
Maintain sort information read from inifiles.
Sort
Fields inherited from class ORG.oclc.webz.Sort |
keyDisplayNames,
keyNames,
keys,
maxAutoSortRecords,
maxSortRecords,
useSortAttributes |
Constructor Summary | |
IniSort()
Construct an IniSort object. |
|
IniSort(IniFile inifile,
String section)
Construct an IniSort object. |
Method Summary | |
void |
addKey(String name,
String sortKey)
Add a new key entry. |
String |
getKey(String name)
Get a Z39.50 Sort Key value from the input name. |
String |
getLongName(String key)
Get the longname value for a sort key name |
String[] |
getNames()
Get all the Z39.50 Sort key long Name values |
Hashtable |
keys()
Get the sort keys hashtable |
int |
maxAutoSortRecords()
Get the maximum number of records allowed to sort piggy-backed on a query. |
int |
maxSortRecords()
Get the maximum number of records allowed to sort on a fetch. |
void |
setFields(String sortKey,
String fields)
|
void |
setMaxAutoSortRecords(int max)
Set the maximum number of records allowd to sort on a query. |
void |
setMaxSortRecords(int max)
Set the maximum number of records allowd to sort on a fetch. |
void |
setSortAttributesFlag(boolean flag)
Set flag indicating how to encode the sort request. |
void |
setStepSize(int stepSize)
Set the number of records to retrieve on each read from the database to create the sort keys. |
void |
setSyntax(String syntax)
Set the record syntax for database record retrieval. |
String |
toIniString()
Generates an IniFile type string representation of the object. |
String |
toString()
Generates the string representation of this object. |
boolean |
useSortAttributes()
Get the flag indicating how to encode the Z39.50 Sort Request - whether to use the sortAttributes encoding - see the Z39.50 standard. |
Methods inherited from class ORG.oclc.webz.Sort |
getDisplayName,
getDisplayNames,
getSection |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public IniSort()
public IniSort(IniFile inifile, String section)
inifile
- the input configuration filesection
- the name of the section in the infile to read fromMethod Detail |
public void setMaxSortRecords(int max)
max
- the countpublic int maxSortRecords()
public void setMaxAutoSortRecords(int max)
max
- the countpublic int maxAutoSortRecords()
public void setSortAttributesFlag(boolean flag)
flag
- true = useSortAttributes, false = useGenericSortpublic void setSyntax(String syntax)
syntax
- either e.g. BER, MARC, OPACpublic void setStepSize(int stepSize)
stepSize
- the count of recordspublic void setFields(String sortKey, String fields)
public void addKey(String name, String sortKey)
name
- the name of the key
- public String getKey(String name)
public String[] getNames()
public Hashtable keys()
public String getLongName(String key)
public boolean useSortAttributes()
public String toIniString()
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |