Class IsNullPredicate
- java.lang.Object
-
- org.castor.cpa.persistence.sql.query.condition.Condition
-
- org.castor.cpa.persistence.sql.query.condition.Predicate
-
- 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$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Accept method to handle incoming visitors.java.lang.String
toString()
Method constructing query string.-
Methods inherited from class org.castor.cpa.persistence.sql.query.condition.Predicate
evaluateTo, expression, not
-
-
-
-
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 java.lang.String toString()
Method constructing query string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Constructed query string.
-
-