Package org.geotools.jdbc
Interface JDBCReaderCallback
-
public interface JDBCReaderCallbackCallback forJDBCFeatureReader.
-
-
Field Summary
Fields Modifier and Type Field Description static JDBCReaderCallbackNULLNull callback.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterNext(ResultSet rs, boolean hasMore)Called after the reader makes a call toResultSet.next().default voidafterQuery(Statement st)Called directly after the reader makes it's initial query to the database.default voidbeforeNext(ResultSet rs)Called before the reader makes a call toResultSet.next().default voidbeforeQuery(Statement st)Called directly before the reader makes it's initial query to the database.default voidfinish(JDBCFeatureReader reader)Called after the last row from the readerResultSetis read.default voidinit(JDBCFeatureReader reader)Called when the reader is created.default voidqueryError(Exception e)Called when an error occurs making the initial query to the database.default voidrowError(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 readerResultSetis read.- Parameters:
reader- The feature reader.
-
-