Class DBCommandPostgres

All Implemented Interfaces:
Cloneable

public class DBCommandPostgres extends DBCommand
Defines the PostgreSQL command type.
  • Field Details

    • limit

      protected int limit
    • skip

      protected int skip
  • Constructor Details

  • Method Details

    • pgAge

      public DBColumnExpr pgAge(DBColumnExpr expr)
      See https://www.postgresql.org/docs/current/functions-datetime.html
    • pgAge

      public DBColumnExpr pgAge(DBColumnExpr expr1, DBColumnExpr expr2)
      See https://www.postgresql.org/docs/current/functions-datetime.html
    • pgExtract

      public DBColumnExpr pgExtract(PostgresExtractField field, DBColumnExpr expr)
      See https://www.postgresql.org/docs/current/functions-datetime.html
    • pgToTsquery

      public DBColumnExpr pgToTsquery(DBColumnExpr expr)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgToTsvector

      public DBColumnExpr pgToTsvector(DBColumnExpr expr)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgPlaintoTsquery

      public DBColumnExpr pgPlaintoTsquery(DBColumnExpr expr)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgWebsearchToTsquery

      public DBColumnExpr pgWebsearchToTsquery(DBColumnExpr expr)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgBoolAnd

      public DBColumnExpr pgBoolAnd(DBCompareExpr cmpExpr)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgBoolOr

      public DBColumnExpr pgBoolOr(DBCompareExpr cmpExpr)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgCompareAtAt

      public PostgresAtAt pgCompareAtAt(DBColumnExpr left, DBColumnExpr right)
      See https://www.postgresql.org/docs/current/textsearch-controls.html
    • pgInterval

    • 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 numRows)
      Description copied from class: DBCommand
      Overridden to change return type from DBCommandExpr to DBCommand
      Overrides:
      skipRows in class DBCommand
      Parameters:
      numRows - 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")
    • addUpdateWithJoins

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