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 Vector
protected Expression
protected Vector
protected SQLCall
protected SQLCall
protected boolean
protected String
protected String
Fields inherited from class org.eclipse.persistence.internal.expressions.SQLModifyStatement
modifyRow, returnFields, table
Fields 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.void
setAliasedFieldsForJoin
(Vector aliasedFields) void
setInheritanceExpression
(Expression inheritanceExpression) void
setOriginalFieldsForJoin
(Vector originalFields) void
setPrimaryKeyFieldsForAutoJoin
(Collection primaryKeyFields) void
setSelectCallForExist
(SQLCall selectCallForExist) void
setSelectCallForNotExist
(SQLCall selectCallForNotExist) void
setShouldExtractWhereClauseFromSelectCallForExist
(boolean shouldExtractWhereClauseFromSelectCallForExist) void
setTableAliasInSelectCallForExist
(String tableAliasInSelectCallForExist) void
setTableAliasInSelectCallForNotExist
(String tableAliasInSelectCallForNotExist) boolean
protected void
writeSelect
(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) protected boolean
writeWhere
(Writer writer, SQLCall selectCall, SQLCall call) Methods inherited from class org.eclipse.persistence.internal.expressions.SQLModifyStatement
buildCallWithoutReturning, getModifyRow, getReturnFields, getTable, setModifyRow, setReturnFields, setTable
Methods 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:
buildCall
in classSQLDeleteStatement
-
writeSelect
protected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws IOException - Throws:
IOException
-
writeWhere
- Throws:
IOException
-