org.apache.empire.db.expr.compare
Class DBCompareExpr

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      extended by org.apache.empire.db.DBObject
          extended by org.apache.empire.db.DBExpr
              extended by org.apache.empire.db.expr.compare.DBCompareExpr
All Implemented Interfaces:
ErrorInfo
Direct Known Subclasses:
DBCompareAndOrExpr, DBCompareColExpr, DBCompareNotExpr, DBExistsExpr

public abstract class DBCompareExpr
extends DBExpr

This class is a common base class for all SQL filter constraints classes


Field Summary
 
Fields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
 
Constructor Summary
DBCompareExpr()
           
 
Method Summary
 DBCompareExpr and(DBCompareExpr expr)
          Creates a new DBCompareORExpr object.
abstract  boolean isMutuallyExclusive(DBCompareExpr other)
           
 DBCompareExpr not()
          Creates a sql-expression for the not() function.
 DBCompareExpr or(DBCompareExpr expr)
          Create a new DBCompareORExpr object.
 
Methods inherited from class org.apache.empire.db.DBExpr
addReferencedColumns, addSQL, getValueClass
 
Methods inherited from class org.apache.empire.db.DBObject
getDatabase
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCompareExpr

public DBCompareExpr()
Method Detail

isMutuallyExclusive

public abstract boolean isMutuallyExclusive(DBCompareExpr other)

and

public DBCompareExpr and(DBCompareExpr expr)
Creates a new DBCompareORExpr object.


or

public DBCompareExpr or(DBCompareExpr expr)
Create a new DBCompareORExpr object.


not

public DBCompareExpr not()
Creates a sql-expression for the not() function.

Returns:
the new DBCompareColExpr object