Interface TargetResultSet
-
- All Superinterfaces:
ResultSet
- All Known Implementing Classes:
InsertResultSet
public interface TargetResultSet extends ResultSet
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
-
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changedRow(ExecRow execRow, RowLocation rowLocation)
Pass a changed row and the row location for that row to the target result set.void
offendingRowLocation(RowLocation rl, long constainerId)
ExecRow
preprocessSourceRow(ExecRow sourceRow)
Preprocess the source row prior to getting it back from the source.-
Methods inherited from interface org.apache.derby.iapi.sql.ResultSet
addWarning, checkRowPosition, cleanUp, clearCurrentRow, close, finish, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow, toXML
-
-
-
-
Method Detail
-
changedRow
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
- The changed row.rowLocation
- The row location of the row.- Throws:
StandardException
- thrown if cursor finished.
-
offendingRowLocation
void offendingRowLocation(RowLocation rl, long constainerId) throws StandardException
- Throws:
StandardException
-
preprocessSourceRow
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
- The source row.- Returns:
- The preprocessed source row.
- Throws:
StandardException
- thrown if cursor finished.
-
-