Module org.eclipse.persistence.core
Class SQLModifyAllStatementForTempTable
- java.lang.Object
-
- org.eclipse.persistence.internal.expressions.SQLStatement
-
- org.eclipse.persistence.internal.expressions.SQLModifyStatement
-
- org.eclipse.persistence.internal.expressions.SQLModifyAllStatementForTempTable
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
SQLDeleteAllStatementForTempTable,SQLUpdateAllStatementForTempTable
public abstract class SQLModifyAllStatementForTempTable extends SQLModifyStatement
- Since:
- TOPLink/Java 1.0
- Author:
- Andrei Ilitchev
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectionallFieldsstatic intCLEANUP_TEMP_TABLEstatic intCREATE_TEMP_TABLEstatic intINSERT_INTO_TEMP_TABLEprotected intmodeprotected List<DatabaseField>primaryKeyFieldsprotected SQLCallselectCallstatic intUPDATE_ORIGINAL_TABLE-
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 SQLModifyAllStatementForTempTable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DatabaseCallbuildCall(AbstractSession session)Append the string containing the SQL insert string for the given table.CollectiongetAllFields()intgetMode()List<DatabaseField>getPrimaryKeyFields()SQLCallgetSelectCall()protected abstract CollectiongetUsedFields()voidsetAllFields(Collection allFields)voidsetMode(int mode)voidsetPrimaryKeyFields(List<DatabaseField> primaryKeyFields)voidsetSelectCall(SQLCall selectCall)protected abstract voidwriteUpdateOriginalTable(AbstractSession session, Writer writer)-
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
-
CREATE_TEMP_TABLE
public static final int CREATE_TEMP_TABLE
- See Also:
- Constant Field Values
-
INSERT_INTO_TEMP_TABLE
public static final int INSERT_INTO_TEMP_TABLE
- See Also:
- Constant Field Values
-
UPDATE_ORIGINAL_TABLE
public static final int UPDATE_ORIGINAL_TABLE
- See Also:
- Constant Field Values
-
CLEANUP_TEMP_TABLE
public static final int CLEANUP_TEMP_TABLE
- See Also:
- Constant Field Values
-
allFields
protected Collection allFields
-
primaryKeyFields
protected List<DatabaseField> primaryKeyFields
-
selectCall
protected SQLCall selectCall
-
mode
protected int mode
-
-
Method Detail
-
getUsedFields
protected abstract Collection getUsedFields()
-
writeUpdateOriginalTable
protected abstract void writeUpdateOriginalTable(AbstractSession session, Writer writer) throws IOException
- Throws:
IOException
-
setAllFields
public void setAllFields(Collection allFields)
-
getAllFields
public Collection getAllFields()
-
setSelectCall
public void setSelectCall(SQLCall selectCall)
-
getSelectCall
public SQLCall getSelectCall()
-
setPrimaryKeyFields
public void setPrimaryKeyFields(List<DatabaseField> primaryKeyFields)
-
getPrimaryKeyFields
public List<DatabaseField> getPrimaryKeyFields()
-
setMode
public void setMode(int mode)
-
getMode
public int getMode()
-
buildCall
public DatabaseCall buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.- Overrides:
buildCallin classSQLModifyStatement
-
-