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
This class is a common base class for all SQL filter constraints classes
-
Field Summary
FieldsFields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand(DBCompareExpr expr) Creates a new DBCompareAndOrExpr object.abstract DBCompareExprinternally used for command cloningabstract DBRowSetReturns the underlying rowset containing this column For functions involving none or more than one physical column this function return the first oneabstract booleanisConstraintOn(DBColumnExpr colExpr) abstract booleanisMutuallyExclusive(DBCompareExpr other) not()Creates a sql-expression for the not() function.or(DBCompareExpr expr) Create a new DBCompareAndOrExpr object.Methods inherited from class org.apache.empire.db.DBExpr
addReferencedColumns, addSQLMethods inherited from class org.apache.empire.db.DBObject
checkParamNull, getDatabaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.empire.db.expr.column.DBPreparable
prepareParams
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
DBCompareExpr
public DBCompareExpr()
-
-
Method Details
-
isMutuallyExclusive
-
isConstraintOn
-
and
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
Creates a sql-expression for the not() function.- Returns:
- the new DBCompareColExpr object
-
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
internally used for command cloning- Parameters:
newCmd- the new command object- Returns:
- the cloned compare expression
-