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

public abstract class Expression extends 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 Details

    • Expression

      public Expression()
  • Method Details

    • 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.