public class DBCombinedCmd extends DBCommandExpr
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery| Modifier and Type | Field and Description |
|---|---|
protected DBCmdParamList |
cmdParams |
protected String |
keyWord |
protected DBCommandExpr |
left |
protected DBCommandExpr |
right |
cmdQuery, orderBy, SF_DEFAULT, SF_SKIP_FROM, SF_SKIP_GROUP, SF_SKIP_LIMIT, SF_SKIP_ORDER, SF_SKIP_SELECT, SF_SKIP_WHERECTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, 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.
|
protected DBSQLBuilder |
createSQLBuilder(String initalSQL)
creates a new DBSQLBuilder
|
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
DataType |
getDataType()
Returns the DataType selected by this command if only one column is returned
If the command has more than one select expression DataType.UNKNOWN will be returned
|
DBCmdParams |
getParams() |
Object[] |
getParamValues()
Returns the list of parameter values for a prepared statement.
|
void |
getSelect(DBSQLBuilder sql,
int flags)
Creates the SQL-Command.
|
List<DBColumnExpr> |
getSelectExpressions()
Returns all select expressions as unmodifiable list
|
DBColumnExpr[] |
getSelectExprList()
Calls the method dbDBCommandExpr.getSelectExprList from the private variable 'left'.
|
boolean |
hasSelectExpr()
returns whether or not the command has any select expression
|
boolean |
hasSelectExpr(DBColumnExpr expr)
returns whether or not the command has a specific select expression
|
boolean |
isValid() |
DBCommandExpr |
orderBy(DBOrderByExpr... exprs)
Adds an order by expression the command
|
addListExpr, addSQL, clearLimit, clearOrderBy, clone, getCmdColumn, getDbms, getInsertInto, getInsertInto, getInsertInto, getOrderBy, getSelect, getSelect, hasOrderBy, intersect, limitRows, not, notEmpty, orderBy, orderBy, result, skipRows, union, unionAllcheckParamNullprotected DBCommandExpr left
protected DBCommandExpr right
protected String keyWord
protected DBCmdParamList cmdParams
public DBCombinedCmd(DBCommandExpr left, String keyWord, DBCommandExpr right)
left - the first DBCommandExpr objectkeyWord - the key word between the two DBCommandExpr objectsright - the second DBCommandExpr objectprotected DBSQLBuilder createSQLBuilder(String initalSQL)
DBCommandExprcreateSQLBuilder in class DBCommandExprinitalSQL - the initial sql fragmentpublic boolean isValid()
isValid in class DBCommandExprpublic final 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 boolean hasSelectExpr()
hasSelectExpr in class DBCommandExprpublic boolean hasSelectExpr(DBColumnExpr expr)
hasSelectExpr in class DBCommandExprexpr - the column exprpublic List<DBColumnExpr> getSelectExpressions()
getSelectExpressions in class DBCommandExprpublic DBColumnExpr[] getSelectExprList()
getSelectExprList in class DBCommandExprDBCommandExpr.getSelectExprList()public DBCmdParams getParams()
getParams in class DBCommandExprpublic Object[] getParamValues()
getParamValues in class DBCommandExprpublic DataType getDataType()
DBCommandExprgetDataType in class DBCommandExprpublic void getSelect(DBSQLBuilder sql, int flags)
getSelect in class DBCommandExprsql - the SQL-Commandflags - bitwise context flags for sql building (see "Select Context Flags")public DBCommandExpr orderBy(DBOrderByExpr... exprs)
DBCommandExprorderBy in class DBCommandExprexprs - vararg of orderBy expressionsDBCommandExpr.orderBy(DBColumnExpr, boolean)Copyright © 2008–2023 Apache Software Foundation. All rights reserved.