org.apache.derby.impl.sql.execute
Class InsertVTIResultSet

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
      extended by org.apache.derby.impl.sql.execute.DMLWriteResultSet
          extended by org.apache.derby.impl.sql.execute.DMLVTIResultSet
              extended by 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
private  java.sql.PreparedStatement ps
           
private  TemporaryRowHolderImpl rowHolder
           
private  java.sql.ResultSet rs
           
private  VTIResultSet vtiRS
           
 
Fields inherited from class org.apache.derby.impl.sql.execute.DMLVTIResultSet
constants, firstExecute, resultDescription, savedSource, sourceResultSet, tc
 
Fields inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet
baseRowReadMap, constantAction, deferredSparseRow, heapDCOCI, indexDCOCIs, 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
InsertVTIResultSet(NoPutResultSet source, NoPutResultSet vtiRS, Activation activation)
           
 
Method Summary
 void cleanUp()
          Tells the system to clean up on an error.
 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(java.sql.ResultSet target, ExecRow row)
           
protected  void openCore()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.DMLVTIResultSet
getResultDescription, open
 
Methods inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet
decodeLockMode, getIndexNameFromCID, getNextRowCore, makeDeferredSparseRow, modifiedRowCount
 
Methods inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
checkRowPosition, clearCurrentRow, close, doesCommit, evaluateACheckConstraint, evaluateCheckConstraints, evaluateGenerationClauses, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
openCore in class DMLVTIResultSet
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 StandardException
Description copied from interface: ResultSet
Tells the system to clean up on an error.

Specified by:
cleanUp in interface ResultSet
Overrides:
cleanUp in class DMLVTIResultSet
Throws:
StandardException - Thrown on error
See Also:
ResultSet.cleanUp()

finish

public void finish()
            throws StandardException
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 interface ResultSet
Overrides:
finish in class DMLVTIResultSet
Throws:
StandardException - on error

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.