|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.lanl.Database.SearchFilter
|
+--gov.lanl.Database.OJBSearchFilter
Class declaration

| Nested Class Summary |
| Nested classes inherited from class gov.lanl.Database.SearchFilter |
SearchFilter.SearchBase, SearchFilter.SearchBaseLeaf, SearchFilter.SearchBaseLeafComparison, SearchFilter.SearchBaseLeafInt, SearchFilter.SearchBaseNode |
| Field Summary |
| Fields inherited from class gov.lanl.Database.SearchFilter |
AND, BINARY_OPER_MASK, EQUAL, filter, GREATER_EQUAL, GREATER_THAN, IN, LESS_EQUAL, LESS_THAN, LIKE, LOGICAL_OPER_MASK, NOT, NOT_EQUAL, NOT_IN, OR |
| Constructor Summary | |
OJBSearchFilter()
|
|
| Method Summary | |
void |
combine(gov.lanl.Database.SearchFilter new_filter,
int op)
Combine one other search filters with this one, using the specific operator. |
void |
combine(java.util.Vector new_filters,
int op)
Combine other search filters with this one, using the specific operator. |
void |
compareFilter(java.lang.String elementName,
java.lang.String value,
int oper)
Change the search filter to one that compares an element name to a value. |
protected org.apache.ojb.broker.query.Criteria |
getCriteria()
----------------------------------------------------------- |
void |
matchList(java.lang.String elementName,
int[] values,
int oper)
Change the search filter to one that specifies an element to not match one of a list of integer values. |
void |
matchList(java.lang.String elementName,
java.lang.String[] values,
int oper)
Change the search filter to one that specifies an element to not match one of a list of values. |
void |
matchList(java.lang.String elementName,
java.util.Vector values,
int oper)
Change the search filter to one that specifies an element to match or not match one of a list of values. |
void |
matchSet(java.util.Hashtable elements,
int combine_op,
int compare_op)
Change the search filter to one that specifies a set of elements and their values that must match, and the operator to use to combine the elements. |
void |
matchSet(java.lang.String[] elementNames,
java.lang.String[] elementValues,
int op)
Change the search filter to one that specifies a set of elements and their values that must match, and the operator to use to combine the elements. |
void |
matchValue(java.lang.String elementName,
int value,
int oper)
----------------------------------------------------------- |
void |
matchValue(java.lang.String elementName,
java.lang.String value,
int oper)
Change the search filter to one that specifies an element to not match one single value. |
java.lang.String |
toString()
----------------------------------------------------------- |
| Methods inherited from class gov.lanl.Database.SearchFilter |
ConvertBinaryOperator, getFilter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OJBSearchFilter()
| Method Detail |
public void matchList(java.lang.String elementName,
java.util.Vector values,
int oper)
matchList in class SearchFilterelementName - is the name of the element to be matchedvalues - is a vector of possible matchesoper - is the IN or NOT_IN operator to indicate how to matche
public void matchList(java.lang.String elementName,
java.lang.String[] values,
int oper)
matchList in class SearchFilterelementName - is the name of the element to be matchedvalues - is an array of possible matchesoper - is the IN or NOT_IN operator to indicate how to matche
public void matchList(java.lang.String elementName,
int[] values,
int oper)
matchList in class SearchFilterelementName - is the name of the element to be matchedvalues - is an array of possible integer matchesoper - is the IN or NOT_IN operator to indicate how to matche
public void matchValue(java.lang.String elementName,
java.lang.String value,
int oper)
matchValue in class SearchFilterelementName - is the name of the element to be matchedvalue - is the value to be matched (or not matched)oper - is the IN or NOT_IN operator to indicate how to match
public void matchValue(java.lang.String elementName,
int value,
int oper)
matchValue in class SearchFilterelementName - is the name of the element to be matchedvalue - is the int value to be matched (or not matched)oper - is the IN or NOT_IN operator to indicate how to match
public void compareFilter(java.lang.String elementName,
java.lang.String value,
int oper)
throws DBException
compareFilter in class SearchFilterDBExceptionelementName - is the name of the element to be testedvalue - is the value to be compared againstoper - is the binary comparison operator to be used
public void matchSet(java.util.Hashtable elements,
int combine_op,
int compare_op)
throws DBException
matchSet in class SearchFilterDBExceptionelements - is a hashtable holding key-value pairscombine_op - is the logical operator to be used to combine the comparisonscompare_op - is the binary operator to be used for the comparisons
public void matchSet(java.lang.String[] elementNames,
java.lang.String[] elementValues,
int op)
throws DBException
matchSet in class SearchFilterDBExceptionelementNames - is an array of names of elements to be testedelementValues - is an array of values for the corresponding elementop - is the logical operator to be used to combine the comparisons
public void combine(java.util.Vector new_filters,
int op)
throws DBException
combine in class SearchFilterDBExceptionnew_filters - is a vector of SearchFilter classes to be combinedop - is the logical operator to be used to combine the filters
public void combine(gov.lanl.Database.SearchFilter new_filter,
int op)
throws DBException
combine in class SearchFilterDBExceptionnew_filter - is the SearchFilter class to be combinedop - is the logical operator to be used to combine the filterspublic java.lang.String toString()
toString in class SearchFilterprotected org.apache.ojb.broker.query.Criteria getCriteria()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||