Top Description Fields Methods
org.apache.derby.iapi.sql.execute

public Interface TargetResultSet

extends ResultSet
Known Direct Implementers
org.apache.derby.impl.sql.execute.InsertResultSet
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.ResultSet, org.apache.derby.iapi.types.RowLocation

The TargetResultSet interface is used to provide additional operations on result sets that are the target of a bulk insert or update. This is useful because bulk insert is upside down - the insert is done via the store.

Field Summary

Inherited from org.apache.derby.iapi.sql.ResultSet:
CURRENT_RESULTSET_ONLYENTIRE_RESULTSET_TREEISAFTERLASTISBEFOREFIRSTISFIRSTISLAST

Method Summary

Modifier and TypeMethod and Description
public void
changedRow(ExecRow
The changed row.
execRow
,
RowLocation
The row location of the row.
rowLocation
)

Pass a changed row and the row location for that row to the target result set.

public void
offendingRowLocation(RowLocation rl, long constainerId)

public ExecRow

Returns:

The preprocessed source row.
preprocessSourceRow
(ExecRow
The source row.
sourceRow
)

Preprocess the source row prior to getting it back from the source.

Inherited from org.apache.derby.iapi.sql.ResultSet:
addWarningcheckRowPositioncleanUpclearCurrentRowclosefinishgetAbsoluteRowgetActivationgetAutoGeneratedKeysResultsetgetBeginExecutionTimestampgetCursorNamegetEndExecutionTimestampgetExecuteTimegetFirstRowgetLastRowgetNextRowgetPreviousRowgetRelativeRowgetResultDescriptiongetRowNumbergetSubqueryTrackingArraygetTimeSpentgetWarningsisClosedmodifiedRowCountopenreturnsRowssetAfterLastRowsetBeforeFirstRowtoXML

Method Detail

changedRowback to summary
public void changedRow(ExecRow execRow, RowLocation rowLocation) throws StandardException

Pass a changed row and the row location for that row to the target result set.

Parameters
execRow:ExecRow

The changed row.

rowLocation:RowLocation

The row location of the row.

Exceptions
StandardException:
thrown if cursor finished.
offendingRowLocationback to summary
public void offendingRowLocation(RowLocation rl, long constainerId) throws StandardException
preprocessSourceRowback to summary
public ExecRow preprocessSourceRow(ExecRow sourceRow) throws StandardException

Preprocess the source row prior to getting it back from the source. This is useful for bulk insert where the store stands between the target and the source.

Parameters
sourceRow:ExecRow

The source row.

Returns:ExecRow

The preprocessed source row.

Exceptions
StandardException:
thrown if cursor finished.