|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NoPutResultSet
The NoPutResultSet interface is used to provide additional operations on result sets that can be used in returning rows up a ResultSet tree.
Since the ResulSet operations must also be supported by NoPutResultSets, we extend that interface here as well.
Field Summary | |
---|---|
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
|
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet |
---|
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from interface org.apache.derby.iapi.sql.ResultSet |
---|
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 |
Methods inherited from interface org.apache.derby.iapi.store.access.RowLocationRetRowSource |
---|
needsRowLocation, rowLocation |
Methods inherited from interface org.apache.derby.iapi.store.access.RowSource |
---|
closeRowSource, getNextRowFromRowSource, getValidColumns, needsToClone |
Field Detail |
---|
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
Method Detail |
---|
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)
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 row
StandardException
- thrown on failure to
get location from storage engine
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |