public interface NoPutResultSet extends ResultSet, RowLocationRetRowSource
Since the ResulSet operations must also be supported by NoPutResultSets, we extend that interface here as well.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABSOLUTE |
static java.lang.String |
FIRST |
static java.lang.String |
LAST |
static java.lang.String |
NEXT |
static java.lang.String |
PREVIOUS |
static java.lang.String |
RELATIVE |
static int |
TEMPORARY_RESULT_SET_NUMBER |
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Modifier and Type | Method and Description |
---|---|
double |
getEstimatedRowCount()
Get the estimated row count from this result set.
|
ExecRow |
getNextRowCore()
Return the requested values computed
from the next row (if any) for which
the restriction evaluates to true.
|
int |
getPointOfAttachment()
Return the point of attachment for this subquery.
|
int |
getScanIsolationLevel()
Return the isolation level of the scan in the result set.
|
boolean |
isForUpdate()
Is this ResultSet or it's source result set for update
|
void |
markAsTopResultSet()
Mark the ResultSet as the topmost one in the ResultSet tree.
|
void |
markRowAsDeleted()
Marks the resultSet's currentRow as deleted after a delete has been
issued by either by using positioned delete or JDBC's deleteRow
method.
|
void |
openCore()
open a scan on the table. scan parameters are evaluated
at each open, so there is probably some way of altering
their values...
|
void |
positionScanAtRowLocation(RowLocation rLoc)
Positions the cursor in the specified rowLocation.
|
void |
reopenCore()
reopen the scan.
|
boolean |
requiresRelocking()
Do we need to relock the row when going to the heap.
|
int |
resultSetNumber()
Get the number of this ResultSet, which is guaranteed to be unique
within a statement.
|
void |
setCurrentRow(ExecRow row)
Set the current row to the row passed in.
|
void |
setHasDeferrableChecks()
Set that we are acting on behalf of an insert result set that has
deferrable check constraints
|
void |
setNeedsRowLocation(boolean needsRowLocation)
Set whether or not the NPRS need the row location when acting
as a row source.
|
void |
setTargetResultSet(TargetResultSet trs)
Notify a NPRS that it is the source for the specified
TargetResultSet.
|
void |
updateRow(ExecRow row,
RowChanger rowChanger)
Updates the resultSet's current row with it's new values after
an update has been issued either using positioned update or
JDBC's udpateRow method.
|
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
needsRowLocation, needsRowLocationForDeferredCheckConstraints, offendingRowLocation, rowLocation
closeRowSource, getNextRowFromRowSource, getValidColumns, needsToClone
static final java.lang.String ABSOLUTE
static final java.lang.String RELATIVE
static final java.lang.String FIRST
static final java.lang.String NEXT
static final java.lang.String LAST
static final java.lang.String PREVIOUS
static final int TEMPORARY_RESULT_SET_NUMBER
void markAsTopResultSet()
void openCore() throws StandardException
openCore() can only be called on a closed result set. see reopenCore if you want to reuse an open result set.
For NoPutResultSet open() must only be called on the top ResultSet. Opening of NoPutResultSet's below the top result set are implemented by calling openCore.
StandardException
- thrown if cursor finished.void reopenCore() throws StandardException
used by joiners
scan parameters are evaluated at each open, so there is probably some way of altering their values...
StandardException
- thrown if cursor finished.ExecRow getNextRowCore() throws StandardException
restriction and projection parameters are evaluated for each row.
StandardException
- thrown on failure.int getPointOfAttachment()
int getScanIsolationLevel()
void setTargetResultSet(TargetResultSet trs)
trs
- The TargetResultSet.void setNeedsRowLocation(boolean needsRowLocation)
void setHasDeferrableChecks()
double getEstimatedRowCount()
int resultSetNumber()
void setCurrentRow(ExecRow row)
row
- the new current rowboolean requiresRelocking()
boolean isForUpdate()
void updateRow(ExecRow row, RowChanger rowChanger) throws StandardException
row
- new values for the currentRowrowChanger
- holds information about row: what columns of it is to
be used for updating, and what underlying base table column each
such column corresponds to.StandardException
- thrown on failure.void markRowAsDeleted() throws StandardException
StandardException
- thrown on failure.void positionScanAtRowLocation(RowLocation rLoc) throws StandardException
rLoc
- row location of the current cursor rowStandardException
- thrown on failure to
get location from storage engineApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.