org.castor.cpa.persistence.sql.query.condition
Class Condition
java.lang.Object
org.castor.cpa.persistence.sql.query.condition.Condition
- All Implemented Interfaces:
- QueryObject
- Direct Known Subclasses:
- Compare, CompoundCondition, Predicate
public abstract class Condition
- extends Object
- implements QueryObject
Abstract base class for all conditions.
- Version:
- $Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
- Author:
- Ahmad Hassan, Ralf Joachim
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.castor.cpa.persistence.sql.query.QueryObject |
accept |
Condition
public Condition()
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.
Copyright © 2012. All Rights Reserved.