public class DBCombinedCmd extends DBCommandExpr
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery
Modifier and Type | Field and Description |
---|---|
protected String |
keyWord |
protected DBCommandExpr |
left |
protected DBCommandExpr |
right |
cmdQuery, orderBy
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
Constructor and Description |
---|
DBCombinedCmd(DBCommandExpr left,
String keyWord,
DBCommandExpr right)
Constructs a new DBFuncExpr object and
sets the specified parameters to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
Object[] |
getParamValues()
Returns the list of parameter values for a prepared statement.
|
void |
getSelect(StringBuilder buf)
Creates the SQL-Command.
|
DBColumnExpr[] |
getSelectExprList()
Calls the method dbDBCommandExpr.getSelectExprList from the private variable 'left'.
|
boolean |
isValid() |
void |
orderBy(DBOrderByExpr... exprs)
Adds an order by expression the command
|
addListExpr, addSQL, clearLimit, clearOrderBy, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, limitRows, orderBy, orderBy, skipRows, union, unionAll
getObjectValue, getValueClass
protected DBCommandExpr left
protected DBCommandExpr right
protected String keyWord
public DBCombinedCmd(DBCommandExpr left, String keyWord, DBCommandExpr right)
left
- the first DBCommandExpr objectkeyWord
- the key word between the two DBCommandExpr objectsright
- the second DBCommandExpr objectpublic boolean isValid()
isValid
in class DBCommandExpr
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 DBColumnExpr[] getSelectExprList()
getSelectExprList
in class DBCommandExpr
DBCommandExpr.getSelectExprList()
public Object[] getParamValues()
getParamValues
in class DBCommandExpr
public void getSelect(StringBuilder buf)
getSelect
in class DBCommandExpr
buf
- the SQL-Commandpublic void orderBy(DBOrderByExpr... exprs)
DBCommandExpr
orderBy
in class DBCommandExpr
exprs
- vararg of orderBy expressionsDBCommandExpr.orderBy(DBColumnExpr, boolean)
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.