|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.browse.DBBrowseDirectoryEntry
Implementation of IBrowseDirectoryEntry that uses a relational database to store the browse list entries.
| Constructor Summary | |
DBBrowseDirectoryEntry()
|
|
| Method Summary | |
void |
addIndexRow(java.lang.String display,
java.lang.String search,
int page)
Callback to add row to index lookup table |
int |
getMaxPage()
Get the maximum page number for the field's browse list |
int |
getMinPage()
Get the minimum page number for the field's browse list |
int |
getPageNumber(java.lang.String term)
this function figures out which page the search term should be in |
java.lang.String |
getTableName()
returns the table name (uses field name if not set ) |
void |
initialize(org.w3c.dom.Element elem)
|
void |
initialize(java.lang.String field)
Use this method to initialize a DBBrowseDirectoryEntry instance for a single field. |
boolean |
isRefreshRequired()
Use this method to see if the master list has been updated. |
boolean |
isValid()
|
void |
prime(java.lang.String table)
It will load the ArrayList of pages used for the binary lookup of the correct browse page. |
void |
setTableName(java.lang.String table)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBBrowseDirectoryEntry()
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
initialize in interface IBrowseDirectoryEntrypublic void initialize(java.lang.String field)
initialize in interface IBrowseDirectoryEntrypublic void prime(java.lang.String table)
public void setTableName(java.lang.String table)
public java.lang.String getTableName()
public void addIndexRow(java.lang.String display,
java.lang.String search,
int page)
public boolean isRefreshRequired()
isRefreshRequired in interface IBrowseDirectoryEntrypublic int getPageNumber(java.lang.String term)
getPageNumber in interface IBrowseDirectoryEntrypublic int getMaxPage()
getMaxPage in interface IBrowseDirectoryEntrypublic int getMinPage()
getMinPage in interface IBrowseDirectoryEntrypublic boolean isValid()
isValid in interface IBrowseDirectoryEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||