public class BaseMapper<T extends BaseEntity> extends Object
Default mapper for converting a ResultSet to the respective Java entity.
| Constructor | Description |
|---|---|
BaseMapper(Class<T> clazz) |
public T map(ResultSet set)
ResultSet with a single row to a Java entity.set - The ResultSet to map.EmptyResultSetException - if the ResultSet is empty.
It is expected that a query that is supposed to return exactly one value, actually does.Copyright © 2018. All rights reserved.