|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DataItems that implement the ScrollableRowsetAcess interface represent a set of rows that may be naviagated backwards or forwards. The ScrollableRowsetAccess interface contains methods to get a new cursor, to set and get the number of rows to be locally buffered, to go to the first/last/previous/specified row, and to get the number of rows.
Method Summary | |
boolean |
absolute(int rowIndex)
Set the row cursor to the specified row If there are changes to the current row pending, the producer may validate the changes and/or send them to the database before changing the cursor. |
boolean |
first()
Move the row cursor to the first row. |
int |
getBufferSize()
Get the current buffer size. |
int |
getRow()
Get the row number of the current row. |
int |
getRowCount()
Get the total number of rows in the rowset. |
boolean |
last()
Move the row cursor to the last row. |
ScrollableRowsetAccess |
newCursor()
Get a new, independent cursor for the rowset. |
boolean |
previous()
Move the row cursor to the previous row. |
boolean |
relative(int numRows)
Move the row cursor forwards or backwards by the specified number of rows. |
void |
setBufferSize(int size)
Ask the data provider to keep a specified number of rows immediately available. |
Methods inherited from interface javax.infobus.RowsetAccess |
canDelete,
canInsert,
canUpdate,
canUpdate,
canUpdate,
deleteRow,
flush,
getColumnCount,
getColumnDatatypeName,
getColumnDatatypeNumber,
getColumnItem,
getColumnItem,
getColumnName,
getDb,
getHighWaterMark,
hasMoreRows,
lockRow,
newRow,
next,
setColumnValue,
setColumnValue |
Method Detail |
public ScrollableRowsetAccess newCursor()
public void setBufferSize(int size)
size
- number of rows to keep immediately available.public int getBufferSize()
public boolean previous() throws java.sql.SQLException, RowsetValidationException
public boolean first() throws java.sql.SQLException, RowsetValidationException
public boolean last() throws java.sql.SQLException, RowsetValidationException
public boolean relative(int numRows) throws java.sql.SQLException, RowsetValidationException
numRows
- the number of rows to move forward (backwards if negative).public int getRow()
public int getRowCount()
public boolean absolute(int rowIndex) throws java.sql.SQLException, RowsetValidationException
rowIndex
- the number of the row as returned by getRow.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |