|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to add Filter Statements and Clauses to an existing IFilterClause.
Filter Clauses are created from the ISearchFactory interface.
| Method Summary | |
void |
addClause(IFilterClause clause)
Adds an IFilterClause subclause to this clause. |
void |
addStatement(Field field,
Operator op,
boolean value)
Adds a boolean constraint to this clause. |
void |
addStatement(Field field,
Operator op,
java.util.Date value)
Adds a Date constraint to this clause. |
void |
addStatement(Field field,
Operator op,
float value)
Adds a float constraint to this clause. |
void |
addStatement(Field field,
Operator op,
int value)
Adds an int constraint to this clause. |
void |
addStatement(Field field,
Operator op,
java.lang.String value)
Adds a String constraint to this clause. |
| Method Detail |
public void addStatement(Field field,
Operator op,
java.lang.String value)
String constraint to this clause. The field must be searchable.
field - Field to search. Field must return String values, e.g. PlumtreeField.NAME.
Adding a field of the wrong type may cause an exception on the search server.op - constraint operator, e.g. Operator.Equals or Operator.Containsvalue - String value to evaluate
java.lang.IllegalArgumentException - if field is not searchable
public void addStatement(Field field,
Operator op,
int value)
int constraint to this clause. The field must be searchable.
field - Field to search. Field must return int values, e.g. PortalField.OBJECT_ID.
Adding a field of the wrong type may cause an exception on the search server.op - constraint operator, e.g. Operator.Equals or Operator.GreaterThanvalue - int value to evaluate
java.lang.IllegalArgumentException - if field is not searchable
public void addStatement(Field field,
Operator op,
float value)
float constraint to this clause. The field must be searchable.
field - Field to search. Field must return float values. Note that properties stored in the portal
as doubles are returned as floats by the search server.
Adding a field of the wrong type may cause an exception on the search server.op - constraint operator, e.g. Operator.Equals or Operator.GreaterThanvalue - float value to evaluate
java.lang.IllegalArgumentException - if field is not searchable
public void addStatement(Field field,
Operator op,
java.util.Date value)
Date constraint to this clause. The field must be searchable.
field - Field to search. Field must return Date values, e.g. PlumtreeField.LAST_MODIFIED
Adding a field of the wrong type may cause an exception on the search server.op - constraint operator, e.g. Operator.Equals or Operator.GreaterThanvalue - Date value to evaluate. Note that Dates in the
search server are only accurate to within four minutes, so Operator.Equals is discouraged. Using GreaterThan/LessThan or
a date range is the recommended usage.
Dates in the search server should remain sequential as they are indexed, although roundoff
may result in two dates that were sequential on input being the same in the search server.
java.lang.IllegalArgumentException - if field is not searchable
public void addStatement(Field field,
Operator op,
boolean value)
boolean constraint to this clause. The field must be searchable.
field - Field to search. Field must return boolean values.
Adding a field of the wrong type may cause an exception on the search server.op - constraint operator, e.g. Operator.Equals or Operator.GreaterThanvalue - boolean value to evaluate
java.lang.IllegalArgumentException - if field is not searchablepublic void addClause(IFilterClause clause)
IFilterClause subclause to this clause.
The added clause will be AND'd or OR'd with the existing clause
depending on whether the parent clause is an AND IFilterClause
or an OR IFilterClause.
IFilterClauses are created from ISearchFactory.
clause - subclause to add. Multiple subclauses can be added.ISearchFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.