Package com.pyranid
Interface ResultSetMapper
- All Known Implementing Classes:
DefaultResultSetMapper
public interface ResultSetMapper
Contract for mapping a
ResultSet
row to a different type.- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
-
Method Details
-
map
Maps the current row ofresultSet
into an instance ofresultClass
.- Type Parameters:
T
- result instance type token- Parameters:
resultSet
- provides raw row data to pull fromresultClass
- the type of instance to map to- Returns:
- an instance of the given
resultClass
- Throws:
DatabaseException
- if an error occurs during mapping
-