Class DBCompareExpr

java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.expr.compare.DBCompareExpr
All Implemented Interfaces:
DBPreparable
Direct Known Subclasses:
DBCompareAndOrExpr, DBCompareColExpr, DBCompareNotExpr, DBCompareParenthesisExpr, DBExistsExpr, PostgresAtAt

public abstract class DBCompareExpr extends DBExpr implements DBPreparable
This class is a common base class for all SQL filter constraints classes
  • Field Details

    • log

      protected static final org.slf4j.Logger log
  • Constructor Details

    • DBCompareExpr

      public DBCompareExpr()
  • Method Details

    • isMutuallyExclusive

      public abstract boolean isMutuallyExclusive(DBCompareExpr other)
    • isConstraintOn

      public abstract boolean isConstraintOn(DBColumnExpr colExpr)
    • and

      public DBCompareAndOrExpr and(DBCompareExpr expr)
      Creates a new DBCompareAndOrExpr object.
      Parameters:
      expr - the right part of the AND expression
      Returns:
      the and compare expression
    • or

      Create a new DBCompareAndOrExpr object.
      Parameters:
      expr - the right part of the OR expression
      Returns:
      the or compare expression
    • not

      public DBCompareExpr not()
      Creates a sql-expression for the not() function.
      Returns:
      the new DBCompareColExpr object
    • getRowSet

      public abstract DBRowSet getRowSet()
      Returns the underlying rowset containing this column For functions involving none or more than one physical column this function return the first one
      Returns:
      a column used for this expression
    • copy

      public abstract DBCompareExpr copy(DBCommand newCmd)
      internally used for command cloning
      Parameters:
      newCmd - the new command object
      Returns:
      the cloned compare expression