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:
java.io.Serializable,java.lang.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 java.util.HashMapdatabaseFieldsToTableAliasesprotected java.util.HashMapm_updateClausesprotected java.util.CollectionprimaryKeyFieldsprotected SQLCallselectCallForExistprotected booleanshouldExtractWhereClauseFromSelectCallForExistprotected java.lang.StringtableAliasInSelectCallForExist-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseCallbuildCall(AbstractSession session)Append the string containing the SQL insert string for the given table.protected SQLCallbuildSimple(AbstractSession session)java.util.HashMapgetDatabaseFieldsToTableAliases()java.util.CollectiongetPrimaryKeyFieldsForAutoJoin()SQLCallgetSelectCallForExist()java.lang.StringgetTableAliasInSelectCallForExist()java.util.HashMapgetUpdateClauses()voidsetDatabaseFieldsToTableAliases(java.util.HashMap databaseFieldsToTableAliases)voidsetPrimaryKeyFieldsForAutoJoin(java.util.Collection primaryKeyFields)voidsetSelectCallForExist(SQLCall selectCallForExist)voidsetShouldExtractWhereClauseFromSelectCallForExist(boolean shouldExtractWhereClauseFromSelectCallForExist)voidsetTableAliasInSelectCallForExist(java.lang.String tableAliasInSelectCallForExist)voidsetUpdateClauses(java.util.HashMap updateClauses)booleanshouldExtractWhereClauseFromSelectCallForExist()protected voidwriteSelect(java.io.Writer writer, SQLCall selectCall, java.lang.String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform)protected booleanwriteWhere(java.io.Writer writer, SQLCall selectCall, SQLCall call)-
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 java.util.HashMap m_updateClauses
-
databaseFieldsToTableAliases
protected java.util.HashMap databaseFieldsToTableAliases
-
selectCallForExist
protected SQLCall selectCallForExist
-
tableAliasInSelectCallForExist
protected java.lang.String tableAliasInSelectCallForExist
-
primaryKeyFields
protected java.util.Collection primaryKeyFields
-
shouldExtractWhereClauseFromSelectCallForExist
protected boolean shouldExtractWhereClauseFromSelectCallForExist
-
-
Method Detail
-
setSelectCallForExist
public void setSelectCallForExist(SQLCall selectCallForExist)
-
getSelectCallForExist
public SQLCall getSelectCallForExist()
-
setTableAliasInSelectCallForExist
public void setTableAliasInSelectCallForExist(java.lang.String tableAliasInSelectCallForExist)
-
getTableAliasInSelectCallForExist
public java.lang.String getTableAliasInSelectCallForExist()
-
setPrimaryKeyFieldsForAutoJoin
public void setPrimaryKeyFieldsForAutoJoin(java.util.Collection primaryKeyFields)
-
getPrimaryKeyFieldsForAutoJoin
public java.util.Collection getPrimaryKeyFieldsForAutoJoin()
-
setUpdateClauses
public void setUpdateClauses(java.util.HashMap updateClauses)
-
getUpdateClauses
public java.util.HashMap getUpdateClauses()
-
setDatabaseFieldsToTableAliases
public void setDatabaseFieldsToTableAliases(java.util.HashMap databaseFieldsToTableAliases)
-
getDatabaseFieldsToTableAliases
public java.util.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:
buildCallin classSQLModifyStatement
-
buildSimple
protected SQLCall buildSimple(AbstractSession session)
-
writeSelect
protected void writeSelect(java.io.Writer writer, SQLCall selectCall, java.lang.String tableAliasInSelectCall, SQLCall call, DatasourcePlatform platform) throws java.io.IOException- Throws:
java.io.IOException
-
-