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, orderByCTX_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, uniongetObjectValue, getValueClassprotected 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 DBCommandExprpublic DBDatabase getDatabase()
getDatabase in class DBObjectpublic void addReferencedColumns(Set<DBColumn> list)
DBExpraddReferencedColumns in class DBExprlist - list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)public DBColumnExpr[] getSelectExprList()
getSelectExprList in class DBCommandExprDBCommandExpr.getSelectExprList()public Object[] getParamValues()
getParamValues in class DBCommandExprpublic void getSelect(StringBuilder buf)
getSelect in class DBCommandExprbuf - the SQL-Commandpublic void orderBy(DBOrderByExpr... exprs)
DBCommandExprorderBy in class DBCommandExprexprs - vararg of orderBy expressionsDBCommandExpr.orderBy(DBColumnExpr, boolean)Copyright © 2008–2015 Apache Software Foundation. All rights reserved.