public class FBUpdatableCursorFetcher
extends java.lang.Object
isLast()
throws exception now.Modifier and Type | Field and Description |
---|---|
protected RowValue |
_nextRow |
protected FBObjectListener.FetcherListener |
fetcherListener |
protected int |
fetchSize |
protected GDSHelper |
gdsHelper |
static int |
MAX_FETCH_ROWS |
protected int |
maxRows |
protected FbStatement |
stmt |
protected Synchronizable |
syncProvider |
Modifier and Type | Method and Description |
---|---|
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 |
close(CompletionReason completionReason)
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 RowValue |
getNextRow() |
int |
getRowNum()
Get row number.
|
void |
insertRow(RowValue 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(RowValue nextRow) |
void |
setRowNum(int rowNumValue) |
void |
updateRow(RowValue data)
Update row at current position.
|
protected final GDSHelper gdsHelper
protected final FBObjectListener.FetcherListener fetcherListener
protected final int maxRows
protected int fetchSize
protected final Synchronizable syncProvider
protected final FbStatement stmt
protected RowValue _nextRow
public static final int MAX_FETCH_ROWS
public boolean next() throws java.sql.SQLException
true
if cursor was moved.java.sql.SQLException
- if something went wrong.public boolean isLast() throws java.sql.SQLException
java.sql.SQLException
protected RowValue getNextRow() throws java.sql.SQLException
java.sql.SQLException
protected void setNextRow(RowValue nextRow)
public boolean absolute(int row) throws java.sql.SQLException
row
- absolute row number.true
if cursor was successfully moved.java.sql.SQLException
- if something went wrong.public boolean first() throws java.sql.SQLException
true
if cursor was moved to the first row.java.sql.SQLException
- if something went wrong.public boolean last() throws java.sql.SQLException
true
if cursor was moved to the last row.java.sql.SQLException
- if something went wrong.public boolean previous() throws java.sql.SQLException
true
if cursor was moved to the prevous row.java.sql.SQLException
- if something went wrong.public boolean relative(int row) throws java.sql.SQLException
row
- relative row position.true
if cursor was successfully moved.java.sql.SQLException
- if something went wrong.public void beforeFirst() throws java.sql.SQLException
java.sql.SQLException
- if something went wrong.public void afterLast() throws java.sql.SQLException
java.sql.SQLException
- if something went wrong.public void fetch() throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
Equivalent to calling close(CompletionReason)
with CompletionReason.OTHER
.
java.sql.SQLException
- if something went wrong.public void close(CompletionReason completionReason) throws java.sql.SQLException
completionReason
- Reason for completionjava.sql.SQLException
- if something went wrong.public int getRowNum()
public void setRowNum(int rowNumValue)
public boolean isEmpty() throws java.sql.SQLException
java.sql.SQLException
public void setIsEmpty(boolean isEmptyValue)
public boolean isBeforeFirst() throws java.sql.SQLException
java.sql.SQLException
public void setIsBeforeFirst(boolean isBeforeFirstValue)
public boolean isFirst() throws java.sql.SQLException
java.sql.SQLException
public void setIsFirst(boolean isFirstValue)
public void setIsLast(boolean isLastValue)
public boolean isAfterLast() throws java.sql.SQLException
java.sql.SQLException
public void setIsAfterLast(boolean isAfterLastValue)
public void deleteRow() throws java.sql.SQLException
ResultSet.deleteRow()
method.java.sql.SQLException
- if operation cannot be completed.public void insertRow(RowValue data) throws java.sql.SQLException
ResultSet.insertRow()
method.data
- row datajava.sql.SQLException
- if operation cannot be completed.public void updateRow(RowValue data) throws java.sql.SQLException
ResultSet.updateRow()
method.data
- row datajava.sql.SQLException
- if operation cannot be completed.public void setFetchSize(int fetchSize)
fetchSize
- The suggested number of rows to fetchpublic int getFetchSize()
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.