com.j256.ormlite.stmt
Class RawRowMapperImpl<T,ID>
java.lang.Object
com.j256.ormlite.stmt.RawRowMapperImpl<T,ID>
- All Implemented Interfaces:
- RawRowMapper<T>
public class RawRowMapperImpl<T,ID>
- extends Object
- implements RawRowMapper<T>
Default row mapper when you are using the Dao.queryRaw(String, RawRowMapper, String...)
.
- Author:
- graywatson
Method Summary |
T |
mapRow(String[] columnNames,
String[] resultColumns)
Used to convert a raw results row to an object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawRowMapperImpl
public RawRowMapperImpl(TableInfo<T,ID> tableInfo)
mapRow
public T mapRow(String[] columnNames,
String[] resultColumns)
throws SQLException
- Description copied from interface:
RawRowMapper
- Used to convert a raw results row to an object.
- Specified by:
mapRow
in interface RawRowMapper<T>
- Parameters:
columnNames
- Array of names of columns.resultColumns
- Array of result columns.
- Returns:
- The created object with all of the fields set from the results. Return if there is no object generated
from these results.
- Throws:
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.