public interface RowData
| Modifier and Type | Field and Description |
|---|---|
static int |
RESULT_SET_SIZE_UNKNOWN
What's returned for the size of a result set when its size can not be
determined.
|
| 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 index)
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 occured 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 rows)
Moves the current position relative 'rows' from the current position.
|
ResultSetRow |
next()
Returns the next row.
|
void |
removeRow(int index)
Removes the row at the given index.
|
void |
setCurrentRow(int rowNumber)
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?
|
static final int RESULT_SET_SIZE_UNKNOWN
void addRow(ResultSetRow row) throws java.sql.SQLException
row - the row to addjava.sql.SQLException - if a database error occursvoid afterLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursvoid beforeFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursvoid beforeLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursvoid close()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursResultSetRow getAt(int index) throws java.sql.SQLException
index - row number to get atjava.sql.SQLException - if a database error occursint getCurrentRowNumber()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursResultSetInternalMethods getOwner()
boolean hasNext()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean isAfterLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean isBeforeFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean isDynamic()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean isEmpty()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean isFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean isLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursvoid moveRowRelative(int rows)
throws java.sql.SQLException
rows - the relative number of rows to movejava.sql.SQLException - if a database error occursResultSetRow next() throws java.sql.SQLException
java.sql.SQLException - if a database error occursvoid removeRow(int index)
throws java.sql.SQLException
index - the row to move tojava.sql.SQLException - if a database error occursvoid setCurrentRow(int rowNumber)
throws java.sql.SQLException
rowNumber - row to move tojava.sql.SQLException - if a database error occursvoid setOwner(ResultSetImpl rs)
rs - the result set that 'owns' this RowDataint size()
throws java.sql.SQLException
java.sql.SQLException - if a database error occursboolean wasEmpty()
void setMetadata(Field[] metadata)
metadata - field-level metadata for the result set