Package org.geotools.jdbc
Interface JDBCReaderCallback
public interface JDBCReaderCallback
Callback for
JDBCFeatureReader
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Called after the reader makes a call toResultSet.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 toResultSet.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 readerResultSet
is read.default void
init
(JDBCFeatureReader reader) Called when the reader is created.default void
Called when an error occurs making the initial query to the database.default void
Called when an error occurs fetching the next row in the result set.
-
Field Details
-
NULL
Null callback.
-
-
Method Details
-
init
Called when the reader is created.- Parameters:
reader
- The feature reader.
-
beforeQuery
Called directly before the reader makes it's initial query to the database.- Parameters:
st
- The query statement being executed.
-
afterQuery
Called directly after the reader makes it's initial query to the database.- Parameters:
st
- The query statement that was executed.
-
queryError
Called when an error occurs making the initial query to the database. -
beforeNext
Called before the reader makes a call toResultSet.next()
.- Parameters:
rs
- The result set.
-
afterNext
Called after the reader makes a call toResultSet.next()
.- Parameters:
rs
- The result set.hasMore
- Whether or not any more rows exist in theResultSet
-
rowError
Called when an error occurs fetching the next row in the result set.- Parameters:
e
- The error thrown.
-
finish
Called after the last row from the readerResultSet
is read.- Parameters:
reader
- The feature reader.
-