Class DBExpr

java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
Direct Known Subclasses:
DBCmdParam, DBColumnExpr, DBCommandExpr, DBCompareExpr, DBGeneratedValue, DBJoinExpr, DBOrderByExpr, DBRowSet, DBSetExpr

public abstract class DBExpr extends DBObject
This abstract class is the base class for all database expression classes (e.g. DBAliasExpr or DBCalsExpr)
  • Field Details

  • Constructor Details

    • DBExpr

      public DBExpr()
  • Method Details

    • addSQL

      public abstract void addSQL(DBSQLBuilder sql, long context)
      Used to build the SQL command. SQL for this expression must be appended to StringBuilder.
      Parameters:
      sql - the string buffer used to build the sql command
      context - context flag for this SQL-Command (see CTX_??? constants).
    • addReferencedColumns

      public abstract void addReferencedColumns(Set<DBColumn> list)
      Internal function to obtain all DBColumnExpr-objects used by this expression.
      Parameters:
      list - list to which all used column expressions must be added