public class SQLDeleteAllStatement extends SQLDeleteStatement
Purpose: Print DELETE statement with non trivial WHERE clause
Responsibilities:
Modifier and Type | Field and Description |
---|---|
protected Vector |
aliasedFields |
protected Expression |
inheritanceExpression |
protected Vector |
originalFields |
protected SQLCall |
selectCallForExist |
protected SQLCall |
selectCallForNotExist |
protected boolean |
shouldExtractWhereClauseFromSelectCallForExist |
protected String |
tableAliasInSelectCallForExist |
protected String |
tableAliasInSelectCallForNotExist |
modifyRow, returnFields, table
builder, translationRow, whereClause
Constructor and Description |
---|
SQLDeleteAllStatement() |
buildCallWithoutReturning, getModifyRow, getReturnFields, getTable, setModifyRow, setReturnFields, setTable
clone, getBuilder, getExpressionBuilder, getTranslationRow, getWhereClause, setBuilder, setTranslationRow, setWhereClause, toString
protected Expression inheritanceExpression
protected SQLCall selectCallForExist
protected String tableAliasInSelectCallForExist
protected SQLCall selectCallForNotExist
protected String tableAliasInSelectCallForNotExist
protected Vector aliasedFields
protected Vector originalFields
protected boolean shouldExtractWhereClauseFromSelectCallForExist
public void setSelectCallForExist(SQLCall selectCallForExist)
public SQLCall getSelectCallForExist()
public void setSelectCallForNotExist(SQLCall selectCallForNotExist)
public SQLCall getSelectCallForNotExist()
public void setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)
public String getTableAliasInSelectCallForExist()
public void setTableAliasInSelectCallForNotExist(String tableAliasInSelectCallForNotExist)
public String getTableAliasInSelectCallForNotExist()
public void setPrimaryKeyFieldsForAutoJoin(Collection primaryKeyFields)
public void setOriginalFieldsForJoin(Vector originalFields)
public Vector getOriginalFieldsForJoin()
public void setAliasedFieldsForJoin(Vector aliasedFields)
public Vector getAliasedFieldsForExpression()
public void setInheritanceExpression(Expression inheritanceExpression)
public Expression getInheritanceExpression()
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)
public boolean shouldExtractWhereClauseFromSelectCallForExist()
public DatabaseCall buildCall(AbstractSession session)
buildCall
in class SQLDeleteStatement
protected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call) throws IOException
IOException
protected boolean writeWhere(Writer writer, SQLCall selectCall, SQLCall call) throws IOException
IOException
Copyright © 2023. All rights reserved.