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_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.
|
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)
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, createSQLBuilder, getCmdColumn, getDbms, getInsertInto, getInsertInto, getInsertInto, getOrderBy, getSelect, hasOrderBy, intersect, limitRows, orderBy, orderBy, result, skipRows, union, unionAll
checkParamNull
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 final 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 boolean hasSelectExpr()
hasSelectExpr
in class DBCommandExpr
public boolean hasSelectExpr(DBColumnExpr expr)
hasSelectExpr
in class DBCommandExpr
expr
- the column exprpublic List<DBColumnExpr> getSelectExpressions()
getSelectExpressions
in class DBCommandExpr
public DBColumnExpr[] getSelectExprList()
getSelectExprList
in class DBCommandExpr
DBCommandExpr.getSelectExprList()
public DBCmdParams getParams()
getParams
in class DBCommandExpr
public Object[] getParamValues()
getParamValues
in class DBCommandExpr
public DataType getDataType()
DBCommandExpr
getDataType
in class DBCommandExpr
public void getSelect(DBSQLBuilder sql)
getSelect
in class DBCommandExpr
sql
- the SQL-Commandpublic DBCommandExpr orderBy(DBOrderByExpr... exprs)
DBCommandExpr
orderBy
in class DBCommandExpr
exprs
- vararg of orderBy expressionsDBCommandExpr.orderBy(DBColumnExpr, boolean)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.