Module org.eclipse.persistence.core
Class SQLDeleteAllStatement
java.lang.Object
org.eclipse.persistence.internal.expressions.SQLStatement
org.eclipse.persistence.internal.expressions.SQLModifyStatement
org.eclipse.persistence.internal.expressions.SQLDeleteStatement
org.eclipse.persistence.internal.expressions.SQLDeleteAllStatement
- All Implemented Interfaces:
Serializable,Cloneable
Purpose: Print DELETE statement with non trivial WHERE clause
Responsibilities:
- Print DELETE statement.
- Since:
- TOPLink 10.1.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vectorprotected Expressionprotected Vectorprotected SQLCallprotected SQLCallprotected booleanprotected Stringprotected StringFields inherited from class org.eclipse.persistence.internal.expressions.SQLModifyStatement
modifyRow, returnFields, tableFields inherited from class org.eclipse.persistence.internal.expressions.SQLStatement
builder, hintString, translationRow, whereClause -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCall(AbstractSession session) Return SQL call for the statement, through generating the SQL string.voidsetAliasedFieldsForJoin(Vector aliasedFields) voidsetInheritanceExpression(Expression inheritanceExpression) voidsetOriginalFieldsForJoin(Vector originalFields) voidsetPrimaryKeyFieldsForAutoJoin(Collection primaryKeyFields) voidsetSelectCallForExist(SQLCall selectCallForExist) voidsetSelectCallForNotExist(SQLCall selectCallForNotExist) voidsetShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist) voidsetTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist) voidsetTableAliasInSelectCallForNotExist(String tableAliasInSelectCallForNotExist) booleanprotected voidwriteSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) protected booleanwriteWhere(Writer writer, SQLCall selectCall, SQLCall call) Methods inherited from class org.eclipse.persistence.internal.expressions.SQLModifyStatement
buildCallWithoutReturning, getModifyRow, getReturnFields, getTable, setModifyRow, setReturnFields, setTableMethods inherited from class org.eclipse.persistence.internal.expressions.SQLStatement
clone, getBuilder, getExpressionBuilder, getHintString, getTranslationRow, getWhereClause, setBuilder, setHintString, setTranslationRow, setWhereClause, toString
-
Field Details
-
inheritanceExpression
-
selectCallForExist
-
tableAliasInSelectCallForExist
-
selectCallForNotExist
-
tableAliasInSelectCallForNotExist
-
aliasedFields
-
originalFields
-
shouldExtractWhereClauseFromSelectCallForExist
protected boolean shouldExtractWhereClauseFromSelectCallForExist
-
-
Constructor Details
-
SQLDeleteAllStatement
public SQLDeleteAllStatement()
-
-
Method Details
-
setSelectCallForExist
-
getSelectCallForExist
-
setSelectCallForNotExist
-
getSelectCallForNotExist
-
setTableAliasInSelectCallForExist
-
getTableAliasInSelectCallForExist
-
setTableAliasInSelectCallForNotExist
-
getTableAliasInSelectCallForNotExist
-
setPrimaryKeyFieldsForAutoJoin
-
setOriginalFieldsForJoin
-
getOriginalFieldsForJoin
-
setAliasedFieldsForJoin
-
getAliasedFieldsForExpression
-
setInheritanceExpression
-
getInheritanceExpression
-
setShouldExtractWhereClauseFromSelectCallForExist
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist) -
shouldExtractWhereClauseFromSelectCallForExist
public boolean shouldExtractWhereClauseFromSelectCallForExist() -
buildCall
Return SQL call for the statement, through generating the SQL string.- Overrides:
buildCallin classSQLDeleteStatement
-
writeSelect
protected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws IOException - Throws:
IOException
-
writeWhere
- Throws:
IOException
-