public class ListResultParser<T> extends Object implements ResultParser<List<T>>
| Modifier and Type | Method and Description |
|---|---|
static <E> ListResultParser<E> |
of(Class<E> clazz) |
static <E> ListResultParser<E> |
of(RowParser<E> rowParser)
Define your own RowParser.
|
List<T> |
parseResultSet(ResultSet resultSet) |
public static <E> ListResultParser<E> of(RowParser<E> rowParser)
E - The type the RowParser will returnrowParser - The RowParser to usepublic static <E> ListResultParser<E> of(Class<E> clazz)
public List<T> parseResultSet(ResultSet resultSet) throws Exception
parseResultSet in interface ResultParser<List<T>>ExceptionCopyright © 2018. All rights reserved.