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