org.castor.cpa.query.object.condition
Class SimpleCondition

java.lang.Object
  extended by org.castor.cpa.query.object.AbstractQueryObject
      extended by org.castor.cpa.query.object.condition.AbstractCondition
          extended by org.castor.cpa.query.object.condition.SimpleCondition
All Implemented Interfaces:
Condition, QueryObject
Direct Known Subclasses:
Between, In, Like, Null

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
SimpleCondition()
           
 
Method Summary
 Expression getExpression()
          Get expression to test.
 boolean isNot()
          Does test result get inverted?
 Condition not()
          NOT condition of condition query object.
 void setExpression(Expression expression)
          Set expression to test.
 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 Detail

SimpleCondition

public SimpleCondition()
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:
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

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.


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