|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
This interface is not usable with Open SQL / SQLJ. Scrollable result sets are not supported in Open SQL for Java.
This interface provides a set of methods that all scrollable iterator objects support. The effect of an update on a Scrollable iterator object is implementation-defined.
| Method Summary | |
boolean |
absolute(int row)
Moves the iterator object to the row with the given row number. |
void |
afterLast()
Moves the iterator object to immediately after its last row. |
void |
beforeFirst()
Moves the iterator object to immediately before its first row. |
boolean |
first()
Moves the iterator object to its first row. |
int |
getFetchDirection()
Retrieves the direction for fetching rows for this iterator object. |
boolean |
isAfterLast()
Indicates whether the iterator object is after its last row. |
boolean |
isBeforeFirst()
Indicates whether the iterator object is before its first row. |
boolean |
isFirst()
Indicates whether the iterator object is on its first row. |
boolean |
isLast()
Indicates whether the iterator object is on its last row. |
boolean |
last()
Moves the iterator object to its last row. |
boolean |
previous()
Moves the iterator object to its previous row. |
boolean |
relative(int rows)
Moves the iterator object the given number of rows, either positive or negative, from its current position. |
void |
setFetchDirection(int direction)
Gives the SQLJ runtime a hint as to the direction in which rows of this iterator object are processed. |
| Method Detail |
public boolean absolute(int row)
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs or row is 0 (zero).
public void afterLast()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public void beforeFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean first()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public int getFetchDirection()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean isAfterLast()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean isBeforeFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean isFirst()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean isLast()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean last()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean previous()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean relative(int rows)
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public void setFetchDirection(int direction)
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs, or the given direction is not one of
ResultSetIterator.FETCH_FORWARD, ResultSetIterator.FETCH_REVERSE, or ResultSetIterator.FETCH_UNKNOWN.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||