| org.odbms.Constraint
All known Subclasses: org.apache.ojb.soda.ConstraintImpl,
Constraint | public interface Constraint (Code) | | 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.
|
and | public Constraint and(Constraint andWith)(Code) | | links two Constraints for AND evaluation
Parameters: andWith - the other Constraint a new Constraint, that can be used for further calls to and() and or() |
contains | public Constraint contains()(Code) | | sets the evaluation mode to containment comparison
this Constraint to allow the chaining of method calls |
equal | public Constraint equal()(Code) | | sets the evaluation mode to "=="
this Constraint to allow the chaining of method calls |
greater | public Constraint greater()(Code) | | sets the evaluation mode to ">"
this Constraint to allow the chaining of method calls |
greaterOrEqual | public Constraint greaterOrEqual()(Code) | | sets the evaluation mode to ">="
this Constraint to allow the chaining of method calls |
identity | public Constraint identity()(Code) | | sets the evaluation mode to identity comparison
this Constraint to allow the chaining of method calls |
is | public Constraint is()(Code) | | turns off not() comparison
this Constraint to allow the chaining of method calls |
like | public Constraint like()(Code) | | sets the evaluation mode to "like" comparison
this Constraint to allow the chaining of method calls |
not | public Constraint not()(Code) | | turns on not() comparison
this Constraint to allow the chaining of method calls |
or | public Constraint or(Constraint orWith)(Code) | | links two Constraints for OR evaluation
Parameters: orWith - the other Constraint a new Constraint, that can be used for further calls to and() and or() |
smaller | public Constraint smaller()(Code) | | sets the evaluation mode to "<"
this Constraint to allow the chaining of method calls |
smallerOrEqual | public Constraint smallerOrEqual()(Code) | | sets the evaluation mode to "<="
this Constraint to allow the chaining of method calls |
|
|