|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface abstracts away how row data is accessed by the result set. It is meant to allow a static implementation (Current version), and a streaming one.
| Field Summary | |
static int |
RESULT_SET_SIZE_UNKNOWN
What's returned for the size of a result set when its size can not be determined. |
| Method Summary | |
void |
addRow(byte[][] 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. |
byte[][] |
getAt(int index)
Only works on non dynamic result sets. |
int |
getCurrentRowNumber()
Returns the current position in the result set as a row number. |
ResultSet |
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. |
byte[][] |
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 |
setOwner(ResultSet rs)
Set the result set that 'owns' this RowData |
int |
size()
Only works on non dynamic result sets. |
| Field Detail |
public static final int RESULT_SET_SIZE_UNKNOWN
| Method Detail |
public boolean isAfterLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public byte[][] getAt(int index)
throws java.sql.SQLException
index - row number to get at
java.sql.SQLException - if a database error occurs
public boolean isBeforeFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void setCurrentRow(int rowNumber)
throws java.sql.SQLException
rowNumber - row to move to
java.sql.SQLException - if a database error occurs
public int getCurrentRowNumber()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public boolean isDynamic()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public boolean isEmpty()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public boolean isFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public boolean isLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void addRow(byte[][] row)
throws java.sql.SQLException
row - the row to add
java.sql.SQLException - if a database error occurs
public void afterLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void beforeFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void beforeLast()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void close()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public boolean hasNext()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void moveRowRelative(int rows)
throws java.sql.SQLException
rows - the relative number of rows to move
java.sql.SQLException - if a database error occurs
public byte[][] next()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurs
public void removeRow(int index)
throws java.sql.SQLException
index - the row to move to
java.sql.SQLException - if a database error occurs
public int size()
throws java.sql.SQLException
java.sql.SQLException - if a database error occurspublic void setOwner(ResultSet rs)
rs - the result set that 'owns' this RowDatapublic ResultSet getOwner()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||