org.jdbcpersistence
Interface JDBCResultSetReader
public interface JDBCResultSetReader
An interface that is used by the org.jdbcpersistence.JDBCQuery to read data from a java.sql.ResultSet
returned by that JDBCQuery
User: alex
Date: Aug 23, 2006
Time: 9:00:37 PM
- See Also:
JDBCQuery
|
Method Summary |
java.util.List |
read(java.sql.ResultSet rs,
java.util.List result)
Reads data from the result set and creates an instance of mapped bean for each row. |
read
java.util.List read(java.sql.ResultSet rs,
java.util.List result)
throws java.sql.SQLException
- Reads data from the result set and creates an instance of mapped bean for each row.
The bean instances are then packaged into an instance of
java.utils.List
which is then returned
- Parameters:
rs - an instance of java.sql.ResultSetresult - reference to null or an instace of java.util.List that will be populated and returned
- Returns:
- a result
java.utils.List of beans
- Throws:
java.sql.SQLException - any SQLException that should occur during the insert propogates up
the call chain