ojb.soda
Class ConstraintImpl

java.lang.Object
  |
  +--ojb.soda.ConstraintImpl
All Implemented Interfaces:
Constraint

public class ConstraintImpl
extends java.lang.Object
implements Constraint

Version:
1.0
Author:

Constructor Summary
ConstraintImpl()
          Constructor for ConstraintImpl.
 
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 "<="
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintImpl

public ConstraintImpl()
Constructor for ConstraintImpl.

Method Detail

and

public Constraint and(Constraint andWith)
Description copied from interface: Constraint
links two Constraints for AND evaluation

Specified by:
and in interface Constraint
Parameters:
andWith - the other Constraint
Returns:
a new Constraint, that can be used for further calls to and() and or()

or

public Constraint or(Constraint orWith)
Description copied from interface: Constraint
links two Constraints for OR evaluation

Specified by:
or in interface Constraint
Parameters:
orWith - the other Constraint
Returns:
a new Constraint, that can be used for further calls to and() and or()

equal

public Constraint equal()
Description copied from interface: Constraint
sets the evaluation mode to "=="

Specified by:
equal in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

greater

public Constraint greater()
Description copied from interface: Constraint
sets the evaluation mode to ">"

Specified by:
greater in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

greaterOrEqual

public Constraint greaterOrEqual()
Description copied from interface: Constraint
sets the evaluation mode to ">="

Specified by:
greaterOrEqual in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

smaller

public Constraint smaller()
Description copied from interface: Constraint
sets the evaluation mode to "<"

Specified by:
smaller in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

smallerOrEqual

public Constraint smallerOrEqual()
Description copied from interface: Constraint
sets the evaluation mode to "<="

Specified by:
smallerOrEqual in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

identity

public Constraint identity()
Description copied from interface: Constraint
sets the evaluation mode to identity comparison

Specified by:
identity in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

like

public Constraint like()
Description copied from interface: Constraint
sets the evaluation mode to "like" comparison

Specified by:
like in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

contains

public Constraint contains()
Description copied from interface: Constraint
sets the evaluation mode to containment comparison

Specified by:
contains in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

is

public Constraint is()
Description copied from interface: Constraint
turns off not() comparison

Specified by:
is in interface Constraint
Returns:
this Constraint to allow the chaining of method calls

not

public Constraint not()
Description copied from interface: Constraint
turns on not() comparison

Specified by:
not in interface Constraint
Returns:
this Constraint to allow the chaining of method calls


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04