|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Constraint
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 |
---|
Constraint and(Constraint andWith)
andWith
- the other Constraint
Constraint or(Constraint orWith)
orWith
- the other Constraint
Constraint equal()
Constraint greater()
Constraint greaterOrEqual()
Constraint smaller()
Constraint smallerOrEqual()
Constraint identity()
Constraint like()
Constraint contains()
Constraint is()
Constraint not()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |