java.lang.Object
org.eclipse.persistence.internal.expressions.SQLStatement
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
SQLModifyStatement, SQLSelectStatement

public abstract class SQLStatement extends Object implements Serializable, Cloneable

Purpose: Mirror SQL behavior.

Responsibilities:

  • Mirror SQL behavior.
  • Print as SQL string.
Since:
TOPLink/Java 1.0
See Also:
  • Field Details

  • Constructor Details

    • SQLStatement

      protected SQLStatement()
      Default constructor.
  • Method Details

    • buildCall

      public abstract DatabaseCall buildCall(AbstractSession session)
      Return SQL call for the statement, through generating the SQL string.
    • clone

      public Object clone()
      Clone the Statement
      Overrides:
      clone in class Object
    • getBuilder

      public ExpressionBuilder getBuilder()
    • getExpressionBuilder

      public ExpressionBuilder getExpressionBuilder()
    • getHintString

      public String getHintString()
      INTERNAL: Return the Hint String for the statement
    • getTranslationRow

      public AbstractRecord getTranslationRow()
      INTERNAL: Return the row for translation
    • getWhereClause

      public Expression getWhereClause()
    • setHintString

      public void setHintString(String newHintString)
      INTERNAL: Set the Hint String for the statement
    • setBuilder

      protected void setBuilder(ExpressionBuilder aBuilder)
    • setTranslationRow

      public void setTranslationRow(AbstractRecord theRow)
      INTERNAL: Set the row for translation
    • setWhereClause

      public void setWhereClause(Expression expression)
    • toString

      public String toString()
      Try to print the SQL.
      Overrides:
      toString in class Object