Class DBCompareJoinExpr

All Implemented Interfaces:
DBPreparable

public class DBCompareJoinExpr extends DBColumnJoinExpr
This class is used for building a join expression of an SQL statement.

There is no need to explicitly create instances of this class.
Instead use @link DBCommand.join(DBRowSet, DBCompareExpr, DBJoinType)

  • Field Details

  • Constructor Details

    • DBCompareJoinExpr

      public DBCompareJoinExpr(DBRowSet rset, DBCompareExpr cmp, DBJoinType joinType)
      Constructs a new DBJoinExprEx
      Parameters:
      rset - the rowset
      cmp - the compare expression
      joinType - the join type
  • Method Details

    • prepareParams

      public void prepareParams(DBCommand cmd, DBExpr parent)
      Description copied from interface: DBPreparable
      Prepares an expression for a query This function is called by DBCommand in order to add values as query parameters instead of being literally included in the sql statement Please Note: This function is internally called. Do not call yourself!
      Specified by:
      prepareParams in interface DBPreparable
      Overrides:
      prepareParams in class DBColumnJoinExpr
      Parameters:
      cmd - the command to which to add the parameters
      parent - the parent expression holding the value
    • copy

      public DBJoinExpr copy(DBCommand newCmd)
      Copy Command
      Overrides:
      copy in class DBColumnJoinExpr
      Parameters:
      newCmd - the new command object
      Returns:
      the join expression
    • getJoinConstraint

      public DBCompareExpr getJoinConstraint()
    • addSQL

      public void addSQL(DBSQLBuilder sql, long context)
      Description copied from class: DBColumnJoinExpr
      Not allowed, this operation have to be done in the DBCommand object.
      Overrides:
      addSQL in class DBColumnJoinExpr
      Parameters:
      sql - the string buffer used to build the sql command
      context - context flag for this SQL-Command (see CTX_??? constants).