org.castor.cpa.persistence.sql.query.expression
Class Expression

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryObject
      extended by org.castor.cpa.persistence.sql.query.expression.Expression
Direct Known Subclasses:
Column, Function, Parameter

public abstract class Expression
extends 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
Expression()
           
 
Method Summary
 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 org.castor.cpa.persistence.sql.query.QueryObject
toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Expression

public Expression()
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.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com