Package org.firebirdsql.jdbc
Class FBUpdatableCursorFetcher
java.lang.Object
org.firebirdsql.jdbc.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.- Author:
- Roman Rokytskyy, Mark Rotteveel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RowValueprotected final FBObjectListener.FetcherListenerprotected intprotected final GDSHelperstatic final intprotected final intprotected final FbStatementprotected final Synchronizable -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) voidvoidvoidclose()voidclose(CompletionReason completionReason) voidvoidfetch()booleanfirst()intprotected RowValueintvoidbooleanbooleanbooleanisEmpty()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) void
-
Field Details
-
gdsHelper
-
fetcherListener
-
maxRows
protected final int maxRows -
fetchSize
protected int fetchSize -
syncProvider
-
stmt
-
_nextRow
-
MAX_FETCH_ROWS
static final int MAX_FETCH_ROWS- See Also:
-
-
Method Details
-
next
- Throws:
SQLException
-
isLast
- Throws:
SQLException
-
getNextRow
- Throws:
SQLException
-
setNextRow
-
absolute
- Throws:
SQLException
-
first
- Throws:
SQLException
-
last
- Throws:
SQLException
-
previous
- Throws:
SQLException
-
relative
- Throws:
SQLException
-
beforeFirst
- Throws:
SQLException
-
afterLast
- Throws:
SQLException
-
fetch
- Throws:
SQLException
-
close
- Throws:
SQLException
-
close
- Throws:
SQLException
-
getRowNum
public int getRowNum() -
setRowNum
public void setRowNum(int rowNumValue) -
isEmpty
- Throws:
SQLException
-
setIsEmpty
public void setIsEmpty(boolean isEmptyValue) -
isBeforeFirst
- Throws:
SQLException
-
setIsBeforeFirst
public void setIsBeforeFirst(boolean isBeforeFirstValue) -
isFirst
- Throws:
SQLException
-
setIsFirst
public void setIsFirst(boolean isFirstValue) -
setIsLast
public void setIsLast(boolean isLastValue) -
isAfterLast
- Throws:
SQLException
-
setIsAfterLast
public void setIsAfterLast(boolean isAfterLastValue) -
deleteRow
- Throws:
SQLException
-
insertRow
- Throws:
SQLException
-
updateRow
- Throws:
SQLException
-
setFetchSize
public void setFetchSize(int fetchSize) -
getFetchSize
public int getFetchSize()
-