Package com.github.ddth.dao.jdbc
Interface IRowMapper<T>
-
- All Known Implementing Classes:
AbstractGenericRowMapper
,AnnotatedGenericRowMapper
,UniversalRowMapper
public interface IRowMapper<T>
An interface to mapResultSet
to object.- Since:
- 0.7.0
- Author:
- Thanh Nguyen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
mapRow(java.sql.ResultSet rs, int rowNum)
Transform a DB row fromResultSet
to a business object.
-
-
-
Method Detail
-
mapRow
T mapRow(java.sql.ResultSet rs, int rowNum) throws java.sql.SQLException
Transform a DB row fromResultSet
to a business object.Note: Implementation should NOT call
ResultSet.next()
!- Parameters:
rs
-rowNum
-- Returns:
- the result object for the current row
- Throws:
java.sql.SQLException
-
-