|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.FBUpdatableCursorFetcher
public class FBUpdatableCursorFetcher
Statement fetcher for updatable cursor case. This fetcher keeps cursor
position consistent, however we cannot tell now if we are on the last record.
Method isLast()throws exception now.
| Field Summary | |
|---|---|
protected byte[][] |
_nextRow
|
protected FBObjectListener.FetcherListener |
fetcherListener
|
protected int |
fetchSize
|
protected GDSHelper |
gdsHelper
|
static int |
MAX_FETCH_ROWS
|
protected int |
maxRows
|
protected AbstractIscStmtHandle |
stmt
|
protected Synchronizable |
syncProvider
|
| Method Summary | |
|---|---|
boolean |
absolute(int row)
Move cursor to the absolute row. |
void |
afterLast()
Move cursor after last record. |
void |
beforeFirst()
Move cursor before first record. |
void |
close()
Close this fetcher and corresponding result set. |
void |
deleteRow()
Delete row at current position. |
void |
fetch()
|
boolean |
first()
Move cursor to the rist row. |
int |
getFetchSize()
Set the suggested number of rows to fetch with each batch fetch. |
protected byte[][] |
getNextRow()
|
int |
getRowNum()
Get row number. |
void |
insertRow(byte[][] data)
Insert row at current position. |
boolean |
isAfterLast()
|
boolean |
isBeforeFirst()
|
boolean |
isEmpty()
|
boolean |
isFirst()
|
boolean |
isLast()
|
boolean |
last()
Move cursor to the last row. |
boolean |
next()
Move to next row. |
boolean |
previous()
Move cursor to the previous row. |
boolean |
relative(int row)
Move cursor relative to the current row. |
void |
setFetchSize(int fetchSize)
Get the suggested number of rows to fetch with each batch fetch. |
void |
setIsAfterLast(boolean isAfterLastValue)
|
void |
setIsBeforeFirst(boolean isBeforeFirstValue)
|
void |
setIsEmpty(boolean isEmptyValue)
|
void |
setIsFirst(boolean isFirstValue)
|
void |
setIsLast(boolean isLastValue)
|
protected void |
setNextRow(byte[][] nextRow)
|
void |
setRowNum(int rowNumValue)
|
void |
updateRow(byte[][] data)
Update row at current position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GDSHelper gdsHelper
protected FBObjectListener.FetcherListener fetcherListener
protected int maxRows
protected int fetchSize
protected Synchronizable syncProvider
protected AbstractIscStmtHandle stmt
protected byte[][] _nextRow
public static final int MAX_FETCH_ROWS
| Method Detail |
|---|
public boolean next()
throws SQLException
true if cursor was moved.
SQLException - if something went wrong.
public boolean isLast()
throws SQLException
SQLException
protected byte[][] getNextRow()
throws SQLException
SQLExceptionprotected void setNextRow(byte[][] nextRow)
public boolean absolute(int row)
throws SQLException
row - absolute row number.
true if cursor was successfully moved.
SQLException - if something went wrong.
public boolean first()
throws SQLException
true if cursor was moved to the first row.
SQLException - if something went wrong.
public boolean last()
throws SQLException
true if cursor was moved to the last row.
SQLException - if something went wrong.
public boolean previous()
throws SQLException
true if cursor was moved to the prevous row.
SQLException - if something went wrong.
public boolean relative(int row)
throws SQLException
row - relative row position.
true if cursor was successfully moved.
SQLException - if something went wrong.
public void beforeFirst()
throws SQLException
SQLException - if something went wrong.
public void afterLast()
throws SQLException
SQLException - if something went wrong.
public void fetch()
throws SQLException
SQLException
public void close()
throws SQLException
SQLException - if something went wrong.public int getRowNum()
public void setRowNum(int rowNumValue)
public boolean isEmpty()
throws SQLException
SQLExceptionpublic void setIsEmpty(boolean isEmptyValue)
public boolean isBeforeFirst()
throws SQLException
SQLExceptionpublic void setIsBeforeFirst(boolean isBeforeFirstValue)
public boolean isFirst()
throws SQLException
SQLExceptionpublic void setIsFirst(boolean isFirstValue)
public void setIsLast(boolean isLastValue)
public boolean isAfterLast()
throws SQLException
SQLExceptionpublic void setIsAfterLast(boolean isAfterLastValue)
public void deleteRow()
throws SQLException
ResultSet#deleteRow() method.
SQLException - if operation cannot be completed.
public void insertRow(byte[][] data)
throws SQLException
ResultSet#insertRow() method.
data - row data
SQLException - if operation cannot be completed.
public void updateRow(byte[][] data)
throws SQLException
ResultSet#updateRow() method.
data - row data
SQLException - if operation cannot be completed.public void setFetchSize(int fetchSize)
fetchSize - The suggested number of rows to fetchpublic int getFetchSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||