|
|||||||||
| Home >> All >> com >> RuntimeCollective >> search >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.search.bean
Class Search

java.lang.Objectcom.RuntimeCollective.search.bean.Search
- public class Search
- extends java.lang.Object
Represents a search query made by a user.
A search is performed by creating this
Search object, adding criteria
using addCriterion(), then calling getResults().
Field Summary
private java.util.Vectorcriteria
protected intmaxNoResults
The max number of results that you want to get, NO_MAX_NO_RESULTS if no limit.
static intNO_MAX_NO_RESULTS
When no max number of results is set.
private com.RuntimeCollective.search.SearchIndexsearchIndex
protected booleanuseAndNotOr
Whether to use AND (the default) or OR to join the criteria.
Constructor Summary
Search()
Make a new search.
Method Summary
voidaddCriterion(SearchCriterion sc)
Adds a criterion to this search.
java.util.IteratorgetCriteria()
Gets an Iterator of SearchCriterion objects, that have been added to this search
SearchCriterion[]getCriteriaAsArray()
intgetMaxNoResults()
Get the max number of results.
SearchResultsgetResults()
booleangetUseAndNotOr()
Get the max number of results.
private voidlogCriteria()
Log the search criteria in the database
voidremoveCriterion(SearchCriterion sc)
Removes a criterion from this search.
voidsetMaxNoResults(int no)
Set the max number of results.
voidsetNoMaxNoResults()
Say we don't want to have any max number of results for this query.
voidsetUseAndNotOr(boolean uano)
Set the max number of results.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
criteria
private java.util.Vector criteria
searchIndex
private com.RuntimeCollective.search.SearchIndex searchIndex
NO_MAX_NO_RESULTS
public static int NO_MAX_NO_RESULTS
maxNoResults
protected int maxNoResults
useAndNotOr
protected boolean useAndNotOr
Constructor Detail
Search
public Search()
Method Detail
addCriterion
public void addCriterion(SearchCriterion sc)
removeCriterion
public void removeCriterion(SearchCriterion sc)
getCriteria
public java.util.Iterator getCriteria()
SearchCriterion objects, that have been added to this search
getCriteriaAsArray
public SearchCriterion[] getCriteriaAsArray()
setMaxNoResults
public void setMaxNoResults(int no)
getMaxNoResults
public int getMaxNoResults()
setNoMaxNoResults
public void setNoMaxNoResults()
setUseAndNotOr
public void setUseAndNotOr(boolean uano)
getUseAndNotOr
public boolean getUseAndNotOr()
getResults
public SearchResults getResults()
throws com.RuntimeCollective.search.SearchException
logCriteria
private void logCriteria()
throws com.RuntimeCollective.search.SearchException
Overview
Package
Class
Use
Deprecated
Index
Home >> All >> com >> RuntimeCollective >> search >> [ bean overview ]
PREV CLASS NEXT CLASS
SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.RuntimeCollective.search.bean.Search