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

public Class SQLDeleteAllStatement

extends SQLDeleteStatement
Class Inheritance
Imports
java.io.*, java.util.*, org.eclipse.persistence.exceptions.*, org.eclipse.persistence.expressions.Expression, org.eclipse.persistence.queries.*, org.eclipse.persistence.internal.databaseaccess.DatabaseCall, .DatasourcePlatform, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.internal.sessions.AbstractSession

Purpose: Print DELETE statement with non trivial WHERE clause

Responsibilities:

Author
Andrei Ilitchev
Since
TOPLink 10.1.3

Field Summary

Modifier and TypeField and Description
protected Vector<E>
protected Expression
protected Vector<E>
protected SQLCall
protected SQLCall
protected boolean
protected String
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides org.eclipse.persistence.internal.expressions.SQLDeleteStatement.buildCall.

Return SQL call for the statement, through generating the SQL string.
public Vector<E>
public Expression
public Vector<E>
public SQLCall
public SQLCall
public String
public String
public void
setAliasedFieldsForJoin(Vector<E> aliasedFields)

public void
setInheritanceExpression(Expression inheritanceExpression)

public void
setOriginalFieldsForJoin(Vector<E> originalFields)

public void
public void
setSelectCallForExist(SQLCall selectCallForExist)

public void
setSelectCallForNotExist(SQLCall selectCallForNotExist)

public void
setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)

public void
setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)

public void
setTableAliasInSelectCallForNotExist(String tableAliasInSelectCallForNotExist)

public boolean
protected void
writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform)

protected boolean
writeWhere(Writer writer, SQLCall selectCall, SQLCall call)

Field Detail

aliasedFieldsback to summary
protected Vector<E> aliasedFields
inheritanceExpressionback to summary
protected Expression inheritanceExpression
originalFieldsback to summary
protected Vector<E> originalFields
selectCallForExistback to summary
protected SQLCall selectCallForExist
selectCallForNotExistback to summary
protected SQLCall selectCallForNotExist
shouldExtractWhereClauseFromSelectCallForExistback to summary
protected boolean shouldExtractWhereClauseFromSelectCallForExist
tableAliasInSelectCallForExistback to summary
protected String tableAliasInSelectCallForExist
tableAliasInSelectCallForNotExistback to summary
protected String tableAliasInSelectCallForNotExist

Constructor Detail

SQLDeleteAllStatementback to summary
public SQLDeleteAllStatement()

Method Detail

buildCallback to summary
public DatabaseCall buildCall(AbstractSession session)

Overrides org.eclipse.persistence.internal.expressions.SQLDeleteStatement.buildCall.

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

Annotations
@Override
getAliasedFieldsForExpressionback to summary
public Vector<E> getAliasedFieldsForExpression()
getInheritanceExpressionback to summary
public Expression getInheritanceExpression()
getOriginalFieldsForJoinback to summary
public Vector<E> getOriginalFieldsForJoin()
getSelectCallForExistback to summary
public SQLCall getSelectCallForExist()
getSelectCallForNotExistback to summary
public SQLCall getSelectCallForNotExist()
getTableAliasInSelectCallForExistback to summary
public String getTableAliasInSelectCallForExist()
getTableAliasInSelectCallForNotExistback to summary
public String getTableAliasInSelectCallForNotExist()
setAliasedFieldsForJoinback to summary
public void setAliasedFieldsForJoin(Vector<E> aliasedFields)
setInheritanceExpressionback to summary
public void setInheritanceExpression(Expression inheritanceExpression)
setOriginalFieldsForJoinback to summary
public void setOriginalFieldsForJoin(Vector<E> originalFields)
setPrimaryKeyFieldsForAutoJoinback to summary
public void setPrimaryKeyFieldsForAutoJoin(Collection<E> primaryKeyFields)
setSelectCallForExistback to summary
public void setSelectCallForExist(SQLCall selectCallForExist)
setSelectCallForNotExistback to summary
public void setSelectCallForNotExist(SQLCall selectCallForNotExist)
setShouldExtractWhereClauseFromSelectCallForExistback to summary
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)
setTableAliasInSelectCallForExistback to summary
public void setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)
setTableAliasInSelectCallForNotExistback to summary
public void setTableAliasInSelectCallForNotExist(String tableAliasInSelectCallForNotExist)
shouldExtractWhereClauseFromSelectCallForExistback to summary
public boolean shouldExtractWhereClauseFromSelectCallForExist()
writeSelectback to summary
protected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws IOException
writeWhereback to summary
protected boolean writeWhere(Writer writer, SQLCall selectCall, SQLCall call) throws IOException