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 ExpressionGet expression to test.final booleanisNot()Does test result get inverted?final Conditionnot()NOT condition of condition query object.final voidsetExpression(Expression expression) Set expression to test.final voidsetNot(boolean not) Set if test result has to be inverted.Methods inherited from class org.castor.cpa.query.object.condition.AbstractCondition
and, orMethods inherited from class org.castor.cpa.query.object.AbstractQueryObject
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
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
Get expression to test.- Returns:
- Expression to test.
-
setExpression
Set expression to test.- Parameters:
expression- Expression to test.
-