Package com.saperion.common.sql
Interface ResultReader<E extends java.lang.Exception>
-
- Type Parameters:
E- type of Business-Exceptions, thereadResult(ResultSet)-method may throw
public interface ResultReader<E extends java.lang.Exception>A
ResultReaderreads the results of aResultSetduring anDataSource.executeQuery(String, ResultReader)-operation.- Author:
- agz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intreadResult(java.sql.ResultSet resultSet)Reads the results of aResultSetduring anDataSource.executeQuery(String, ResultReader)-operation, treats them or stores them somewhere and returns the count of rows.
-
-
-
Method Detail
-
readResult
int readResult(java.sql.ResultSet resultSet) throws java.sql.SQLException, E extends java.lang.ExceptionReads the results of aResultSetduring anDataSource.executeQuery(String, ResultReader)-operation, treats them or stores them somewhere and returns the count of rows. The possibleSQLExceptions during read-operations on theResultSetneed not be catched. They will be treated by the enclosingDataSource.executeQuery(String, ResultReader)-operation.
-
-