|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.jdbc.FBStatementFetcher
org.firebirdsql.jdbc.FBUpdatableFetcher
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 AbstractStatement |
fbStatement
|
static int |
MAX_FETCH_ROWS
|
protected FBResultSet |
rs
|
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 |
fetch()
|
boolean |
first()
Move cursor to the rist row. |
protected byte[][] |
getNextRow()
|
int |
getRowNum()
Get row number. |
AbstractStatement |
getStatement()
Get statement to which this fetcher belongs to. |
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 |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AbstractStatement fbStatement
protected FBResultSet rs
protected byte[][] _nextRow
public static final int MAX_FETCH_ROWS
Method Detail |
public boolean next() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
public boolean isLast() throws java.sql.SQLException
java.sql.SQLException
protected byte[][] getNextRow() throws java.sql.SQLException
java.sql.SQLException
protected void setNextRow(byte[][] nextRow)
public boolean absolute(int row) throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
absolute
in interface org.firebirdsql.jdbc.FBFetcher
row
- absolute row number.
true
if cursor was successfully moved.
java.sql.SQLException
- if something went wrong.public boolean first() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
first
in interface org.firebirdsql.jdbc.FBFetcher
true
if cursor was moved to the first row.
java.sql.SQLException
- if something went wrong.public boolean last() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
last
in interface org.firebirdsql.jdbc.FBFetcher
true
if cursor was moved to the last row.
java.sql.SQLException
- if something went wrong.public boolean previous() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
previous
in interface org.firebirdsql.jdbc.FBFetcher
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
org.firebirdsql.jdbc.FBFetcher
relative
in interface org.firebirdsql.jdbc.FBFetcher
row
- relative row position.
true
if cursor was successfully moved.
java.sql.SQLException
- if something went wrong.public void beforeFirst() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
beforeFirst
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
- if something went wrong.public void afterLast() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
afterLast
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
- if something went wrong.public void fetch() throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
org.firebirdsql.jdbc.FBFetcher
close
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
- if something went wrong.public AbstractStatement getStatement()
org.firebirdsql.jdbc.FBFetcher
getStatement
in interface org.firebirdsql.jdbc.FBFetcher
AbstractStatement
.public int getRowNum()
org.firebirdsql.jdbc.FBFetcher
getRowNum
in interface org.firebirdsql.jdbc.FBFetcher
public void setRowNum(int rowNumValue)
public boolean isEmpty() throws java.sql.SQLException
isEmpty
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
public void setIsEmpty(boolean isEmptyValue)
public boolean isBeforeFirst() throws java.sql.SQLException
isBeforeFirst
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
public void setIsBeforeFirst(boolean isBeforeFirstValue)
public boolean isFirst() throws java.sql.SQLException
isFirst
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
public void setIsFirst(boolean isFirstValue)
public void setIsLast(boolean isLastValue)
public boolean isAfterLast() throws java.sql.SQLException
isAfterLast
in interface org.firebirdsql.jdbc.FBFetcher
java.sql.SQLException
public void setIsAfterLast(boolean isAfterLastValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |