Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class DependentResultSet  view DependentResultSet download DependentResultSet.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl
      extended byorg.apache.derby.impl.sql.execute.NoPutResultSetImpl
          extended byorg.apache.derby.impl.sql.execute.DependentResultSet
All Implemented Interfaces:
org.apache.derby.iapi.sql.execute.CursorResultSet, org.apache.derby.iapi.sql.execute.NoPutResultSet, org.apache.derby.iapi.sql.ResultSet, org.apache.derby.iapi.store.access.RowLocationRetRowSource, org.apache.derby.iapi.store.access.RowSource

public class DependentResultSet
extends NoPutResultSetImpl
implements org.apache.derby.iapi.sql.execute.CursorResultSet

DependentResultSet should be used by only ON DELETE CASCADE/ON DELETE SET NULL ref actions implementation to gather the rows from the dependent tables. Idea is to scan the foreign key index for the rows in the source table matelized temporary result set. Scanning of foreign key index gives us the rows that needs to be deleted on dependent tables. Using the row location we got from the index , base row is fetched.


Field Summary
protected  org.apache.derby.iapi.services.io.FormatableBitSet accessedCols
           
protected  org.apache.derby.iapi.sql.Activation activation
           
(package private)  org.apache.derby.iapi.types.RowLocation baseRowLocation
           
 long beginTime
           
protected  org.apache.derby.iapi.sql.execute.ExecRow candidate
           
(package private)  org.apache.derby.iapi.services.loader.GeneratedMethod checkGM
           
protected  int[] checkNullCols
           
protected  org.apache.derby.iapi.sql.execute.ExecRow clonedExecRow
           
protected  org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup
           
 long closeTime
           
protected  int cncLen
           
 boolean coarserLock
           
(package private)  org.apache.derby.iapi.sql.execute.ExecRow compactRow
           
protected  long conglomId
           
 long constructorTime
           
protected  org.apache.derby.iapi.sql.execute.ExecRow currentRow
           
(package private)  boolean deferred
           
protected  long endExecutionTime
           
private  long estimatedRowCount
           
protected  boolean finished
           
protected  boolean firstScan
           
(package private)  int[] fkColArray
           
 boolean forUpdate
           
(package private)  org.apache.derby.iapi.store.access.ConglomerateController heapCC
           
(package private)  long heapConglomerate
           
protected  org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo heapDcoci
           
protected  org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapScoci
           
protected  java.lang.String indent
           
(package private)  org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo indexDcoci
           
 java.lang.String indexName
           
(package private)  IndexRow indexQualifierRow
           
(package private)  org.apache.derby.iapi.sql.execute.ExecRow indexRow
           
(package private)  org.apache.derby.iapi.store.access.ScanController indexSC
           
(package private)  org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo indexScoci
           
 boolean isConstraint
           
protected  boolean isKeyed
           
 int isolationLevel
           
(package private)  boolean isOpen
           
protected  boolean isTopResultSet
           
protected  org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc
           
 int lockMode
           
private  boolean nextDone
           
 long nextTime
           
(package private)  int numFkColumns
           
 int numOpens
           
 boolean oneRowScan
           
 long openTime
           
 double optimizerEstimatedCost
           
 double optimizerEstimatedRowCount
           
(package private)  java.lang.String parentResultSetId
           
protected  org.apache.derby.iapi.store.access.Qualifier[][] qualifiers
           
(package private)  org.apache.derby.iapi.sql.ResultDescription resultDescription
           
protected  org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator
           
 int resultSetNumber
           
(package private)  org.apache.derby.iapi.types.RowLocation rowLocation
           
 int rowsFiltered
           
 int rowsPerRead
           
 int rowsSeen
           
protected  long rowsThisScan
           
protected  boolean runTimeStatisticsOn
           
private  boolean sameStartStopPosition
           
(package private)  int sArrayIndex
           
protected  org.apache.derby.iapi.store.access.ScanController scanController
           
protected  boolean scanControllerOpened
           
private  java.util.Properties scanProperties
           
(package private)  org.apache.derby.iapi.sql.execute.ExecRow searchRow
           
(package private)  TemporaryRowHolderResultSet source
           
protected  int sourceDepth
           
(package private)  int[] sourceOpened
           
(package private)  TemporaryRowHolderResultSet[] sourceResultSets
           
(package private)  org.apache.derby.iapi.sql.execute.TemporaryRowHolder[] sourceRowHolders
           
protected  long startExecutionTime
           
protected  org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter
           
protected  org.apache.derby.iapi.sql.execute.ExecIndexRow startPosition
           
 java.lang.String startPositionString
           
protected  int startSearchOperator
           
protected  org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter
           
protected  org.apache.derby.iapi.sql.execute.ExecIndexRow stopPosition
           
 java.lang.String stopPositionString
           
protected  int stopSearchOperator
           
protected  java.lang.String subIndent
           
 org.apache.derby.iapi.sql.execute.NoPutResultSet[] subqueryTrackingArray
           
(package private)  java.util.Vector sVector
           
 java.lang.String tableName
           
protected  org.apache.derby.iapi.sql.execute.TargetResultSet targetResultSet
           
(package private)  org.apache.derby.iapi.store.access.TransactionController tc
           
 
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.NoPutResultSet
ABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVE
 
Constructor Summary
DependentResultSet(long conglomId, org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo scoci, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter, int startSearchOperator, org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, org.apache.derby.iapi.store.access.Qualifier[][] qualifiers, java.lang.String tableName, java.lang.String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, int rowsPerRead, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup, java.lang.String parentResultSetId, long fkIndexConglomId, int fkColArrayItem, int rltItem)
           
 
Method Summary
private  void addNewSources()
           
protected  void addWarning(java.sql.SQLWarning w)
           
protected  void attachStatementContext()
          Attach this result set to the top statement context on the stack.
private  boolean canGetInstantaneousLocks()
          Can we get instantaneous locks when getting share row locks at READ COMMITTED.
 boolean checkRowPosition(int isType)
          Determine if the cursor is before the first row in the result set.
 void cleanUp()
          Clean up on error
 void clearCurrentRow()
          Clear the current row
protected  void clearOrderableCache(org.apache.derby.iapi.store.access.Qualifier[][] qualifiers)
          Clear the Orderable cache for each qualifier.
 void close()
          Close the all the opens we did in this result set.
 void closeRowSource()
          closeRowSource tells the RowSource that it will no longer need to return any rows and it can release any resource it may have.
protected  java.lang.String dumpTimeStats(java.lang.String indent, java.lang.String subIndent)
          Dump out the time information for run time stats.
private  org.apache.derby.iapi.sql.execute.ExecRow fetchBaseRow()
          Fetch the base row corresponding to the current index row
private  org.apache.derby.iapi.sql.execute.ExecRow fetchIndexRow()
          Fetch a row from the index scan.
 void 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().
protected  void finishAndRTS()
           
 org.apache.derby.iapi.sql.execute.ExecRow getAbsoluteRow(int row)
          Returns the row at the absolute position from the query, and returns NULL when there is no such position.
 org.apache.derby.iapi.sql.ResultSet getAutoGeneratedKeysResultset()
          ResultSet for rows inserted into the table (contains auto-generated keys columns only)
 java.sql.Timestamp getBeginExecutionTimestamp()
          Get the Timestamp for the beginning of execution.
protected  org.apache.derby.iapi.sql.execute.ExecRow getCompactRow(org.apache.derby.iapi.sql.execute.ExecRow candidate, org.apache.derby.iapi.services.io.FormatableBitSet accessedCols, org.apache.derby.iapi.services.io.FormatableBitSet otherCols, boolean isKeyed)
          Get a compacted version of the candidate row according to the columns specified in the bit map.
 org.apache.derby.iapi.sql.execute.ExecRow getCurrentRow()
          Returns the current row of the result set.
protected  long getCurrentTimeMillis()
          Return the current time in milliseconds, if DEBUG and RunTimeStats is on, else return 0.
 java.lang.String getCursorName()
          Return my cursor name for JDBC.
protected  long getElapsedMillis(long beginTime)
          Return the elapsed time in milliseconds, between now and the beginTime, if DEBUG and RunTimeStats is on, else return 0.
 java.sql.Timestamp getEndExecutionTimestamp()
          Get the Timestamp for the end of execution.
 double getEstimatedRowCount()
          Get the estimated row count from this result set.
 long getExecuteTime()
          Get the execution time in milliseconds.
