Top Fields Constructors Methods
org.eclipse.persistence.internal.expressions

public Class SQLUpdateAllStatement

extends SQLModifyStatement
Class Inheritance
Imports
java.io.*, java.util.HashMap, .Iterator, .Collection, org.eclipse.persistence.exceptions.*, org.eclipse.persistence.expressions.*, org.eclipse.persistence.queries.*, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.internal.databaseaccess.DatabaseCall, .DatasourcePlatform, org.eclipse.persistence.internal.helper.DatabaseField

Author
Guy Pelletier
Since
TOPLink/Java 1.0

Field Summary

Modifier and TypeField and Description
protected HashMap<K, V>
protected HashMap<K, V>
protected Collection<E>
protected SQLCall
protected boolean
protected String
Inherited from org.eclipse.persistence.internal.expressions.SQLModifyStatement:
modifyRowreturnFieldstable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DatabaseCall
buildCall(AbstractSession session)

Overrides org.eclipse.persistence.internal.expressions.SQLModifyStatement.buildCall.

Append the string containing the SQL insert string for the given table.
protected SQLCall
public HashMap<K, V>
public Collection<E>
public SQLCall
public String
public HashMap<K, V>
public void
setDatabaseFieldsToTableAliases(HashMap<K, V> databaseFieldsToTableAliases)

public void
public void
setSelectCallForExist(SQLCall selectCallForExist)

public void
setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)

public void
setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)

public void
setUpdateClauses(HashMap<K, V> updateClauses)

public boolean
protected void
writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform)

protected boolean
writeWhere(Writer writer, SQLCall selectCall, SQLCall call)

Inherited from org.eclipse.persistence.internal.expressions.SQLModifyStatement:
buildCallWithoutReturninggetModifyRowgetReturnFieldsgetTablesetModifyRowsetReturnFieldssetTable

Field Detail

databaseFieldsToTableAliasesback to summary
protected HashMap<K, V> databaseFieldsToTableAliases
m_updateClausesback to summary
protected HashMap<K, V> m_updateClauses
primaryKeyFieldsback to summary
protected Collection<E> primaryKeyFields
selectCallForExistback to summary
protected SQLCall selectCallForExist
shouldExtractWhereClauseFromSelectCallForExistback to summary
protected boolean shouldExtractWhereClauseFromSelectCallForExist
tableAliasInSelectCallForExistback to summary
protected String tableAliasInSelectCallForExist

Constructor Detail

SQLUpdateAllStatementback to summary
public SQLUpdateAllStatement()

Method Detail

buildCallback to summary
public DatabaseCall buildCall(AbstractSession session)

Overrides org.eclipse.persistence.internal.expressions.SQLModifyStatement.buildCall.

Append the string containing the SQL insert string for the given table.

Annotations
@Override
buildSimpleback to summary
protected SQLCall buildSimple(AbstractSession session)
getDatabaseFieldsToTableAliasesback to summary
public HashMap<K, V> getDatabaseFieldsToTableAliases()
getPrimaryKeyFieldsForAutoJoinback to summary
public Collection<E> getPrimaryKeyFieldsForAutoJoin()
getSelectCallForExistback to summary
public SQLCall getSelectCallForExist()
getTableAliasInSelectCallForExistback to summary
public String getTableAliasInSelectCallForExist()
getUpdateClausesback to summary
public HashMap<K, V> getUpdateClauses()
setDatabaseFieldsToTableAliasesback to summary
public void setDatabaseFieldsToTableAliases(HashMap<K, V> databaseFieldsToTableAliases)
setPrimaryKeyFieldsForAutoJoinback to summary
public void setPrimaryKeyFieldsForAutoJoin(Collection<E> primaryKeyFields)
setSelectCallForExistback to summary
public void setSelectCallForExist(SQLCall selectCallForExist)
setShouldExtractWhereClauseFromSelectCallForExistback to summary
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)
setTableAliasInSelectCallForExistback to summary
public void setTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist)
setUpdateClausesback to summary
public void setUpdateClauses(HashMap<K, V> updateClauses)
shouldExtractWhereClauseFromSelectCallForExistback to summary
public boolean shouldExtractWhereClauseFromSelectCallForExist()
writeSelectback to summary
protected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws IOException
writeWhereback to summary
protected boolean writeWhere(Writer writer, SQLCall selectCall, SQLCall call) throws IOException