Package org.geotools.jdbc
Interface JDBCReaderCallback
public interface JDBCReaderCallback
Callback for
JDBCFeatureReader.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled 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 voidCalled when an error occurs making the initial query to the database.default voidCalled 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 readerResultSetis read.- Parameters:
reader- The feature reader.
-