|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBCommandExpr
org.apache.empire.db.DBCommand
org.apache.empire.db.oracle.DBCommandOracle
public class DBCommandOracle
This class handles the special features of an oracle database.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.empire.db.DBCommandExpr |
---|
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery |
Field Summary | |
---|---|
protected DBCompareExpr |
connectBy
|
protected int |
limitRows
|
protected String |
optimizerHint
|
protected int |
skipRows
|
protected DBCompareExpr |
startWith
|
Fields inherited from class org.apache.empire.db.DBCommand |
---|
cmdParams, groupBy, having, joins, log, select, selectDistinct, set, where |
Fields inherited from class org.apache.empire.db.DBCommandExpr |
---|
cmdQuery, orderBy |
Fields inherited from class org.apache.empire.db.DBExpr |
---|
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE |
Constructor Summary | |
---|---|
DBCommandOracle(DBDatabase db)
Constructs an oracle command object. |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.empire.db.DBCommand |
---|
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, where |
Methods inherited from class org.apache.empire.db.DBCommandExpr |
---|
addListExpr, addSQL, clearOrderBy, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, orderBy, orderBy, orderBy, union |
Methods inherited from class org.apache.empire.db.DBExpr |
---|
getObjectValue, getValueClass |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DBCompareExpr connectBy
protected DBCompareExpr startWith
protected String optimizerHint
protected int limitRows
protected int skipRows
Constructor Detail |
---|
public DBCommandOracle(DBDatabase db)
db
- the oracle database object this command belongs toDBCommand
Method Detail |
---|
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)
getSelect
in class DBCommand
buf
- the SQL statementpublic Object[] getParamValues()
DBCommand
getParamValues
in class DBCommand
public String getUpdate()
getUpdate
in class DBCommand
protected String getSimpleUpdate()
protected String getUpdateWithJoins()
public String getDelete(DBTable table)
getDelete
in class DBCommand
table
- the table object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |