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:
java.io.Serializable,java.lang.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 java.util.VectoraliasedFieldsprotected ExpressioninheritanceExpressionprotected java.util.VectororiginalFieldsprotected SQLCallselectCallForExistprotected SQLCallselectCallForNotExistprotected booleanshouldExtractWhereClauseFromSelectCallForExistprotected java.lang.StringtableAliasInSelectCallForExistprotected java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseCallbuildCall(AbstractSession session)Return SQL call for the statement, through generating the SQL string.java.util.VectorgetAliasedFieldsForExpression()ExpressiongetInheritanceExpression()java.util.VectorgetOriginalFieldsForJoin()SQLCallgetSelectCallForExist()SQLCallgetSelectCallForNotExist()java.lang.StringgetTableAliasInSelectCallForExist()java.lang.StringgetTableAliasInSelectCallForNotExist()voidsetAliasedFieldsForJoin(java.util.Vector aliasedFields)voidsetInheritanceExpression(Expression inheritanceExpression)voidsetOriginalFieldsForJoin(java.util.Vector originalFields)voidsetPrimaryKeyFieldsForAutoJoin(java.util.Collection primaryKeyFields)voidsetSelectCallForExist(SQLCall selectCallForExist)voidsetSelectCallForNotExist(SQLCall selectCallForNotExist)voidsetShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)voidsetTableAliasInSelectCallForExist(java.lang.String tableAliasInSelectCallForExist)voidsetTableAliasInSelectCallForNotExist(java.lang.String tableAliasInSelectCallForNotExist)booleanshouldExtractWhereClauseFromSelectCallForExist()protected voidwriteSelect(java.io.Writer writer, SQLCall selectCall, java.lang.String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform)protected booleanwriteWhere(java.io.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 Detail
-
inheritanceExpression
protected Expression inheritanceExpression
-
selectCallForExist
protected SQLCall selectCallForExist
-
tableAliasInSelectCallForExist
protected java.lang.String tableAliasInSelectCallForExist
-
selectCallForNotExist
protected SQLCall selectCallForNotExist
-
tableAliasInSelectCallForNotExist
protected java.lang.String tableAliasInSelectCallForNotExist
-
aliasedFields
protected java.util.Vector aliasedFields
-
originalFields
protected java.util.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(java.lang.String tableAliasInSelectCallForExist)
-
getTableAliasInSelectCallForExist
public java.lang.String getTableAliasInSelectCallForExist()
-
setTableAliasInSelectCallForNotExist
public void setTableAliasInSelectCallForNotExist(java.lang.String tableAliasInSelectCallForNotExist)
-
getTableAliasInSelectCallForNotExist
public java.lang.String getTableAliasInSelectCallForNotExist()
-
setPrimaryKeyFieldsForAutoJoin
public void setPrimaryKeyFieldsForAutoJoin(java.util.Collection primaryKeyFields)
-
setOriginalFieldsForJoin
public void setOriginalFieldsForJoin(java.util.Vector originalFields)
-
getOriginalFieldsForJoin
public java.util.Vector getOriginalFieldsForJoin()
-
setAliasedFieldsForJoin
public void setAliasedFieldsForJoin(java.util.Vector aliasedFields)
-
getAliasedFieldsForExpression
public java.util.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(java.io.Writer writer, SQLCall selectCall, java.lang.String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws java.io.IOException- Throws:
java.io.IOException
-
-