(package private)  org.apache.derby.iapi.sql.execute.ExecutionFactory getExecutionFactory()
          Get a execution factory
 org.apache.derby.iapi.sql.execute.ExecRow getFirstRow()
          Returns the first row from the query, and returns NULL when there are no rows.
protected  org.apache.derby.iapi.sql.conn.LanguageConnectionContext getLanguageConnectionContext()
          Cache the language connection context.
 org.apache.derby.iapi.sql.execute.ExecRow getLastRow()
          Returns the last row from the query, and returns NULL when there are no rows.
private  org.apache.derby.iapi.sql.execute.ExecRow getNextParentRow()
           
 org.apache.derby.iapi.sql.execute.ExecRow getNextRow()
          Return the requested values computed from the next row (if any) for which the restriction evaluates to true.
 org.apache.derby.iapi.sql.execute.ExecRow getNextRowCore()
          Return the requested values computed from the next row (if any) for which the restriction evaluates to true.
 org.apache.derby.iapi.types.DataValueDescriptor[] getNextRowFromRowSource()
          Get the next row as an array of column objects.
 int getPointOfAttachment()
          Return the point of attachment for this subquery.
 org.apache.derby.iapi.sql.execute.ExecRow getPreviousRow()
          Returns the previous row from the query, and returns NULL when there are no more previous rows.
 org.apache.derby.iapi.sql.execute.ExecRow getRelativeRow(int row)
          Returns the row at the relative position from the current cursor position, and returns NULL when there is no such position.
 org.apache.derby.iapi.sql.ResultDescription getResultDescription()
          Returns the description of the table's rows
 org.apache.derby.iapi.types.RowLocation getRowLocation()
          Returns the row location of the current base table row of the cursor.
 int getRowNumber()
          Returns the row number of the current row.
 int getScanIsolationLevel()
          Return the isolation level of the scan in the result set.
 java.util.Properties getScanProperties()
           
 org.apache.derby.iapi.sql.execute.NoPutResultSet[] getSubqueryTrackingArray(int numSubqueries)
          Get the subquery ResultSet tracking array from the top ResultSet.
 long getTimeSpent(int type)
          Return the total amount of time spent in this ResultSet
(package private)  org.apache.derby.iapi.store.access.TransactionController getTransactionController()
          Get the current transaction controller.
 org.apache.derby.iapi.services.io.FormatableBitSet getValidColumns()
          getValidColumns describes the DataValueDescriptor[] returned by all calls to the getNextRowFromRowSource() call.
 java.sql.SQLWarning getWarnings()
          Return the set of warnings generated during the execution of this result set.
 boolean isClosed()
          Report if closed.
 boolean isForUpdate()
          Is this ResultSet or it's source result set for update This method will be overriden in the inherited Classes if it is true
 void markAsTopResultSet()
          Mark the ResultSet as the topmost one in the ResultSet tree.
 int modifiedRowCount()
          Returns the number of rows affected by the statement.
 boolean needsRowLocation()
          needsRowLocation returns true iff this the row source expects the drainer of the row source to call rowLocation after getting a row from getNextRowFromRowSource.
 boolean needsToClone()
          Does the caller of getNextRowFromRowSource() need to clone the row in order to keep a reference to the row past the getNextRowFromRowSource() call which returned the row.
 void open()
          open a scan on the table.
 void openCore()
          open a scan on the table.
 org.apache.derby.iapi.store.access.ConglomerateController openHeapConglomerateController()
           
