K
- The type of the keysV
- The type of the valuespublic class MapResultSetHandler<K,V> extends Object implements ResultSetHandler<Map<K,V>>
VOID
Constructor and Description |
---|
MapResultSetHandler(FunctionWithException<ResultSet,K> keyExtractor,
RowProcessor<V> rowProcessor) |
Modifier and Type | Method and Description |
---|---|
static <U> FunctionWithException<ResultSet,U> |
column(String column,
Class<U> columnClass)
Extracts the key from a single column.
|
Map<K,V> |
handle(ResultSet rs)
Turn the
ResultSet into an instance of T. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
list, map, optional, single
public MapResultSetHandler(FunctionWithException<ResultSet,K> keyExtractor, RowProcessor<V> rowProcessor)
public static <U> FunctionWithException<ResultSet,U> column(String column, Class<U> columnClass)
U
- the type of the instancecolumn
- the name of the column to extract the key fromcolumnClass
- the type of the columnCopyright © 2014. All rights reserved.