Class SQLStatement
- java.lang.Object
-
- org.eclipse.persistence.internal.expressions.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.CloneablePurpose: Mirror SQL behavior.
Responsibilities:
- Mirror SQL behavior.
- Print as SQL string.
- Since:
- TOPLink/Java 1.0
- Author:
- Dorin Sandu
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionBuilderbuilderprotected java.lang.StringhintStringprotected AbstractRecordtranslationRowprotected ExpressionwhereClause
-
Constructor Summary
Constructors Constructor Description SQLStatement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DatabaseCallbuildCall(AbstractSession session)Return SQL call for the statement, through generating the SQL string.java.lang.Objectclone()Clone the StatementExpressionBuildergetBuilder()ExpressionBuildergetExpressionBuilder()java.lang.StringgetHintString()INTERNAL: Return the Hint String for the statementAbstractRecordgetTranslationRow()INTERNAL: Return the row for translationExpressiongetWhereClause()protected voidsetBuilder(ExpressionBuilder aBuilder)voidsetHintString(java.lang.String newHintString)INTERNAL: Set the Hint String for the statementvoidsetTranslationRow(AbstractRecord theRow)INTERNAL: Set the row for translationvoidsetWhereClause(Expression expression)java.lang.StringtoString()Try to print the SQL.
-
-
-
Field Detail
-
whereClause
protected Expression whereClause
-
builder
protected ExpressionBuilder builder
-
translationRow
protected AbstractRecord translationRow
-
hintString
protected java.lang.String hintString
-
-
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:
clonein classjava.lang.Object
-
getBuilder
public ExpressionBuilder getBuilder()
-
getExpressionBuilder
public ExpressionBuilder getExpressionBuilder()
-
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
-
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 java.lang.String toString()
Try to print the SQL.- Overrides:
toStringin classjava.lang.Object
-
-