Package org.firebirdsql.jdbc
Class FBUpdatableCursorFetcher
- java.lang.Object
-
- org.firebirdsql.jdbc.FBUpdatableCursorFetcher
-
public class FBUpdatableCursorFetcher extends java.lang.ObjectStatement fetcher for updatable cursor case. This fetcher keeps cursor position consistent, however we cannot tell now if we are on the last record. MethodisLast()throws exception now.- Author:
- Roman Rokytskyy, Mark Rotteveel
-
-
Field Summary
Fields Modifier and Type Field Description protected RowValue_nextRowprotected FBObjectListener.FetcherListenerfetcherListenerprotected intfetchSizeprotected GDSHelpergdsHelperstatic intMAX_FETCH_ROWSprotected intmaxRowsprotected FbStatementstmtprotected SynchronizablesyncProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabsolute(int row)voidafterLast()voidbeforeFirst()voidclose()voidclose(CompletionReason completionReason)voiddeleteRow()voidfetch()booleanfirst()intgetFetchSize()protected RowValuegetNextRow()intgetRowNum()voidinsertRow(RowValue data)booleanisAfterLast()booleanisBeforeFirst()booleanisEmpty()booleanisFirst()booleanisLast()booleanlast()booleannext()booleanprevious()booleanrelative(int row)voidsetFetchSize(int fetchSize)voidsetIsAfterLast(boolean isAfterLastValue)voidsetIsBeforeFirst(boolean isBeforeFirstValue)voidsetIsEmpty(boolean isEmptyValue)voidsetIsFirst(boolean isFirstValue)voidsetIsLast(boolean isLastValue)protected voidsetNextRow(RowValue nextRow)voidsetRowNum(int rowNumValue)voidupdateRow(RowValue data)
-
-
-
Field Detail
-
gdsHelper
protected final GDSHelper gdsHelper
-
fetcherListener
protected final FBObjectListener.FetcherListener fetcherListener
-
maxRows
protected final int maxRows
-
fetchSize
protected int fetchSize
-
syncProvider
protected final Synchronizable syncProvider
-
stmt
protected final FbStatement stmt
-
_nextRow
protected RowValue _nextRow
-
MAX_FETCH_ROWS
public static final int MAX_FETCH_ROWS
- See Also:
- Constant Field Values
-
-
Method Detail
-
next
public boolean next() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isLast
public boolean isLast() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getNextRow
protected RowValue getNextRow() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
setNextRow
protected void setNextRow(RowValue nextRow)
-
absolute
public boolean absolute(int row) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
first
public boolean first() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
last
public boolean last() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
previous
public boolean previous() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
relative
public boolean relative(int row) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
beforeFirst
public void beforeFirst() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
afterLast
public void afterLast() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
fetch
public void fetch() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
close
public void close(CompletionReason completionReason) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getRowNum
public int getRowNum()
-
setRowNum
public void setRowNum(int rowNumValue)
-
isEmpty
public boolean isEmpty() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setIsEmpty
public void setIsEmpty(boolean isEmptyValue)
-
isBeforeFirst
public boolean isBeforeFirst() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setIsBeforeFirst
public void setIsBeforeFirst(boolean isBeforeFirstValue)
-
isFirst
public boolean isFirst() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setIsFirst
public void setIsFirst(boolean isFirstValue)
-
setIsLast
public void setIsLast(boolean isLastValue)
-
isAfterLast
public boolean isAfterLast() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setIsAfterLast
public void setIsAfterLast(boolean isAfterLastValue)
-
deleteRow
public void deleteRow() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
insertRow
public void insertRow(RowValue data) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
updateRow
public void updateRow(RowValue data) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
setFetchSize
public void setFetchSize(int fetchSize)
-
getFetchSize
public int getFetchSize()
-
-