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
ResultReader
reads the results of aResultSet
during anDataSource.executeQuery(String, ResultReader)
-operation.- Author:
- agz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
readResult(java.sql.ResultSet resultSet)
Reads the results of aResultSet
during 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.Exception
Reads the results of aResultSet
during anDataSource.executeQuery(String, ResultReader)
-operation, treats them or stores them somewhere and returns the count of rows. The possibleSQLException
s during read-operations on theResultSet
need not be catched. They will be treated by the enclosingDataSource.executeQuery(String, ResultReader)
-operation.
-
-