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
class InsertVTIResultSet extends DMLVTIResultSet
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
Fields Modifier and Type Field Description private java.sql.PreparedStatementpsprivate TemporaryRowHolderImplrowHolderprivate java.sql.ResultSetrsprivate VTIResultSetvtiRS-
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
Constructors Constructor Description InsertVTIResultSet(NoPutResultSet source, NoPutResultSet vtiRS, Activation activation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Tells the system to clean up on an error.voidclose()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.voidfinish()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 voidinsertIntoVTI(java.sql.ResultSet target, ExecRow row)protected voidopenCore()-
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 Detail
-
ps
private java.sql.PreparedStatement ps
-
vtiRS
private VTIResultSet vtiRS
-
rs
private java.sql.ResultSet rs
-
rowHolder
private TemporaryRowHolderImpl rowHolder
-
-
Constructor Detail
-
InsertVTIResultSet
public InsertVTIResultSet(NoPutResultSet source, NoPutResultSet vtiRS, Activation activation) throws StandardException
- Throws:
StandardException- Thrown on error
-
-
Method Detail
-
openCore
protected void openCore() throws StandardException- Specified by:
openCorein classDMLVTIResultSet- Throws:
StandardException- Standard Derby error policy
-
insertIntoVTI
private void insertIntoVTI(java.sql.ResultSet target, ExecRow row) throws StandardException- Throws:
StandardException
-
cleanUp
public void cleanUp() throws StandardExceptionDescription copied from interface:ResultSetTells the system to clean up on an error.- Specified by:
cleanUpin interfaceResultSet- Overrides:
cleanUpin classDMLVTIResultSet- Throws:
StandardException- Thrown on error- See Also:
ResultSet.cleanUp()
-
close
public void close() throws StandardExceptionDescription copied from interface:ResultSetTells 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
public void finish() throws StandardExceptionDescription copied from interface:ResultSetTells 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:
finishin interfaceResultSet- Overrides:
finishin classDMLVTIResultSet- Throws:
StandardException- on error
-
-