Module org.eclipse.persistence.core
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
- Since:
- TOPLink/Java 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMapprotected HashMapprotected Collectionprotected SQLCallprotected booleanprotected StringFields inherited from class org.eclipse.persistence.internal.expressions.SQLModifyStatement
modifyRow, returnFields, tableFields inherited from class org.eclipse.persistence.internal.expressions.SQLStatement
builder, hintString, translationRow, whereClause -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCall(AbstractSession session) Append the string containing the SQL insert string for the given table.protected SQLCallbuildSimple(AbstractSession session) voidsetDatabaseFieldsToTableAliases(HashMap databaseFieldsToTableAliases) voidsetPrimaryKeyFieldsForAutoJoin(Collection primaryKeyFields) voidsetSelectCallForExist(SQLCall selectCallForExist) voidsetShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist) voidsetTableAliasInSelectCallForExist(String tableAliasInSelectCallForExist) voidsetUpdateClauses(HashMap updateClauses) booleanprotected voidwriteSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) protected booleanwriteWhere(Writer writer, SQLCall selectCall, SQLCall call) Methods inherited from class org.eclipse.persistence.internal.expressions.SQLModifyStatement
buildCallWithoutReturning, getModifyRow, getReturnFields, getTable, setModifyRow, setReturnFields, setTableMethods inherited from class org.eclipse.persistence.internal.expressions.SQLStatement
clone, getBuilder, getExpressionBuilder, getHintString, getTranslationRow, getWhereClause, setBuilder, setHintString, setTranslationRow, setWhereClause, toString
-
Field Details
-
m_updateClauses
-
databaseFieldsToTableAliases
-
selectCallForExist
-
tableAliasInSelectCallForExist
-
-
shouldExtractWhereClauseFromSelectCallForExist
protected boolean shouldExtractWhereClauseFromSelectCallForExist
-
-
Constructor Details
-
SQLUpdateAllStatement
public SQLUpdateAllStatement()
-
-
Method Details
-
setSelectCallForExist
-
getSelectCallForExist
-
setTableAliasInSelectCallForExist
-
getTableAliasInSelectCallForExist
-
setPrimaryKeyFieldsForAutoJoin
-
getPrimaryKeyFieldsForAutoJoin
-
setUpdateClauses
-
getUpdateClauses
-
setDatabaseFieldsToTableAliases
-
getDatabaseFieldsToTableAliases
-
setShouldExtractWhereClauseFromSelectCallForExist
public void setShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist) -
shouldExtractWhereClauseFromSelectCallForExist
public boolean shouldExtractWhereClauseFromSelectCallForExist() -
buildCall
Append the string containing the SQL insert string for the given table.- Overrides:
buildCallin classSQLModifyStatement
-
buildSimple
-
writeSelect
protected void writeSelect(Writer writer, SQLCall selectCall, String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws IOException - Throws:
IOException
-
writeWhere
- Throws:
IOException
-