org.apache.empire.db.oracle
Class DBCommandOracle
java.lang.Object
org.apache.empire.commons.ErrorObject
org.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
- All Implemented Interfaces:
- java.lang.Cloneable, ErrorInfo
public class DBCommandOracle
- extends DBCommand
This class handles the special features of an oracle database.
Methods inherited from class org.apache.empire.db.DBCommand |
addCmdParam, addFrom, addGrouping, addJoins, addOrder, addReferencedColumns, addSelect, addWhere, addWhereConstraints, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, getCmdParams, getCmdParamValue, getDatabase, getInsert, getJoins, getSelectExprList, getTableList, getUpdate, getWhereConstraints, groupBy, hasJoinOn, hasSelectExpr, hasSetExprOn, hasWhereConstraints, having, isSelectDistinct, isValid, isValidQuery, isValidUpdate, join, join, join, join, join, removeConstraintOn, removeHavingConstraintOn, removeWhereConstraintOn, select, select, select, selectDistinct, set, setCmdParam, setConstraint, skipRows, useCmdParam, where |
Methods inherited from class org.apache.empire.db.DBCommandExpr |
addListExpr, addSQL, clearOrderBy, getCmdColumn, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, orderBy, orderBy, orderBy, union |
Methods inherited from class org.apache.empire.commons.ErrorObject |
clearError, clearErrorInfo, error, error, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectBy
protected DBCompareExpr connectBy
startWith
protected DBCompareExpr startWith
optimizerHint
protected java.lang.String optimizerHint
rowNumExpr
protected OracleRowNumExpr rowNumExpr
DBCommandOracle
public DBCommandOracle(DBDatabase db)
- Constructs an oracle command object.
- Parameters:
db
- the oracle database object this command belongs to- See Also:
DBCommand
getOptimizerHint
public java.lang.String getOptimizerHint()
setOptimizerHint
public void setOptimizerHint(java.lang.String optimizerHint)
clear
public void clear()
- Description copied from class:
DBCommand
- Clears the entire command object.
- Overrides:
clear
in class DBCommand
- See Also:
DBCommand.clear()
clearConnectBy
public void clearConnectBy()
- Clears the connectBy Expression.
connectByPrior
public void connectByPrior(DBCompareExpr expr)
startWith
public void startWith(DBCompareExpr expr)
limitRows
public boolean limitRows(int numRows)
- Description copied from class:
DBCommand
- set the maximum number of rows to return when executing a query command
A negative value will remove the limit.
- Overrides:
limitRows
in class DBCommand
- Returns:
- true if the database supports a limit or false otherwise
clearLimit
public void clearLimit()
- Description copied from class:
DBCommand
- Clears a limit or offset set by calling limit() or offset()
- Overrides:
clearLimit
in class DBCommand
getSelect
public boolean getSelect(java.lang.StringBuilder buf)
- Creates the SQL statement the special characteristics of
the Oracle database are supported.
- Overrides:
getSelect
in class DBCommand
- Parameters:
buf
- the SQL statment
- Returns:
- true if the creation was successful
getDelete
public java.lang.String getDelete(DBTable table)
- Creates the delete SQL-Command.
- Overrides:
getDelete
in class DBCommand
- Parameters:
table
- the table object
- Returns:
- the delete SQL-Command
Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.