Class InsertVTIResultSet
java.lang.Object
org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
org.apache.derby.impl.sql.execute.DMLWriteResultSet
org.apache.derby.impl.sql.execute.DMLVTIResultSet
org.apache.derby.impl.sql.execute.InsertVTIResultSet
- All Implemented Interfaces:
ResultSet
Insert the rows from the source into the specified
base table. This will cause constraints to be checked
and triggers to be executed based on the c's and t's
compiled into the insert plan.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PreparedStatement
private TemporaryRowHolderImpl
private ResultSet
private VTIResultSet
Fields inherited from class org.apache.derby.impl.sql.execute.DMLVTIResultSet
constants, firstExecute, savedSource, sourceResultSet, tc
Fields inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet
baseRowReadMap, cachedDestinations, constantAction, heapDCOCI, indexDCOCIs, resultDescription, rowCount, streamStorableHeapColIds
Fields inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
-
Constructor Summary
ConstructorsConstructorDescriptionInsertVTIResultSet
(NoPutResultSet source, NoPutResultSet vtiRS, Activation activation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Tells the system to clean up on an error.void
close()
Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.void
finish()
Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open().private void
insertIntoVTI
(ResultSet target, ExecRow row) protected void
openCore()
Methods inherited from class org.apache.derby.impl.sql.execute.DMLVTIResultSet
open
Methods inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet
decodeLockMode, getIndexNameFromCID, getNextRowCore, getResultDescription, makeDeferredSparseRow, modifiedRowCount, normalizeRow, rememberConstraint
Methods inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
addWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateGenerationClauses, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow, setup, toXML
-
Field Details
-
ps
-
vtiRS
-
rs
-
rowHolder
-
-
Constructor Details
-
InsertVTIResultSet
public InsertVTIResultSet(NoPutResultSet source, NoPutResultSet vtiRS, Activation activation) throws StandardException - Throws:
StandardException
- Thrown on error
-
-
Method Details
-
openCore
- Specified by:
openCore
in classDMLVTIResultSet
- Throws:
StandardException
- Standard Derby error policy
-
insertIntoVTI
- Throws:
StandardException
-
cleanUp
Description copied from interface:ResultSet
Tells the system to clean up on an error.- Specified by:
cleanUp
in interfaceResultSet
- Overrides:
cleanUp
in classDMLVTIResultSet
- Throws:
StandardException
- Thrown on error- See Also:
-
close
Description copied from interface:ResultSet
Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.- Throws:
StandardException
- Thrown on error.
-
finish
Description copied from interface:ResultSet
Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open(). Will close the result set if it is not already closed.- Specified by:
finish
in interfaceResultSet
- Overrides:
finish
in classDMLVTIResultSet
- Throws:
StandardException
- on error
-