org.castor.cpa.persistence.sql.query.condition
Class IsNullPredicate

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.condition.Condition
      extended by org.castor.cpa.persistence.sql.query.condition.Predicate
          extended by org.castor.cpa.persistence.sql.query.condition.IsNullPredicate
All Implemented Interfaces:
QueryObject

public final class IsNullPredicate
extends Predicate

Predicate that checks expressions for being null or not null.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Ahmad Hassan, Ralf Joachim

Constructor Summary
IsNullPredicate(Expression expression)
          Construct a predicate that checks the given expression for being null.
IsNullPredicate(Expression expression, boolean evaluateTo)
          Construct a predicate that checks the given expression for being null.
 
Method Summary
 void accept(Visitor visitor)
          Accept method to handle incoming visitors.
 String toString()
          Method constructing query string.
 
Methods inherited from class org.castor.cpa.persistence.sql.query.condition.Predicate
evaluateTo, expression, not
 
Methods inherited from class org.castor.cpa.persistence.sql.query.condition.Condition
and, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsNullPredicate

public IsNullPredicate(Expression expression)
Construct a predicate that checks the given expression for being null.

Parameters:
expression - Expression to check for null.

IsNullPredicate

public IsNullPredicate(Expression expression,
                       boolean evaluateTo)
Construct a predicate that checks the given expression for being null.

Parameters:
expression - Expression to check for null.
evaluateTo - What is the expected result of the evaluation?
Method Detail

accept

public void accept(Visitor visitor)
Accept method to handle incoming visitors.

Parameters:
visitor - Visitor to be handled.

toString

public String toString()
Method constructing query string.

Overrides:
toString in class Object
Returns:
Constructed query string.


Copyright © 2012. All Rights Reserved.