|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
constraint for a single query node.
A Constraint is associated with one single Query
node
- a single member of a class.
Constraints are constructed by calling
Query.constrain()
.
Constraints can be joined with the methods and() and or().
The following mutual exclusive functions set the evaluation mode.
The subsequent call prevails:
identity(), equal(), greater(), greaterOrEqual(), smaller(),
smallerOrEqual(), like(), contains()
is(), and not() are also mutually exclusive.
Method Summary | |
Constraint |
and(Constraint andWith)
links two Constraints for AND evaluation |
Constraint |
contains()
sets the evaluation mode to containment comparison |
Constraint |
equal()
sets the evaluation mode to "==" |
Constraint |
greater()
sets the evaluation mode to ">" |
Constraint |
greaterOrEqual()
sets the evaluation mode to ">=" |
Constraint |
identity()
sets the evaluation mode to identity comparison |
Constraint |
is()
turns off not() comparison |
Constraint |
like()
sets the evaluation mode to "like" comparison |
Constraint |
not()
turns on not() comparison |
Constraint |
or(Constraint orWith)
links two Constraints for OR evaluation |
Constraint |
smaller()
sets the evaluation mode to "<" |
Constraint |
smallerOrEqual()
sets the evaluation mode to "<=" |
Method Detail |
public Constraint and(Constraint andWith)
andWith
- the other Constraint
public Constraint or(Constraint orWith)
orWith
- the other Constraint
public Constraint equal()
public Constraint greater()
public Constraint greaterOrEqual()
public Constraint smaller()
public Constraint smallerOrEqual()
public Constraint identity()
public Constraint like()
public Constraint contains()
public Constraint is()
public Constraint not()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |