Package org.r10r.sqlify.resultparser
Class SingleResultParser<T>
- java.lang.Object
-
- org.r10r.sqlify.resultparser.SingleResultParser<T>
-
- All Implemented Interfaces:
ResultParser<T>
public class SingleResultParser<T> extends Object implements ResultParser<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> SingleResultParser<E>of(Class<E> clazz)static <E> SingleResultParser<E>of(RowParser<E> rowParser)Define your own RowParser.TparseResultSet(ResultSet resultSet)
-
-
-
Method Detail
-
of
public static <E> SingleResultParser<E> of(RowParser<E> rowParser)
Define your own RowParser. Full flexibility.- Type Parameters:
E- The type the RowParser will return- Parameters:
rowParser- The RowParser to use- Returns:
- The ListResultParser that will use the defined RowParser to parse rows.
-
of
public static <E> SingleResultParser<E> of(Class<E> clazz)
-
parseResultSet
public T parseResultSet(ResultSet resultSet) throws Exception
- Specified by:
parseResultSetin interfaceResultParser<T>- Throws:
Exception
-
-