Class Expression
- java.lang.Object
-
- org.castor.cpa.persistence.sql.query.expression.Expression
-
- All Implemented Interfaces:
QueryObject
public abstract class Expression extends java.lang.Object implements QueryObject
Abstract base class for all expressions.- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
-
Constructor Summary
Constructors Constructor Description Expression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Compare
equal(Expression expression)
Compare if this expression is equal to the given one.Compare
greaterEqual(Expression expression)
Compare if this expression is greater than or equal to the given one.Compare
greaterThan(Expression expression)
Compare if this expression is greater than the given one.Predicate
isNotNull()
Check if this expression is not null.Predicate
isNull()
Check if this expression is null.Compare
lessEqual(Expression expression)
Compare if this expression is less than or equal to the given one.Compare
lessThan(Expression expression)
Compare if this expression is less than the given one.Compare
notEqual(Expression expression)
Compare if this expression is not equal to the given one.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.castor.cpa.persistence.sql.query.QueryObject
accept
-
-
-
-
Method Detail
-
equal
public final Compare equal(Expression expression)
Compare if this expression is equal to the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
notEqual
public final Compare notEqual(Expression expression)
Compare if this expression is not equal to the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
greaterThan
public final Compare greaterThan(Expression expression)
Compare if this expression is greater than the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
greaterEqual
public final Compare greaterEqual(Expression expression)
Compare if this expression is greater than or equal to the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
lessEqual
public final Compare lessEqual(Expression expression)
Compare if this expression is less than or equal to the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
lessThan
public final Compare lessThan(Expression expression)
Compare if this expression is less than the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
isNull
public final Predicate isNull()
Check if this expression is null.- Returns:
- Compare condition.
-
isNotNull
public final Predicate isNotNull()
Check if this expression is not null.- Returns:
- Compare condition.
-
-