- Type Parameters:
T- generic row type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Converts a single row from a
ResultSet to a generic row type.-
Method Summary
Modifier and TypeMethodDescriptioncolumnValueList(DbDialect dialect) static <T> ContextRowMapper<T>Creates a new newContextRowMapperfrom aRowMapper.static <T> ContextRowMapper<T>create(SimpleRowMapper<T> mapper) Creates a new newContextRowMapperfrom aSimpleRowMapper.Converts a single row from aResultSetto a generic row type.
-
Method Details
-
mapRow
Converts a single row from aResultSetto a generic row type.- Parameters:
context- database contextresultSet- result setrowNum- the current row number (zero based)- Returns:
- the converted row
- Throws:
SQLException- if accessing the result set fails
-
generic
- Parameters:
dialect- DB dialect- Returns:
- a new row mapper
-
columnValueList
- Parameters:
dialect- DB dialect- Returns:
- a new row mapper
-
create
Creates a new newContextRowMapperfrom aSimpleRowMapper.Use this if the mapper doesn't need the
Context.- Type Parameters:
T- generic row type- Parameters:
mapper- the simple row mapper- Returns:
- a new
ContextRowMapper
-
create
Creates a new newContextRowMapperfrom aRowMapper.Use this if the mapper doesn't need the
Context.- Type Parameters:
T- generic row type- Parameters:
mapper- the simple row mapper- Returns:
- a new
ContextRowMapper
-