com.j256.ormlite.stmt
Interface GenericRowMapper<T>

Type Parameters:
T - Type that the mapRow returns.
All Known Subinterfaces:
PreparedDelete<T>, PreparedQuery<T>, PreparedStmt<T>, PreparedUpdate<T>
All Known Implementing Classes:
BaseMappedQuery, MappedPreparedStmt, MappedQueryForId, MappedRefresh, StatementExecutor

public interface GenericRowMapper<T>

Parameterized version similar to Spring's RowMapper which converts a result row into an object.

Author:
graywatson

Method Summary
 T mapRow(DatabaseResults results)
          Used to convert a results row to an object.
 

Method Detail

mapRow

T mapRow(DatabaseResults results)
         throws SQLException
Used to convert a results row to an object.

Parameters:
results - Results object we are mapping.
Returns:
The created object with all of the fields set from the results;
Throws:
SQLException - If we could not get the SQL results or instantiate the object.


This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.