public class ListResultParser<T> extends java.lang.Object implements ResultParser<java.util.List<T>>
| Modifier and Type | Method and Description |
|---|---|
static <E> ListResultParser<E> |
of(java.lang.Class<E> clazz) |
static <E> ListResultParser<E> |
of(RowParser<E> rowParser)
Define your own RowParser.
|
java.util.List<T> |
parseResultSet(java.sql.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(java.lang.Class<E> clazz)
public java.util.List<T> parseResultSet(java.sql.ResultSet resultSet) throws java.lang.Exception
parseResultSet in interface ResultParser<java.util.List<T>>java.lang.ExceptionCopyright © 2018. All Rights Reserved.