public interface JDBCReaderCallback
JDBCFeatureReader
.Modifier and Type | Field and Description |
---|---|
static JDBCReaderCallback |
NULL
Null callback.
|
Modifier and Type | Method and Description |
---|---|
default void |
afterNext(ResultSet rs,
boolean hasMore)
Called after the reader makes a call to
ResultSet.next() . |
default void |
afterQuery(Statement st)
Called directly after the reader makes it's initial query to the database.
|
default void |
beforeNext(ResultSet rs)
Called before the reader makes a call to
ResultSet.next() . |
default void |
beforeQuery(Statement st)
Called directly before the reader makes it's initial query to the database.
|
default void |
finish(JDBCFeatureReader reader)
Called after the last row from the reader
ResultSet is read. |
default void |
init(JDBCFeatureReader reader)
Called when the reader is created.
|
default void |
queryError(Exception e)
Called when an error occurs making the initial query to the database.
|
default void |
rowError(Exception e)
Called when an error occurs fetching the next row in the result set.
|
static final JDBCReaderCallback NULL
default void init(JDBCFeatureReader reader)
reader
- The feature reader.default void beforeQuery(Statement st)
st
- The query statement being executed.default void afterQuery(Statement st)
st
- The query statement that was executed.default void queryError(Exception e)
default void beforeNext(ResultSet rs)
ResultSet.next()
.rs
- The result set.default void afterNext(ResultSet rs, boolean hasMore)
ResultSet.next()
.rs
- The result set.hasMore
- Whether or not any more rows exist in the ResultSet
default void rowError(Exception e)
e
- The error thrown.default void finish(JDBCFeatureReader reader)
ResultSet
is read.reader
- The feature reader.Copyright © 1996–2019 Geotools. All rights reserved.