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 SummaryFields Modifier and Type Field Description protected RowValue_nextRowprotected FBObjectListener.FetcherListenerfetcherListenerprotected intfetchSizeprotected GDSHelpergdsHelperstatic intMAX_FETCH_ROWSprotected intmaxRowsprotected FbStatementstmtprotected SynchronizablesyncProvider
 - 
Method SummaryAll 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- 
gdsHelperprotected final GDSHelper gdsHelper 
 - 
fetcherListenerprotected final FBObjectListener.FetcherListener fetcherListener 
 - 
maxRowsprotected final int maxRows 
 - 
fetchSizeprotected int fetchSize 
 - 
syncProviderprotected final Synchronizable syncProvider 
 - 
stmtprotected final FbStatement stmt 
 - 
_nextRowprotected RowValue _nextRow 
 - 
MAX_FETCH_ROWSpublic static final int MAX_FETCH_ROWS - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
nextpublic boolean next() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
isLastpublic boolean isLast() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getNextRowprotected RowValue getNextRow() throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
setNextRowprotected void setNextRow(RowValue nextRow) 
 - 
absolutepublic boolean absolute(int row) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
firstpublic boolean first() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
lastpublic boolean last() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
previouspublic boolean previous() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
relativepublic boolean relative(int row) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
beforeFirstpublic void beforeFirst() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
afterLastpublic void afterLast() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
fetchpublic void fetch() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
closepublic void close() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
closepublic void close(CompletionReason completionReason) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
getRowNumpublic int getRowNum() 
 - 
setRowNumpublic void setRowNum(int rowNumValue) 
 - 
isEmptypublic boolean isEmpty() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setIsEmptypublic void setIsEmpty(boolean isEmptyValue) 
 - 
isBeforeFirstpublic boolean isBeforeFirst() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setIsBeforeFirstpublic void setIsBeforeFirst(boolean isBeforeFirstValue) 
 - 
isFirstpublic boolean isFirst() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setIsFirstpublic void setIsFirst(boolean isFirstValue) 
 - 
setIsLastpublic void setIsLast(boolean isLastValue) 
 - 
isAfterLastpublic boolean isAfterLast() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setIsAfterLastpublic void setIsAfterLast(boolean isAfterLastValue) 
 - 
deleteRowpublic void deleteRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
insertRowpublic void insertRow(RowValue data) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
updateRowpublic void updateRow(RowValue data) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
setFetchSizepublic void setFetchSize(int fetchSize) 
 - 
getFetchSizepublic int getFetchSize() 
 
- 
 
-