| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final GeneratedMethod | |
| private final boolean | |
| private long | |
| private final GeneratedMethod | |
| private long | rowsFetched
Holds the number of rows returned so far in this round of using the result set. |
| private final boolean | |
| pack-priv final NoPutResultSet | |
| private boolean | virginal
True if we haven't yet fetched any rows from this result set. |
| Access | Constructor and Description |
|---|---|
| pack-priv | RowCountResultSet(NoPutResultSet
The source result set being filtered s, Activation The activation for this result set,
which provides the context for the row
allocation operation a, int The resultSetNumber for the ResultSet resultSetNumber, GeneratedMethod Generated method offsetMethod, GeneratedMethod Generated method fetchFirstMethod, boolean True if offset/fetchFirst clauses were added by JDBC LIMIT escape syntax hasJDBClimitClause, double Estimated total # of rows by optimizer optimizerEstimatedRowCount, double Estimated total cost by optimizer optimizerEstimatedCost)RowCountResultSet constructor |
| Modifier and Type | Method and Description |
|---|---|
| public final void | clearCurrentRow()
Overrides org. Implements org. Clear the current row. |
| public void | close()
Overrides org. Implements org. Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet. |
| public void | finish()
Overrides org. Implements org. 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(). |
| public ExecRow | Returns: the last row returned.Implements org. Gets information from source |
| public ExecRow | Returns: the next row in the resultImplements abstract org. Implements org. Return the requested values computed from the next row (if any)
|
| public RowLocation | getRowLocation()
Implements org. Gets information from its source. |
| public long | Returns: long The total amount of time spent (in milliseconds).CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below. type)Implements org. Return the total amount of time spent in this ResultSet |
| public ProjectRestrictResultSet | getUnderlyingProjectRestrictRS()
Return underlying result set (the source og this result set) if it is a ProjectRestrictResultSet, else null. |
| public boolean | isForUpdate()
Overrides org. Implements org. Override of NoPutResultSetImpl method. |
| public void | openCore()
Implements org. Open a scan on the table. |
| public void | reopenCore()
Overrides org. Implements org. Reopen a scan on the table. |
| fetchFirst | back to summary |
|---|---|
| private long fetchFirst | |
| fetchFirstMethod | back to summary |
|---|---|
| private final GeneratedMethod fetchFirstMethod | |
| hasJDBClimitClause | back to summary |
|---|---|
| private final boolean hasJDBClimitClause | |
| offset | back to summary |
|---|---|
| private long offset | |
| offsetMethod | back to summary |
|---|---|
| private final GeneratedMethod offsetMethod | |
| rowsFetched | back to summary |
|---|---|
| private long rowsFetched Holds the number of rows returned so far in this round of using the result set. Will be reset on close so the result set is ready to reuse. | |
| runTimeStatsOn | back to summary |
|---|---|
| private final boolean runTimeStatsOn | |
| source | back to summary |
|---|---|
| pack-priv final NoPutResultSet source | |
| virginal | back to summary |
|---|---|
| private boolean virginal True if we haven't yet fetched any rows from this result set. Will be reset on close so the result set is ready to reuse. | |
| RowCountResultSet | back to summary |
|---|---|
| pack-priv RowCountResultSet(NoPutResultSet s, Activation a, int resultSetNumber, GeneratedMethod offsetMethod, GeneratedMethod fetchFirstMethod, boolean hasJDBClimitClause, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException RowCountResultSet constructor
| |
| clearCurrentRow | back to summary |
|---|---|
| public final void clearCurrentRow() Overrides org. Implements org. Doc from org. Clear the current row. The cursor keeps it current position, however it cannot be used for positioned updates or deletes until a fetch is done. This is done after a commit on holdable result sets. A fetch is achieved by calling one of the positioning methods: getLastRow(), getNextRow(), getPreviousRow(), getFirstRow(), getRelativeRow(..) or getAbsoluteRow(..). | |
| close | back to summary |
|---|---|
| public void close() throws StandardException Overrides org. Implements org. Doc from org. Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.
| |
| finish | back to summary |
|---|---|
| public void finish() throws StandardException Overrides org. Implements org. Doc from org. 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.
| |
| getCurrentRow | back to summary |
|---|---|
| public ExecRow getCurrentRow() throws StandardException Implements org. Gets information from source
| |
| getNextRowCore | back to summary |
|---|---|
| public ExecRow getNextRowCore() throws StandardException Implements abstract org. Implements org. Return the requested values computed from the next row (if any)
| |
| getRowLocation | back to summary |
|---|---|
| public RowLocation getRowLocation() throws StandardException Implements org. Gets information from its source.
| |
| getTimeSpent | back to summary |
|---|---|
| public long getTimeSpent(int type) Implements org. Return the total amount of time spent in this ResultSet
| |
| getUnderlyingProjectRestrictRS | back to summary |
|---|---|
| public ProjectRestrictResultSet getUnderlyingProjectRestrictRS() Return underlying result set (the source og this result set) if it is a ProjectRestrictResultSet, else null. | |
| isForUpdate | back to summary |
|---|---|
| public boolean isForUpdate() Overrides org. Implements org. Override of NoPutResultSetImpl method. Ask the source.
| |
| openCore | back to summary |
|---|---|
| public void openCore() throws StandardException Implements org. Open a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values...
| |
| reopenCore | back to summary |
|---|---|
| public void reopenCore() throws StandardException Overrides org. Implements org. Reopen a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values...
| |