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, tablebuilder, translationRow, whereClause| Constructor and Description |
|---|
SQLDeleteAllStatement() |
buildCallWithoutReturning, getModifyRow, getReturnFields, getTable, setModifyRow, setReturnFields, setTableclone, getBuilder, getExpressionBuilder, getTranslationRow, getWhereClause, setBuilder, setTranslationRow, setWhereClause, toStringprotected 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 SQLDeleteStatementprotected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call) throws IOException
IOExceptionprotected boolean writeWhere(Writer writer, SQLCall selectCall, SQLCall call) throws IOException
IOExceptionCopyright © 2024. All rights reserved.