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:
java.io.Serializable,java.lang.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 java.util.CollectionallFieldsstatic intCLEANUP_TEMP_TABLEstatic intCREATE_TEMP_TABLEstatic intINSERT_INTO_TEMP_TABLEprotected intmodeprotected java.util.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.java.util.CollectiongetAllFields()intgetMode()java.util.List<DatabaseField>getPrimaryKeyFields()SQLCallgetSelectCall()protected abstract java.util.CollectiongetUsedFields()voidsetAllFields(java.util.Collection allFields)voidsetMode(int mode)voidsetPrimaryKeyFields(java.util.List<DatabaseField> primaryKeyFields)voidsetSelectCall(SQLCall selectCall)protected abstract voidwriteUpdateOriginalTable(AbstractSession session, java.io.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 java.util.Collection allFields
-
primaryKeyFields
protected java.util.List<DatabaseField> primaryKeyFields
-
selectCall
protected SQLCall selectCall
-
mode
protected int mode
-
-
Method Detail
-
getUsedFields
protected abstract java.util.Collection getUsedFields()
-
writeUpdateOriginalTable
protected abstract void writeUpdateOriginalTable(AbstractSession session, java.io.Writer writer) throws java.io.IOException
- Throws:
java.io.IOException
-
setAllFields
public void setAllFields(java.util.Collection allFields)
-
getAllFields
public java.util.Collection getAllFields()
-
setSelectCall
public void setSelectCall(SQLCall selectCall)
-
getSelectCall
public SQLCall getSelectCall()
-
setPrimaryKeyFields
public void setPrimaryKeyFields(java.util.List<DatabaseField> primaryKeyFields)
-
getPrimaryKeyFields
public java.util.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
-
-