public class RawRowMapperImpl<T,ID> extends Object implements RawRowMapper<T>
Dao.queryRaw(String, RawRowMapper, String...)
.Constructor and Description |
---|
RawRowMapperImpl(Dao<T,ID> dao) |
Modifier and Type | Method and Description |
---|---|
T |
mapRow(String[] columnNames,
String[] resultColumns)
Used to convert a raw results row to an object.
|
public T mapRow(String[] columnNames, String[] resultColumns) throws SQLException
RawRowMapper
NOTE: If you are using the StatementBuilder.prepareStatementString()
to build your query, it may have
added the id column to the selected column list if the Dao object has an id you did not include it in the columns
you selected. So the results might have one more column than you are expecting.
mapRow
in interface RawRowMapper<T>
columnNames
- Array of names of columns.resultColumns
- Array of result columns.SQLException
- If there is any critical error with the data and you want to stop the paging.This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.