Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.odbms
Interface Constraint  view Constraint download Constraint.java


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

and

public Constraint and(Constraint andWith)
links two Constraints for AND evaluation


or

public Constraint or(Constraint orWith)
links two Constraints for OR evaluation


equal

public Constraint equal()
sets the evaluation mode to "=="


greater

public Constraint greater()
sets the evaluation mode to ">"


greaterOrEqual

public Constraint greaterOrEqual()
sets the evaluation mode to ">="


smaller

public Constraint smaller()
sets the evaluation mode to "<"


smallerOrEqual

public Constraint smallerOrEqual()
sets the evaluation mode to "<="


identity

public Constraint identity()
sets the evaluation mode to identity comparison


like

public Constraint like()
sets the evaluation mode to "like" comparison


contains

public Constraint contains()
sets the evaluation mode to containment comparison


is

public Constraint is()
turns off not() comparison


not

public Constraint not()
turns on not() comparison