|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICriteria
Criteria helps for retrieving results from the provider search by composing Criterion objects.
The IUserSearchManager
is a factory for Criteria. Criterion instances are obtained via ISelection methods.
Criteria can deal with different kind of criterion, as logical or just simple expression.
The typical usage of the Criteria is as
follows:
ISelection selection = ... ICriterion name = selection.eq("name", "value"); ICriterion host = selection.eq("host", "value"); ICriterion and = selection.and(name, host); ICriteria criteria = ... criteria.add(and);
Method Summary | |
---|---|
void |
add(ICriterion criterion)
Add a criterion that composes the criteria |
java.util.List |
getCriterions()
A list of all criterion added to the criteria |
boolean |
isEmpty()
Notify if there is or not criterion added for this criteria |
Method Detail |
---|
void add(ICriterion criterion)
criterion
- Will not be null
java.util.List getCriterions()
ICriterion
Will not be null
boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |