Class SQLStatement
- 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
- Author:
- Dorin Sandu
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionBuilder
builder
protected String
hintString
protected AbstractRecord
translationRow
protected Expression
whereClause
-
Constructor Summary
Constructors Constructor Description SQLStatement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DatabaseCall
buildCall(AbstractSession session)
Return SQL call for the statement, through generating the SQL string.Object
clone()
Clone the StatementExpressionBuilder
getBuilder()
ExpressionBuilder
getExpressionBuilder()
String
getHintString()
INTERNAL: Return the Hint String for the statementAbstractRecord
getTranslationRow()
INTERNAL: Return the row for translationExpression
getWhereClause()
protected void
setBuilder(ExpressionBuilder aBuilder)
void
setHintString(String newHintString)
INTERNAL: Set the Hint String for the statementvoid
setTranslationRow(AbstractRecord theRow)
INTERNAL: Set the row for translationvoid
setWhereClause(Expression expression)
String
toString()
Try to print the SQL.
-
-
-
Field Detail
-
whereClause
protected Expression whereClause
-
builder
protected ExpressionBuilder builder
-
translationRow
protected AbstractRecord translationRow
-
hintString
protected String hintString
-
-
Method Detail
-
buildCall
public abstract DatabaseCall buildCall(AbstractSession session)
Return SQL call for the statement, through generating the SQL string.
-
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)
-
-