private  void openIndexScan(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
           
private  org.apache.derby.iapi.store.access.ScanController openIndexScanController(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
          Get a scan controller positioned using searchRow as the start/stop position.
private  java.lang.String printPosition(int searchOperator, org.apache.derby.iapi.sql.execute.ExecIndexRow positioner)
          Return a start or stop positioner as a String.
 java.lang.String printQualifiers()
          Return an array of Qualifiers as a String
static java.lang.String printQualifiers(org.apache.derby.iapi.store.access.Qualifier[][] qualifiers)
          Return a 2-d array of Qualifiers as a String
 java.lang.String printStartPosition()
           
 java.lang.String printStopPosition()
           
 void reopenCore()
          This is the default implementation of reopenCore().
private  void reopenIndexScanController(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
           
 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.
 boolean returnsRows()
          Returns true.
 void rowLocation(org.apache.derby.iapi.types.RowLocation rl)
          rowLocation is a callback for the drainer of the row source to return the rowLocation of the current row, i.e, the row that is being returned by getNextRowFromRowSource.
 org.apache.derby.iapi.sql.execute.ExecRow setAfterLastRow()
          Sets the current position to after the last row and returns NULL because there is no current row.
 org.apache.derby.iapi.sql.execute.ExecRow setBeforeFirstRow()
          Sets the current position to before the first row and returns NULL because there is no current row.
protected  void setCheckConstraints(org.apache.derby.iapi.services.loader.GeneratedMethod checkGM)
          Set the GeneratedMethod for enforcing check constraints
protected  org.apache.derby.iapi.sql.execute.ExecRow setCompactRow(org.apache.derby.iapi.sql.execute.ExecRow candidateRow, org.apache.derby.iapi.sql.execute.ExecRow compactRow)
          Copy columns from the candidate row from the store to the given compact row.
protected  void setCompatRow(org.apache.derby.iapi.sql.execute.ExecRow compactRow, java.lang.Object[] sourceRow)
           
 void setCurrentRow(org.apache.derby.iapi.sql.execute.ExecRow row)
          Set the current row to the row passed in.
protected  void setHeapConglomerate(long heapConglomerate)
          Set the heap conglomerate number (used in enforcing check constraints)
 void setNeedsRowLocation(boolean needsRowLocation)
          Set whether or not the NPRS need the row location when acting as a row source.
 void setTargetResultSet(org.apache.derby.iapi.sql.execute.TargetResultSet trs)
          Notify a NPRS that it is the source for the specified TargetResultSet.
private  void setupQualifierRow(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
           
protected  boolean skipRow(org.apache.derby.iapi.sql.execute.ExecRow row)
          Return true if we should skip the scan due to nulls in the row when the start or stop positioners on the columns containing null do not implement ordered null semantics.
protected  boolean skipScan(org.apache.derby.iapi.sql.execute.ExecIndexRow startPosition, org.apache.derby.iapi.sql.execute.ExecIndexRow stopPosition)
          Return true if we should skip the scan due to nulls in the start or stop position when the predicate on the column(s) in question do not implement ordered null semantics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.iapi.sql.ResultSet
checkRowPosition, cleanUp, getAbsoluteRow, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow
 

Field Detail

heapCC

org.apache.derby.iapi.store.access.ConglomerateController heapCC

baseRowLocation

org.apache.derby.iapi.types.RowLocation baseRowLocation

indexRow

org.apache.derby.iapi.sql.execute.ExecRow indexRow

indexQualifierRow

IndexRow indexQualifierRow

indexSC

org.apache.derby.iapi.store.access.ScanController indexSC

indexScoci

org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo indexScoci

indexDcoci

org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo indexDcoci

numFkColumns

int numFkColumns

isOpen

boolean isOpen

deferred

boolean deferred

source

TemporaryRowHolderResultSet source

tc

org.apache.derby.iapi.store.access.TransactionController tc

parentResultSetId

java.lang.String parentResultSetId

fkColArray

int[] fkColArray

rowLocation

org.apache.derby.iapi.types.RowLocation rowLocation

sourceRowHolders

org.apache.derby.iapi.sql.execute.TemporaryRowHolder[] sourceRowHolders

sourceResultSets

TemporaryRowHolderResultSet[] sourceResultSets

sourceOpened

int[] sourceOpened

sArrayIndex

int sArrayIndex

sVector

java.util.Vector sVector

scanController

protected org.apache.derby.iapi.store.access.ScanController scanController

scanControllerOpened

protected boolean scanControllerOpened

isKeyed

protected boolean isKeyed

firstScan

protected boolean firstScan

startPosition

protected org.apache.derby.iapi.sql.execute.ExecIndexRow startPosition

stopPosition

protected org.apache.derby.iapi.sql.execute.ExecIndexRow stopPosition

candidate

protected org.apache.derby.iapi.sql.execute.ExecRow candidate

conglomId

protected long conglomId

heapDcoci

protected org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo heapDcoci

heapScoci

protected org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapScoci

resultRowAllocator

protected org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator

startKeyGetter

protected org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter

startSearchOperator

protected int startSearchOperator

stopKeyGetter

protected org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter

stopSearchOperator

protected int stopSearchOperator

qualifiers

protected org.apache.derby.iapi.store.access.Qualifier[][] qualifiers

closeCleanup

protected org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup

tableName

public java.lang.String tableName

indexName

public java.lang.String indexName

runTimeStatisticsOn

protected boolean runTimeStatisticsOn

accessedCols

protected org.apache.derby.iapi.services.io.FormatableBitSet accessedCols

rowsPerRead

public int rowsPerRead

forUpdate

public boolean forUpdate

sameStartStopPosition

private boolean sameStartStopPosition

nextDone

private boolean nextDone

isolationLevel

public int isolationLevel

lockMode

public int lockMode

scanProperties

private java.util.Properties scanProperties

startPositionString

public java.lang.String startPositionString

stopPositionString

public java.lang.String stopPositionString

isConstraint

public boolean isConstraint

coarserLock

public boolean coarserLock

oneRowScan

public boolean oneRowScan

rowsThisScan

protected long rowsThisScan

estimatedRowCount

private long estimatedRowCount

searchRow

org.apache.derby.iapi.sql.execute.ExecRow searchRow

resultSetNumber

public final int resultSetNumber

indent

protected java.lang.String indent

subIndent

protected java.lang.String subIndent

sourceDepth

protected int sourceDepth

clonedExecRow

protected org.apache.derby.iapi.sql.execute.ExecRow clonedExecRow

checkGM

org.apache.derby.iapi.services.loader.GeneratedMethod checkGM

heapConglomerate

long heapConglomerate

targetResultSet

protected org.apache.derby.iapi.sql.execute.TargetResultSet targetResultSet

checkNullCols

protected int[] checkNullCols

cncLen

protected int cncLen

finished

protected boolean finished

currentRow

protected org.apache.derby.iapi.sql.execute.ExecRow currentRow

isTopResultSet

protected boolean isTopResultSet

lcc

protected org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc

numOpens

public int numOpens

rowsSeen

public int rowsSeen

rowsFiltered

public int rowsFiltered

startExecutionTime

protected long startExecutionTime

endExecutionTime

protected long endExecutionTime

beginTime

public long beginTime

constructorTime

public long constructorTime

openTime

public long openTime

nextTime

public long nextTime

closeTime

public long closeTime

optimizerEstimatedRowCount

public double optimizerEstimatedRowCount

optimizerEstimatedCost

public double optimizerEstimatedCost

subqueryTrackingArray

public org.apache.derby.iapi.sql.execute.NoPutResultSet[] subqueryTrackingArray

compactRow

org.apache.derby.iapi.sql.execute.ExecRow compactRow

activation

protected org.apache.derby.iapi.sql.Activation activation

resultDescription

org.apache.derby.iapi.sql.ResultDescription resultDescription
Constructor Detail

DependentResultSet

public DependentResultSet(long conglomId,
                          org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo scoci,
                          org.apache.derby.iapi.sql.Activation activation,
                          org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator,
                          int resultSetNumber,
                          org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter,
                          int startSearchOperator,
                          org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter,
                          int stopSearchOperator,
                          boolean sameStartStopPosition,
                          org.apache.derby.iapi.store.access.Qualifier[][] qualifiers,
                          java.lang.String tableName,
                          java.lang.String indexName,
                          boolean isConstraint,
                          boolean forUpdate,
                          int colRefItem,
                          int lockMode,
                          boolean tableLocked,
                          int isolationLevel,
                          int rowsPerRead,
                          boolean oneRowScan,
                          double optimizerEstimatedRowCount,
                          double optimizerEstimatedCost,
                          org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup,
                          java.lang.String parentResultSetId,
                          long fkIndexConglomId,
                          int fkColArrayItem,
                          int rltItem)
                   throws org.apache.derby.iapi.error.StandardException
Method Detail

openIndexScanController

private org.apache.derby.iapi.store.access.ScanController openIndexScanController(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
                                                                           throws org.apache.derby.iapi.error.StandardException
Get a scan controller positioned using searchRow as the start/stop position. The assumption is that searchRow is of the same format as the index being opened.


reopenIndexScanController

private void reopenIndexScanController(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
                                throws org.apache.derby.iapi.error.StandardException

setupQualifierRow

private void setupQualifierRow(org.apache.derby.iapi.sql.execute.ExecRow searchRow)

openIndexScan

private void openIndexScan(org.apache.derby.iapi.sql.execute.ExecRow searchRow)
                    throws org.apache.derby.iapi.error.StandardException

fetchIndexRow

private org.apache.derby.iapi.sql.execute.ExecRow fetchIndexRow()
                                                         throws org.apache.derby.iapi.error.StandardException
Fetch a row from the index scan.


fetchBaseRow

private org.apache.derby.iapi.sql.execute.ExecRow fetchBaseRow()
                                                        throws org.apache.derby.iapi.error.StandardException
Fetch the base row corresponding to the current index row


getNextRowCore

public org.apache.derby.iapi.sql.execute.ExecRow getNextRowCore()
                                                         throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.NoPutResultSet
Return the requested values computed from the next row (if any) for which the restriction evaluates to true.

restriction and projection parameters are evaluated for each row.

Specified by:
getNextRowCore in interface org.apache.derby.iapi.sql.execute.NoPutResultSet
Specified by:
getNextRowCore in class BasicNoPutResultSetImpl

getNextParentRow

private org.apache.derby.iapi.sql.execute.ExecRow getNextParentRow()
                                                            throws org.apache.derby.iapi.error.StandardException

openHeapConglomerateController

public org.apache.derby.iapi.store.access.ConglomerateController openHeapConglomerateController()
                                                                                         throws org.apache.derby.iapi.error.StandardException

close

public void close()
           throws org.apache.derby.iapi.error.StandardException
Close the all the opens we did in this result set.

Specified by:
close in interface org.apache.derby.iapi.sql.ResultSet
Overrides:
close in class NoPutResultSetImpl

finish

public void finish()
            throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.ResultSet
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.

Specified by:
finish in interface org.apache.derby.iapi.sql.ResultSet
Overrides:
finish in class BasicNoPutResultSetImpl

openCore

public void openCore()
              throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.NoPutResultSet
open a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values...

openCore() can only be called on a closed result set. see reopenCore if you want to reuse an open result set.

Specified by:
openCore in interface org.apache.derby.iapi.sql.execute.NoPutResultSet
Specified by:
openCore in class BasicNoPutResultSetImpl

addNewSources

private void addNewSources()

canGetInstantaneousLocks

private boolean canGetInstantaneousLocks()
Can we get instantaneous locks when getting share row locks at READ COMMITTED.


getTimeSpent

public long getTimeSpent(int type)
Description copied from interface: org.apache.derby.iapi.sql.ResultSet
Return the total amount of time spent in this ResultSet

Specified by:
getTimeSpent in interface org.apache.derby.iapi.sql.ResultSet

getRowLocation

public org.apache.derby.iapi.types.RowLocation getRowLocation()
                                                       throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.CursorResultSet
Returns the row location of the current base table row of the cursor. If this cursor's row is composed of multiple base tables' rows, i.e. due to a join, then a null is returned.

Specified by:
getRowLocation in interface org.apache.derby.iapi.sql.execute.CursorResultSet

getCurrentRow

public org.apache.derby.iapi.sql.execute.ExecRow getCurrentRow()
                                                        throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.CursorResultSet
Returns the current row of the result set. REMIND: eventually, this will only return the current row for result sets that need to return it; either some field in the activation or a parameter in the constructor will be used to signal that this needs to function. This will let us limit the number of live objects we are holding on to.

Specified by:
getCurrentRow in interface org.apache.derby.iapi.sql.execute.CursorResultSet

getScanProperties

public java.util.Properties getScanProperties()

printStartPosition

public java.lang.String printStartPosition()

printStopPosition

public java.lang.String printStopPosition()

printPosition

private java.lang.String printPosition(int searchOperator,
                                       org.apache.derby.iapi.sql.execute.ExecIndexRow positioner)
Return a start or stop positioner as a String. If we already generated the information, then use that. Otherwise, invoke the activation to get it.


printQualifiers

public java.lang.String printQualifiers()
Return an array of Qualifiers as a String


getResultDescription

public org.apache.derby.iapi.sql.ResultDescription getResultDescription()
Returns the description of the table's rows

Specified by:
getResultDescription in interface org.apache.derby.iapi.sql.ResultSet
Overrides:
getResultDescription in class BasicNoPutResultSetImpl

getCursorName

public