Class OracleRowNumExpr

All Implemented Interfaces:
ColumnExpr

public class OracleRowNumExpr extends DBColumnExpr
implements a column expression for the Oracle rownum function
  • Field Details

  • Constructor Details

    • OracleRowNumExpr

      public OracleRowNumExpr(DBDatabase db)
      Constructs a new OracleRowNumExpr object.
      Parameters:
      db - the database
  • Method Details

    • getDatabase

      public final DBDatabase getDatabase()
      Returns the current DBDatabase object.
      Specified by:
      getDatabase in class DBObject
      Returns:
      the current DBDatabase object
    • getDataType

      public DataType getDataType()
      Returns the data type of the DBColumnExpr object.
      Specified by:
      getDataType in interface ColumnExpr
      Specified by:
      getDataType in class DBColumnExpr
      Returns:
      the data type
      See Also:
    • getEnumType

      public Class<Enum<?>> getEnumType()
      Not an Enum. Returns null
      Returns:
      the enum type
    • getName

      public String getName()
      Returns the column name.
      Specified by:
      getName in interface ColumnExpr
      Specified by:
      getName in class DBColumnExpr
      Returns:
      the column name
    • addXml

      public Element addXml(Element parent, long flags)
      this helper function calls the DBColumnExpr.addXML(Element, long) method
      Specified by:
      addXml in class DBColumnExpr
      Parameters:
      parent - the parent element to which to append the column description
      flags - currently not used
      Returns:
      the newly created child element
    • getRowSet

      public DBRowSet getRowSet()
      Returns null.
      Specified by:
      getRowSet in class DBColumnExpr
      Returns:
      null
    • getUpdateColumn

      public DBColumn getUpdateColumn()
      Returns null.
      Specified by:
      getUpdateColumn in interface ColumnExpr
      Specified by:
      getUpdateColumn in class DBColumnExpr
      Returns:
      null
    • isAggregate

      public boolean isAggregate()
      Always returns false
      Specified by:
      isAggregate in class DBColumnExpr
      Returns:
      false
    • addSQL

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

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      See Also: