Class DBCommandOracle

All Implemented Interfaces:
Cloneable

public class DBCommandOracle extends DBCommand
This class handles the special features of an oracle database.
  • Field Details

    • connectBy

      protected DBCompareExpr connectBy
    • startWith

      protected DBCompareExpr startWith
    • optimizerHint

      protected String optimizerHint
    • limitRows

      protected int limitRows
    • skipRows

      protected int skipRows
  • Constructor Details

    • DBCommandOracle

      public DBCommandOracle(DBMSHandlerOracle dbms, boolean autoPrepareStmt)
      Constructs an oracle command object.
      Parameters:
      dbms - the oracle database handler
      autoPrepareStmt - flag whether to automatically use prepared statements
      See Also:
  • Method Details

    • getOptimizerHint

      public String getOptimizerHint()
    • setOptimizerHint

      public void setOptimizerHint(String optimizerHint)
    • setOptimizerIndexHint

      public void setOptimizerIndexHint(DBIndex index)
    • clear

      public void clear()
      Description copied from class: DBCommand
      Clears the entire command object.
      Overrides:
      clear in class DBCommand
      See Also:
    • clearConnectBy

      public void clearConnectBy()
      Clears the connectBy Expression.
    • connectByPrior

      public void connectByPrior(DBCompareExpr expr)
    • startWith

      public void startWith(DBCompareExpr expr)
    • limitRows

      public DBCommandOracle limitRows(int limitRows)
      Description copied from class: DBCommand
      Overridden to change return type from DBCommandExpr to DBCommand
      Overrides:
      limitRows in class DBCommand
      Parameters:
      limitRows - the number of rows to limit
      Returns:
      itself (this)
    • skipRows

      public DBCommandOracle skipRows(int skipRows)
      Description copied from class: DBCommand
      Overridden to change return type from DBCommandExpr to DBCommand
      Overrides:
      skipRows in class DBCommand
      Parameters:
      skipRows - the number of rows to skip
      Returns:
      itself (this)
    • clearLimit

      public void clearLimit()
      Description copied from class: DBCommandExpr
      Clears a limit or offset set by calling limit() or offset()
      Overrides:
      clearLimit in class DBCommandExpr
    • getSelect

      public void getSelect(DBSQLBuilder sql, int flags)
      Creates an Oracle specific select statement that supports special features of the Oracle DBMS like e.g. CONNECT BY PRIOR
      Overrides:
      getSelect in class DBCommand
      Parameters:
      sql - the SQL statement
      flags - bitwise context flags for sql building (see "Select Context Flags")
    • getParams

      public DBCmdParams getParams()
      Overrides:
      getParams in class DBCommand
    • getParamValues

      public Object[] getParamValues()
      Description copied from class: DBCommand
      Returns an array of parameter values for a prepared statement. The parameters are supplied only after getSelect(), getUpdate(), getInsert() or getDelete() have been called
      Overrides:
      getParamValues in class DBCommand
      Returns:
      an array of parameter values for a prepared statement
    • addUpdateForTable

      protected void addUpdateForTable(DBSQLBuilder sql, DBRowSet table)
      Overrides:
      addUpdateForTable in class DBCommand
    • addUpdateWithJoins

      protected void addUpdateWithJoins(DBSQLBuilder sql, DBRowSet table)
      Overrides:
      addUpdateWithJoins in class DBCommand
    • addDeleteForTable

      protected void addDeleteForTable(DBSQLBuilder sql, DBRowSet table)
      Overrides:
      addDeleteForTable in class DBCommand
    • addDeleteWithJoins

      protected void addDeleteWithJoins(DBSQLBuilder sql, DBRowSet table)
      Overrides:
      addDeleteWithJoins in class DBCommand