public class DBCommandOracle extends DBCommand
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery
Modifier and Type | Field and Description |
---|---|
protected DBCompareExpr |
connectBy |
protected int |
limitRows |
protected String |
optimizerHint |
protected int |
skipRows |
protected DBCompareExpr |
startWith |
cmdParams, groupBy, having, joins, log, select, selectDistinct, set, where
cmdQuery, orderBy
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
Constructor and Description |
---|
DBCommandOracle(DBDatabase db)
Constructs an oracle command object.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the entire command object.
|
void |
clearConnectBy()
Clears the connectBy Expression.
|
void |
clearLimit()
Clears a limit or offset set by calling limit() or offset()
|
void |
connectByPrior(DBCompareExpr expr) |
String |
getDelete(DBTable table)
Creates an Oracle specific delete statement.
|
String |
getOptimizerHint() |
Object[] |
getParamValues()
Returns an array of parameter values for a prepared statement.
|
void |
getSelect(StringBuilder buf)
Creates an Oracle specific select statement
that supports special features of the Oracle DBMS
like e.g.
|
protected String |
getSimpleUpdate() |
String |
getUpdate()
Creates an Oracle specific update statement.
|
protected String |
getUpdateWithJoins() |
void |
limitRows(int limitRows)
set the maximum number of rows to return when executing a query command
A negative value will remove the limit.
|
void |
setOptimizerHint(String optimizerHint) |
void |
setOptimizerIndexHint(DBIndex index) |
void |
skipRows(int skipRows)
sets the offset of the first row to return when executing a query command.
|
void |
startWith(DBCompareExpr expr) |
addFrom, addGrouping, addJoins, addOrder, addParam, addParam, addParam, addParam, addReferencedColumns, addSelect, addWhere, addWhere, addWhereConstraints, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, getDatabase, getInsert, getJoins, getRowSetList, getSelectExprList, getWhereConstraints, groupBy, hasConstraintOn, hasJoinOn, hasJoinOn, hasSelectExpr, hasSetExprOn, hasWhereConstraints, having, isPreparedStatementsEnabled, isSelectDistinct, isValid, isValidQuery, isValidUpdate, join, join, join, join, join, join, notifyParamUsage, removeConstraintOn, removeHavingConstraintOn, removeJoinsOn, removeJoinsOn, removeWhereConstraintOn, resetParamUsage, select, select, select, selectDistinct, set, setConstraint, useCmdParam, where
addListExpr, addSQL, clearOrderBy, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, orderBy, orderBy, orderBy, union
getObjectValue, getValueClass
protected DBCompareExpr connectBy
protected DBCompareExpr startWith
protected String optimizerHint
protected int limitRows
protected int skipRows
public DBCommandOracle(DBDatabase db)
db
- the oracle database object this command belongs toDBCommand
public String getOptimizerHint()
public void setOptimizerHint(String optimizerHint)
public void setOptimizerIndexHint(DBIndex index)
public void clear()
DBCommand
clear
in class DBCommand
DBCommand.clear()
public void clearConnectBy()
public void connectByPrior(DBCompareExpr expr)
public void startWith(DBCompareExpr expr)
public void limitRows(int limitRows)
DBCommandExpr
limitRows
in class DBCommandExpr
public void skipRows(int skipRows)
DBCommandExpr
skipRows
in class DBCommandExpr
public void clearLimit()
DBCommandExpr
clearLimit
in class DBCommandExpr
public void getSelect(StringBuilder buf)
public Object[] getParamValues()
DBCommand
getParamValues
in class DBCommand
public String getUpdate()
protected String getSimpleUpdate()
protected String getUpdateWithJoins()
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.