| Modifier and Type | Field and Description |
|---|---|
(package private) ResultSetImpl |
owner |
RESULT_SET_SIZE_UNKNOWN| Constructor and Description |
|---|
RowDataStatic(java.util.List<ResultSetRow> rows)
Creates a new RowDataStatic object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(ResultSetRow row)
Adds a row to this row data.
|
void |
afterLast()
Moves to after last.
|
void |
beforeFirst()
Moves to before first.
|
void |
beforeLast()
Moves to before last so next el is the last el.
|
void |
close()
We're done.
|
ResultSetRow |
getAt(int atIndex)
Only works on non dynamic result sets.
|
int |
getCurrentRowNumber()
Returns the current position in the result set as a row number.
|
ResultSetInternalMethods |
getOwner()
Returns the result set that 'owns' this RowData
|
boolean |
hasNext()
Returns true if another row exsists.
|
boolean |
isAfterLast()
Returns true if we got the last element.
|
boolean |
isBeforeFirst()
Returns if iteration has not occurred yet.
|
boolean |
isDynamic()
Returns true if the result set is dynamic.
|
boolean |
isEmpty()
Has no records.
|
boolean |
isFirst()
Are we on the first row of the result set?
|
boolean |
isLast()
Are we on the last row of the result set?
|
void |
moveRowRelative(int rowsToMove)
Moves the current position relative 'rows' from the current position.
|
ResultSetRow |
next()
Returns the next row.
|
void |
removeRow(int atIndex)
Removes the row at the given index.
|
void |
setCurrentRow(int newIndex)
Moves the current position in the result set to the given row number.
|
void |
setMetadata(Field[] metadata)
Sometimes the driver doesn't have metadata until after
the statement has the result set in-hand (because it's cached),
so it can call this to set it after the fact.
|
void |
setOwner(ResultSetImpl rs)
Set the result set that 'owns' this RowData
|
int |
size()
Only works on non dynamic result sets.
|
boolean |
wasEmpty()
Did this result set have no rows?
|
ResultSetImpl owner
public RowDataStatic(java.util.List<ResultSetRow> rows)
rows - public void addRow(ResultSetRow row)
RowDatapublic void beforeFirst()
beforeFirst in interface RowDatapublic void beforeLast()
RowDatabeforeLast in interface RowDatapublic void close()
RowDatapublic ResultSetRow getAt(int atIndex) throws java.sql.SQLException
RowDatapublic int getCurrentRowNumber()
RowDatagetCurrentRowNumber in interface RowDatapublic ResultSetInternalMethods getOwner()
RowDatagetOwner in interface RowDataRowData.getOwner()public boolean hasNext()
RowDatapublic boolean isAfterLast()
isAfterLast in interface RowDatapublic boolean isBeforeFirst()
isBeforeFirst in interface RowDatapublic boolean isDynamic()
RowDatapublic boolean isEmpty()
RowDatapublic boolean isFirst()
RowDatapublic boolean isLast()
RowDatapublic void moveRowRelative(int rowsToMove)
RowDatamoveRowRelative in interface RowDatarowsToMove - the relative number of rows to movepublic ResultSetRow next() throws java.sql.SQLException
RowDatapublic void removeRow(int atIndex)
RowDatapublic void setCurrentRow(int newIndex)
RowDatasetCurrentRow in interface RowDatanewIndex - row to move topublic void setOwner(ResultSetImpl rs)
RowDatapublic int size()
RowDatapublic boolean wasEmpty()
RowDatapublic void setMetadata(Field[] metadata)
RowDatasetMetadata in interface RowDatametadata - field-level metadata for the result set