Class SQLUpdateAllStatement
- java.lang.Object
-
- org.eclipse.persistence.internal.expressions.SQLStatement
-
- org.eclipse.persistence.internal.expressions.SQLModifyStatement
-
- org.eclipse.persistence.internal.expressions.SQLUpdateAllStatement
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SQLUpdateAllStatement extends SQLModifyStatement
- Since:
- TOPLink/Java 1.0
- Author:
- Guy Pelletier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected HashMap
databaseFieldsToTableAliases
protected HashMap
m_updateClauses
protected Collection
primaryKeyFields
protected SQLCall
selectCallForExist
protected boolean
shouldExtractWhereClauseFromSelectCallForExist
protected String
tableAliasInSelectCallForExist
-
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 SQLUpdateAllStatement()
-
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
-
m_updateClauses
protected HashMap m_updateClauses
-
databaseFieldsToTableAliases
protected HashMap databaseFieldsToTableAliases
-
selectCallForExist
protected SQLCall selectCallForExist
-
tableAliasInSelectCallForExist
protected String tableAliasInSelectCallForExist
-
primaryKeyFields
protected Collection primaryKeyFields
-
shouldExtractWhereClauseFromSelectCallForExist
protected boolean shouldExtractWhereClauseFromSelectCallForExist
-
-
Method Detail
-
setSelectCallForExist
public void setSelectCallForExist(SQLCall selectCallForExist)
-
getSelectCallForExist
public SQLCall getSelectCallForExist()
-
setTableAliasInSelectCallForExist
public void setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)
-
getTableAliasInSelectCallForExist
public String getTableAliasInSelectCallForExist()
-
setPrimaryKeyFieldsForAutoJoin
public void setPrimaryKeyFieldsForAutoJoin(Collection primaryKeyFields)
-
getPrimaryKeyFieldsForAutoJoin
public Collection getPrimaryKeyFieldsForAutoJoin()
-
setUpdateClauses
public void setUpdateClauses(HashMap updateClauses)
-
getUpdateClauses
public HashMap getUpdateClauses()
-
setDatabaseFieldsToTableAliases
public void setDatabaseFieldsToTableAliases(HashMap databaseFieldsToTableAliases)
-
getDatabaseFieldsToTableAliases
public HashMap getDatabaseFieldsToTableAliases()
-
setShouldExtractWhereClauseFromSelectCallForExist
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)
-
shouldExtractWhereClauseFromSelectCallForExist
public boolean shouldExtractWhereClauseFromSelectCallForExist()
-
buildCall
public DatabaseCall buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.- Overrides:
buildCall
in classSQLModifyStatement
-
buildSimple
protected SQLCall buildSimple(AbstractSession session)
-
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
-
-