Class SimpleCondition
- java.lang.Object
-
- org.castor.cpa.query.object.AbstractQueryObject
-
- org.castor.cpa.query.object.condition.AbstractCondition
-
- org.castor.cpa.query.object.condition.SimpleCondition
-
- All Implemented Interfaces:
Condition,QueryObject
public abstract class SimpleCondition extends AbstractCondition
Abstract base class that represents simple condition.- Since:
- 1.3
- Version:
- $Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Udai Gupta, Ralf Joachim
-
-
Constructor Summary
Constructors Constructor Description SimpleCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetExpression()Get expression to test.booleanisNot()Does test result get inverted?Conditionnot()NOT condition of condition query object.voidsetExpression(Expression expression)Set expression to test.voidsetNot(boolean not)Set if test result has to be inverted.-
Methods inherited from class org.castor.cpa.query.object.condition.AbstractCondition
and, or
-
Methods inherited from class org.castor.cpa.query.object.AbstractQueryObject
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.castor.cpa.query.QueryObject
toString
-
-
-
-
Method Detail
-
not
public final Condition not()
NOT condition of condition query object.- Returns:
- The condition
-
isNot
public final boolean isNot()
Does test result get inverted?- Returns:
trueif test result gets inverted,falseotherwise.
-
setNot
public final void setNot(boolean not)
Set if test result has to be inverted.- Parameters:
not-trueif test result gets inverted,falseotherwise.
-
getExpression
public final Expression getExpression()
Get expression to test.- Returns:
- Expression to test.
-
setExpression
public final void setExpression(Expression expression)
Set expression to test.- Parameters:
expression- Expression to test.
-
-