|
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.query.QueryRequest
The QueryRequest class is used to generate a query to the Autonomy DRE.
| Constructor Summary | |
QueryRequest()
Default constructor does nothing. |
|
| Method Summary | |
void |
addSearchDatabase(String dbName)
Add a search database in the DRE to query. |
void |
clearSearchDatabases()
Remove all databases from this QueryRequest. |
Iterator |
getDatabases()
Get an Iterator over the databases listed. |
Integer |
getMaximumNumberOfResults()
Get the maximum number of results for the DRE to return. |
String |
getQueryText()
Gets the current query text. |
Double |
getThreshold()
Gets the current threshold value. |
void |
setMaximumNumberOfResults(int num)
The number of results returned. |
void |
setMaximumNumberOfResults(Integer num)
A convience method for setting the number of returned results with an Integer. |
void |
setQueryText(String text)
Sets the query string to be sent to the Autonomy DRE. |
void |
setThreshold(double thold)
The threshold is a number from 0 (zero) to 100 that is assigned to each result by the DRE. |
void |
setThreshold(Double thold)
A convience method to set the threshold with a Double value. |
String |
toString()
Print out the contents of this QueryRequest. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryRequest()
| Method Detail |
public void setQueryText(String text)
text - the query text to be usedpublic String getQueryText()
public void setMaximumNumberOfResults(int num)
num - the integer number of results to returnpublic void setMaximumNumberOfResults(Integer num)
num - the Integer number of results to return.public Integer getMaximumNumberOfResults()
public void setThreshold(double thold)
throws IllegalArgumentException
thold - the double threshold value
an - IllegalArgumentException if the value falls outside the acceptable range.
IllegalArgumentException
public void setThreshold(Double thold)
throws IllegalArgumentException
thold - the Double threshold value
an - IllegalArgumentException if the value falls outside the acceptable range.
IllegalArgumentExceptionpublic Double getThreshold()
public void addSearchDatabase(String dbName)
dbName - the name of the database to add to the QueryRequest.public void clearSearchDatabases()
public Iterator getDatabases()
public String toString()
|
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||