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 Collection
allFields
static int
CLEANUP_TEMP_TABLE
static int
CREATE_TEMP_TABLE
static int
INSERT_INTO_TEMP_TABLE
protected int
mode
protected List<DatabaseField>
primaryKeyFields
protected SQLCall
selectCall
static int
UPDATE_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 DatabaseCall
buildCall(AbstractSession session)
Append the string containing the SQL insert string for the given table.Collection
getAllFields()
int
getMode()
List<DatabaseField>
getPrimaryKeyFields()
SQLCall
getSelectCall()
protected abstract Collection
getUsedFields()
void
setAllFields(Collection allFields)
void
setMode(int mode)
void
setPrimaryKeyFields(List<DatabaseField> primaryKeyFields)
void
setSelectCall(SQLCall selectCall)
protected abstract void
writeUpdateOriginalTable(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:
buildCall
in classSQLModifyStatement
-
-