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
public class SQLDeleteAllStatement extends SQLDeleteStatement
Purpose: Print DELETE statement with non trivial WHERE clause
Responsibilities:
- Print DELETE statement.
- Since:
- TOPLink 10.1.3
- Author:
- Andrei Ilitchev
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected VectoraliasedFieldsprotected ExpressioninheritanceExpressionprotected VectororiginalFieldsprotected SQLCallselectCallForExistprotected SQLCallselectCallForNotExistprotected booleanshouldExtractWhereClauseFromSelectCallForExistprotected StringtableAliasInSelectCallForExistprotected StringtableAliasInSelectCallForNotExist-
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 Constructor Description SQLDeleteAllStatement()
-
Method Summary
-
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 Detail
-
inheritanceExpression
protected Expression inheritanceExpression
-
selectCallForExist
protected SQLCall selectCallForExist
-
tableAliasInSelectCallForExist
protected String tableAliasInSelectCallForExist
-
selectCallForNotExist
protected SQLCall selectCallForNotExist
-
tableAliasInSelectCallForNotExist
protected String tableAliasInSelectCallForNotExist
-
aliasedFields
protected Vector aliasedFields
-
originalFields
protected Vector originalFields
-
shouldExtractWhereClauseFromSelectCallForExist
protected boolean shouldExtractWhereClauseFromSelectCallForExist
-
-
Method Detail
-
setSelectCallForExist
public void setSelectCallForExist(SQLCall selectCallForExist)
-
getSelectCallForExist
public SQLCall getSelectCallForExist()
-
setSelectCallForNotExist
public void setSelectCallForNotExist(SQLCall selectCallForNotExist)
-
getSelectCallForNotExist
public SQLCall getSelectCallForNotExist()
-
setTableAliasInSelectCallForExist
public void setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)
-
getTableAliasInSelectCallForExist
public String getTableAliasInSelectCallForExist()
-
setTableAliasInSelectCallForNotExist
public void setTableAliasInSelectCallForNotExist(String tableAliasInSelectCallForNotExist)
-
getTableAliasInSelectCallForNotExist
public String getTableAliasInSelectCallForNotExist()
-
setPrimaryKeyFieldsForAutoJoin
public void setPrimaryKeyFieldsForAutoJoin(Collection primaryKeyFields)
-
setOriginalFieldsForJoin
public void setOriginalFieldsForJoin(Vector originalFields)
-
getOriginalFieldsForJoin
public Vector getOriginalFieldsForJoin()
-
setAliasedFieldsForJoin
public void setAliasedFieldsForJoin(Vector aliasedFields)
-
getAliasedFieldsForExpression
public Vector getAliasedFieldsForExpression()
-
setInheritanceExpression
public void setInheritanceExpression(Expression inheritanceExpression)
-
getInheritanceExpression
public Expression getInheritanceExpression()
-
setShouldExtractWhereClauseFromSelectCallForExist
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)
-
shouldExtractWhereClauseFromSelectCallForExist
public boolean shouldExtractWhereClauseFromSelectCallForExist()
-
buildCall
public DatabaseCall buildCall(AbstractSession session)
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
protected boolean writeWhere(Writer writer, SQLCall selectCall, SQLCall call) throws IOException
- Throws:
IOException
-
-