public class DBCompareAndOrExpr extends DBCompareExpr
There is no need to explicitly create instances of this class.
Instead use DBCompareExpr.and(DBCompareExpr)
or DBCompareExpr.or(DBCompareExpr)
Modifier and Type | Field and Description |
---|---|
protected DBCompareExpr |
left |
protected boolean |
or |
protected DBCompareExpr |
right |
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
Constructor and Description |
---|
DBCompareAndOrExpr(DBCompareExpr left,
DBCompareExpr right,
boolean or)
Constructs a DBCompareColExpr object
|
Modifier and Type | Method and Description |
---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
addSQL(StringBuilder buf,
long context)
Creates the SQL-Command sets the specified compare value
(the varible boolOP) between the two DBCompareExpr objects.
|
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
DBCompareExpr |
getLeft() |
DBCompareExpr |
getRight() |
boolean |
isMutuallyExclusive(DBCompareExpr other)
Returns wheter the constraint should replace another one or not.
|
boolean |
isOr() |
DBCompareExpr |
parenthesis()
wraps the current expression with parenthesis.
|
and, not, or
getObjectValue, getValueClass
protected final DBCompareExpr left
protected final DBCompareExpr right
protected final boolean or
public DBCompareAndOrExpr(DBCompareExpr left, DBCompareExpr right, boolean or)
left
- the left side of the expressionright
- the right side of the expressionor
- true for OR operation, false for ANDpublic DBCompareExpr getLeft()
public DBCompareExpr getRight()
public boolean isOr()
public DBDatabase getDatabase()
getDatabase
in class DBObject
public void addReferencedColumns(Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBExpr
list
- list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)
public void addSQL(StringBuilder buf, long context)
public boolean isMutuallyExclusive(DBCompareExpr other)
isMutuallyExclusive
in class DBCompareExpr
public DBCompareExpr parenthesis()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.