Top Description Fields Constructors Methods
org.eclipse.persistence.internal.expressions

public abstract Class SQLStatement

extends Object
implements Serializable, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, java.io.Serializable
Known Direct Subclasses
org.eclipse.persistence.internal.expressions.SQLModifyStatement, org.eclipse.persistence.internal.expressions.SQLSelectStatement
Imports
java.io.*, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.internal.sessions.DatabaseSessionImpl, .AbstractRecord, .AbstractSession, org.eclipse.persistence.expressions.*, org.eclipse.persistence.internal.databaseaccess.DatabaseCall

Purpose: Mirror SQL behavior.

Responsibilities:

Author
Dorin Sandu
Since
TOPLink/Java 1.0

Field Summary

Modifier and TypeField and Description
protected ExpressionBuilder
protected String
protected AbstractRecord
protected Expression

Constructor Summary

AccessConstructor and Description
protected
SQLStatement()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract DatabaseCall
buildCall(AbstractSession session)

Return SQL call for the statement, through generating the SQL string.

public Object
clone()

Overrides java.lang.Object.clone.

Clone the Statement
public ExpressionBuilder
public ExpressionBuilder
public String
getHintString()

INTERNAL: Return the Hint String for the statement

public AbstractRecord
getTranslationRow()

INTERNAL: Return the row for translation

public Expression
protected void
public void
setHintString(String newHintString)

INTERNAL: Set the Hint String for the statement

public void
setTranslationRow(AbstractRecord theRow)

INTERNAL: Set the row for translation

public void
public String
toString()

Overrides java.lang.Object.toString.

Try to print the SQL.
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

builderback to summary
protected ExpressionBuilder builder
hintStringback to summary
protected String hintString
translationRowback to summary
protected AbstractRecord translationRow
whereClauseback to summary
protected Expression whereClause

Constructor Detail

SQLStatementback to summary
protected SQLStatement()

Default constructor.

Method Detail

buildCallback to summary
public abstract DatabaseCall buildCall(AbstractSession session)

Return SQL call for the statement, through generating the SQL string.

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Clone the Statement

Returns:Object

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
getBuilderback to summary
public ExpressionBuilder getBuilder()
getExpressionBuilderback to summary
public ExpressionBuilder getExpressionBuilder()
getHintStringback to summary
public String getHintString()

INTERNAL: Return the Hint String for the statement

getTranslationRowback to summary
public AbstractRecord getTranslationRow()

INTERNAL: Return the row for translation

getWhereClauseback to summary
public Expression getWhereClause()
setBuilderback to summary
protected void setBuilder(ExpressionBuilder aBuilder)
setHintStringback to summary
public void setHintString(String newHintString)

INTERNAL: Set the Hint String for the statement

setTranslationRowback to summary
public void setTranslationRow(AbstractRecord theRow)

INTERNAL: Set the row for translation

setWhereClauseback to summary
public void setWhereClause(Expression expression)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Try to print the SQL.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override