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 Compareequal(Expression expression) Compare if this expression is equal to the given one.final ComparegreaterEqual(Expression expression) Compare if this expression is greater than or equal to the given one.final ComparegreaterThan(Expression expression) Compare if this expression is greater than the given one.final PredicateCheck if this expression is not null.final PredicateisNull()Check if this expression is null.final ComparelessEqual(Expression expression) Compare if this expression is less than or equal to the given one.final ComparelessThan(Expression expression) Compare if this expression is less than the given one.final ComparenotEqual(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, waitMethods 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.
-