Package de.chojo.sadu.mapper.rowmapper
Class RowMapperBuilder<T>
java.lang.Object
de.chojo.sadu.mapper.rowmapper.RowMapperBuilder<T>
- Type Parameters:
T
- type of the mapper result.
- All Implemented Interfaces:
PartialRowMapper<T>
A builder to build a
RowMapper
.-
Method Summary
Modifier and TypeMethodDescriptionAdds a column to the row mapperaddColumns
(String... columns) Adds columns to the row mapper.build()
Build the row mapper.mapper
(RowMapping<T> mapper) Adds a mapper to map a row to the required object.
-
Method Details
-
mapper
Description copied from interface:PartialRowMapper
Adds a mapper to map a row to the required object.- Specified by:
mapper
in interfacePartialRowMapper<T>
- Parameters:
mapper
- mapper- Returns:
- builder instance
-
addColumn
Adds a column to the row mapper- Parameters:
column
- column to add- Returns:
- builder instance
-
addColumns
Adds columns to the row mapper.- Parameters:
columns
- columns to add- Returns:
- builder instance
-
build
Build the row mapper.- Returns:
- new RowMapper instance
-