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, wherecmdQuery, orderByCTX_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, notifyParamUsage, removeConstraintOn, removeHavingConstraintOn, removeJoinsOn, removeJoinsOn, removeWhereConstraintOn, resetParamUsage, select, select, select, selectDistinct, set, setConstraint, useCmdParam, whereaddListExpr, addSQL, clearOrderBy, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, orderBy, orderBy, orderBy, uniongetObjectValue, getValueClassprotected 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 toDBCommandpublic String getOptimizerHint()
public void setOptimizerHint(String optimizerHint)
public void setOptimizerIndexHint(DBIndex index)
public void clear()
DBCommandclear in class DBCommandDBCommand.clear()public void clearConnectBy()
public void connectByPrior(DBCompareExpr expr)
public void startWith(DBCompareExpr expr)
public void limitRows(int limitRows)
DBCommandExprlimitRows in class DBCommandExprpublic void skipRows(int skipRows)
DBCommandExprskipRows in class DBCommandExprpublic void clearLimit()
DBCommandExprclearLimit in class DBCommandExprpublic void getSelect(StringBuilder buf)
public Object[] getParamValues()
DBCommandgetParamValues in class DBCommandpublic String getUpdate()
protected String getSimpleUpdate()
protected String getUpdateWithJoins()
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.