Class SQLStatement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    SQLModifyStatement, SQLSelectStatement

    public abstract class SQLStatement
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable

    Purpose: Mirror SQL behavior.

    Responsibilities:

    • Mirror SQL behavior.
    • Print as SQL string.
    Since:
    TOPLink/Java 1.0
    Author:
    Dorin Sandu
    See Also:
    Serialized Form
    • Constructor Detail

      • SQLStatement

        public SQLStatement()
    • Method Detail

      • buildCall

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

        public java.lang.Object clone()
        Clone the Statement
        Overrides:
        clone in class java.lang.Object
      • getHintString

        public java.lang.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​(java.lang.String newHintString)
        INTERNAL: Set the Hint String for the statement
      • setTranslationRow

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

        public void setWhereClause​(Expression expression)
      • toString

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