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
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal Expression
Get expression to test.final boolean
isNot()
Does test result get inverted?final Condition
not()
NOT condition of condition query object.final void
setExpression
(Expression expression) Set expression to test.final void
setNot
(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
-
Constructor Details
-
SimpleCondition
public SimpleCondition()
-
-
Method Details
-
not
NOT condition of condition query object.- Returns:
- The condition
-
isNot
public final boolean isNot()Does test result get inverted?- Returns:
true
if test result gets inverted,false
otherwise.
-
setNot
public final void setNot(boolean not) Set if test result has to be inverted.- Parameters:
not
-true
if test result gets inverted,false
otherwise.
-
getExpression
Get expression to test.- Returns:
- Expression to test.
-
setExpression
Set expression to test.- Parameters:
expression
- Expression to test.
-