org.castor.cpa.persistence.sql.query.condition
Class Condition

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryObject
      extended by org.castor.cpa.persistence.sql.query.condition.Condition
Direct Known Subclasses:
Compare, CompoundCondition, Predicate

public abstract class Condition
extends QueryObject

Abstract base class for all conditions.

Version:
$Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Ahmad Hassan, Ralf Joachim

Constructor Summary
Condition()
           
 
Method Summary
 Condition and(Condition condition)
          Builder method to concatenate the given condition with all others that have previously been added with an AND operator.
abstract  Condition not()
          Builder method to invert a condition.
 Condition or(Condition condition)
          Builder method to concatenate the given condition with all others that have previously been added with an OR operator.
 
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject
toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()
Method Detail

and

public Condition and(Condition condition)
Builder method to concatenate the given condition with all others that have previously been added with an AND operator.

Parameters:
condition - Condition to concatenate.
Returns:
Resulting condition object.

or

public Condition or(Condition condition)
Builder method to concatenate the given condition with all others that have previously been added with an OR operator.

Parameters:
condition - Condition to concatenate.
Returns:
Resulting condition object.

not

public abstract Condition not()
Builder method to invert a condition. A condition that evaluated to TRUE before calling this method will evaluate to FALSE thereafter.

Returns:
Negated condition.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com