Package org.geotools.jdbc
Interface JDBCReaderCallback
-
public interface JDBCReaderCallback
Callback forJDBCFeatureReader
.
-
-
Field Summary
Fields Modifier and Type Field Description static JDBCReaderCallback
NULL
Null callback.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
afterNext(ResultSet rs, boolean hasMore)
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
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.
-
-
-
Field Detail
-
NULL
static final JDBCReaderCallback NULL
Null callback.
-
-
Method Detail
-
init
default void init(JDBCFeatureReader reader)
Called when the reader is created.- Parameters:
reader
- The feature reader.
-
beforeQuery
default void beforeQuery(Statement st)
Called directly before the reader makes it's initial query to the database.- Parameters:
st
- The query statement being executed.
-
afterQuery
default void afterQuery(Statement st)
Called directly after the reader makes it's initial query to the database.- Parameters:
st
- The query statement that was executed.
-
queryError
default void queryError(Exception e)
Called when an error occurs making the initial query to the database.
-
beforeNext
default void beforeNext(ResultSet rs)
Called before the reader makes a call toResultSet.next()
.- Parameters:
rs
- The result set.
-
afterNext
default void afterNext(ResultSet rs, boolean hasMore)
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
default void rowError(Exception e)
Called when an error occurs fetching the next row in the result set.- Parameters:
e
- The error thrown.
-
finish
default void finish(JDBCFeatureReader reader)
Called after the last row from the readerResultSet
is read.- Parameters:
reader
- The feature reader.
-
-