Class DBCommandExpr.DBCmdQuery

All Implemented Interfaces:
Entity
Enclosing class:
DBCommandExpr

protected static class DBCommandExpr.DBCmdQuery extends DBRowSet
  • Constructor Details

    • DBCmdQuery

      public DBCmdQuery(DBCommandExpr cmd, DBDatabase db, DBColumnExpr[] exprList)
      Creates a new DBCmdQueryObject
      Parameters:
      cmd - the command expression
      db - the database to which the query belongs
      exprList - the column expressions
  • Method Details

    • getName

      public String getName()
      Not applicable - returns null
      Specified by:
      getName in class DBRowSet
    • getAlias

      public String getAlias()
      Not applicable - returns null
      Specified by:
      getAlias in class DBRowSet
    • isUpdateable

      public boolean isUpdateable()
      Not applicable - returns false
      Specified by:
      isUpdateable in class DBRowSet
    • addReferencedColumns

      public void addReferencedColumns(Set<DBColumn> list)
      Description copied from class: DBExpr
      Internal function to obtain all DBColumnExpr-objects used by this expression.
      Overrides:
      addReferencedColumns in class DBRowSet
      Parameters:
      list - list to which all used column expressions must be added
      See Also:
    • addSQL

      public void addSQL(DBSQLBuilder sql, long context)
      Creates the SQL-Command adds the select statement into the SQL-Command.
      Specified by:
      addSQL in class DBExpr
      Parameters:
      sql - the SQL-Command
      context - the current SQL-Command context
    • getKeyColumns

      public DBColumn[] getKeyColumns()
      Prints the error message: ERR_NOTSUPPORTED.
      Specified by:
      getKeyColumns in interface Entity
      Specified by:
      getKeyColumns in class DBRowSet
      Returns:
      null
    • createRecord

      public void createRecord(DBRecordBase record, Object[] initalKey, boolean deferredInit)
      throws ERR_NOTSUPPORTED
      Specified by:
      createRecord in class DBRowSet
    • readRecord

      public void readRecord(DBRecordBase record, DBCompareExpr whereConstraints)
      throws ERR_NOTSUPPORTED
      Overrides:
      readRecord in class DBRowSet
      Parameters:
      record - the DBRecord object which will hold the record data
      whereConstraints - the constraint for querying the record
    • updateRecord

      public void updateRecord(DBRecordBase rec)
      throws ERR_NOTSUPPORTED
      Overrides:
      updateRecord in class DBRowSet
      Parameters:
      rec - the DBRecord object. contains all fields and the field properties
    • deleteRecord

      public void deleteRecord(Object[] key, DBContext context)
      throws ERR_NOTSUPPORTED
      Specified by:
      deleteRecord in class DBRowSet
    • cloneColumn

      protected DBColumn cloneColumn(DBRowSet clone, DBColumn scourceColumn)
      throws ERR_NOTSUPPORTED
      Specified by:
      cloneColumn in class DBRowSet
      Parameters:
      clone - the cloned rowset
      scourceColumn - the source column
      Returns:
      the cloned column