Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class InsertVTIResultSet

extends DMLVTIResultSet
Class Inheritance
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.types.DataValueDescriptor, org.apache.derby.iapi.sql.execute.CursorResultSet, .ExecRow, .NoPutResultSet, org.apache.derby.iapi.sql.Activation, .ResultDescription, org.apache.derby.vti.DeferModification, java.sql.PreparedStatement, .ResultSet, java.util.Properties

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

Modifier and TypeField and Description
private PreparedStatement
private TemporaryRowHolderImpl
private ResultSet
private VTIResultSet
Inherited from org.apache.derby.impl.sql.execute.DMLVTIResultSet:
constantsfirstExecutesavedSourcesourceResultSettc

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
close()

Implements org.apache.derby.iapi.sql.ResultSet.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.

public void
finish()

Overrides org.apache.derby.impl.sql.execute.DMLVTIResultSet.finish.

Implements org.apache.derby.iapi.sql.ResultSet.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
protected void
Inherited from org.apache.derby.impl.sql.execute.DMLVTIResultSet:
open

Field Detail

psback to summary
private PreparedStatement ps
rowHolderback to summary
private TemporaryRowHolderImpl rowHolder
rsback to summary
private ResultSet rs
vtiRSback to summary
private VTIResultSet vtiRS

Constructor Detail

InsertVTIResultSetback to summary
public InsertVTIResultSet(NoPutResultSet source, NoPutResultSet vtiRS, Activation activation) throws StandardException
Exceptions
StandardException:
Thrown on error

Method Detail

cleanUpback to summary
public void cleanUp() throws StandardException

Overrides org.apache.derby.impl.sql.execute.DMLVTIResultSet.cleanUp.

Implements org.apache.derby.iapi.sql.ResultSet.cleanUp.

Doc from org.apache.derby.iapi.sql.ResultSet.cleanUp.

Tells the system to clean up on an error.

Exceptions
StandardException:
Thrown on error
See Also
org.apache.derby.iapi.sql.ResultSet#cleanUp
closeback to summary
public void close() throws StandardException

Implements org.apache.derby.iapi.sql.ResultSet.close.

Doc from org.apache.derby.iapi.sql.ResultSet.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.

Annotations
@Override
Exceptions
StandardException:
Thrown on error.
finishback to summary
public void finish() throws StandardException

Overrides org.apache.derby.impl.sql.execute.DMLVTIResultSet.finish.

Implements org.apache.derby.iapi.sql.ResultSet.finish.

Doc from org.apache.derby.iapi.sql.ResultSet.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(). Will close the result set if it is not already closed.

Exceptions
StandardException:
on error
insertIntoVTIback to summary
private void insertIntoVTI(ResultSet target, ExecRow row) throws StandardException
openCoreback to summary
protected void openCore() throws StandardException

Implements abstract org.apache.derby.impl.sql.execute.DMLVTIResultSet.openCore.

Exceptions
StandardException:
Standard Derby error policy