Class Expression
java.lang.Object
org.castor.cpa.persistence.sql.query.expression.Expression
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal Compare
equal
(Expression expression) Compare if this expression is equal to the given one.final Compare
greaterEqual
(Expression expression) Compare if this expression is greater than or equal to the given one.final Compare
greaterThan
(Expression expression) Compare if this expression is greater than the given one.final Predicate
Check if this expression is not null.final Predicate
isNull()
Check if this expression is null.final Compare
lessEqual
(Expression expression) Compare if this expression is less than or equal to the given one.final Compare
lessThan
(Expression expression) Compare if this expression is less than the given one.final 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
-
Constructor Details
-
Expression
public Expression()
-
-
Method Details
-
equal
Compare if this expression is equal to the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
notEqual
Compare if this expression is not equal to the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
greaterThan
Compare if this expression is greater than the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
greaterEqual
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
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
Compare if this expression is less than the given one.- Parameters:
expression
- Right hand side of the compare.- Returns:
- Compare condition.
-
isNull
Check if this expression is null.- Returns:
- Compare condition.
-
isNotNull
Check if this expression is not null.- Returns:
- Compare condition.
-