Class DBMSHandlerMSSQL.DBCommandMSSQL

All Implemented Interfaces:
Cloneable
Enclosing class:
DBMSHandlerMSSQL

public static class DBMSHandlerMSSQL.DBCommandMSSQL extends DBCommand
Provides a DBCommand implementation for Microsoft SQL-Server
  • Field Details

    • limit

      protected int limit
    • skipRows

      protected int skipRows
  • Constructor Details

    • DBCommandMSSQL

      public DBCommandMSSQL(DBMSHandlerMSSQL dbms, boolean autoPrepareStmt)
  • Method Details

    • limitRows

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

      public DBCommand 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)
      Description copied from class: DBCommand
      Creates a select SQL-Statement
      Overrides:
      getSelect in class DBCommand
      Parameters:
      sql - the sql builder to add the command to
      flags - bitwise context flags for sql building (see "Select Context Flags")
    • addSelect

      protected void addSelect(DBSQLBuilder sql)
      Overrides:
      addSelect in class DBCommand