|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.browse.DBBrowse
Implementation of Browse that uses an relational database to store the browse list entries.
| Field Summary | |
static java.lang.String |
dbConnectionName
|
java.lang.String |
tableName
|
| Constructor Summary | |
DBBrowse()
|
|
| Method Summary | |
boolean |
addLineToCache(int index,
java.lang.String display,
java.lang.String search,
int count)
Callback function to add a line to the cache |
java.util.ArrayList |
getCurrentPage(java.lang.String sessionID)
returns the current page worth of data |
static java.lang.String |
getDbConnectionName()
returns the connection string |
java.util.ArrayList |
getFirstPage(java.lang.String sessionID,
java.lang.String term)
returns a page worth of data as ArrayList of Browse.Line entries. |
java.util.ArrayList |
getFirstPage(java.lang.String sessionID,
java.lang.String term,
java.lang.String missingTemplate)
|
java.util.ArrayList |
getNextPage(java.lang.String sessionID)
returns the next page worth of data relative to the last |
java.util.ArrayList |
getPrevPage(java.lang.String sessionID)
returns the previous page worth of data relative to the last |
java.lang.String |
getTableName()
returns the table name (uses field name if not set ) |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
initialize(java.lang.String field)
Use this method to create a browse instance for a single field. |
boolean |
isFirstPage(java.lang.String sessionID)
Indicates whether we're on the first page or not |
boolean |
isLastPage(java.lang.String sessionID)
Indicates whether we're on the last page or not |
void |
setBrowseHitPosition(int pos)
sets the page size for rendered results |
void |
setBrowsePageSize(int size)
sets the page size for rendered results |
static void |
setDbConnectionName(java.lang.String dbName)
sets the connection string |
void |
setExcludes(java.util.List l)
A list of exclusion comparator(s) to filter the browse lists |
void |
setIncludes(java.util.List l)
A list of inclusion comparator(s) to filter the browse lists |
void |
setTableName(java.lang.String table)
sets the table name from BrowseResultsRenderer |
boolean |
wasTermFound(java.lang.String sessionID)
indicates whether a match was found from getFirstPage( term ) |
| 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 dbConnectionName
public java.lang.String tableName
| Constructor Detail |
public DBBrowse()
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IBrowsepublic void initialize(java.lang.String field)
initialize in interface IBrowsepublic static void setDbConnectionName(java.lang.String dbName)
public static java.lang.String getDbConnectionName()
public void setTableName(java.lang.String table)
public java.lang.String getTableName()
public void setBrowsePageSize(int size)
setBrowsePageSize in interface IBrowsepublic void setBrowseHitPosition(int pos)
setBrowseHitPosition in interface IBrowse
public java.util.ArrayList getFirstPage(java.lang.String sessionID,
java.lang.String term)
getFirstPage in interface IBrowse
public java.util.ArrayList getFirstPage(java.lang.String sessionID,
java.lang.String term,
java.lang.String missingTemplate)
getFirstPage in interface IBrowsepublic java.util.ArrayList getPrevPage(java.lang.String sessionID)
getPrevPage in interface IBrowsepublic java.util.ArrayList getNextPage(java.lang.String sessionID)
getNextPage in interface IBrowsepublic java.util.ArrayList getCurrentPage(java.lang.String sessionID)
IBrowse
getCurrentPage in interface IBrowsepublic boolean wasTermFound(java.lang.String sessionID)
IBrowse
wasTermFound in interface IBrowse
public boolean addLineToCache(int index,
java.lang.String display,
java.lang.String search,
int count)
public boolean isFirstPage(java.lang.String sessionID)
isFirstPage in interface IBrowsepublic boolean isLastPage(java.lang.String sessionID)
isLastPage in interface IBrowsepublic void setExcludes(java.util.List l)
setExcludes in interface IBrowsepublic void setIncludes(java.util.List l)
setIncludes in interface IBrowse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||