T - the type a row is converted to@FunctionalInterface public interface RowProcessor<T>
ResultSet to an instance of T| Modifier and Type | Method and Description |
|---|---|
static <T> RowProcessor<T> |
firstColumn() |
static <T> RowProcessor<T> |
firstColumn(Class<T> objectClass) |
T |
handle(ResultSet resultSet) |
static <T> RowProcessor<Optional<T>> |
optional(RowProcessor<T> rowProcessor) |
T handle(ResultSet resultSet) throws Exception
resultSet - already pointing to the row to be processedException - if something goes wrongstatic <T> RowProcessor<T> firstColumn()
T - the type to convert the column toRowProcessor that gets the first column of the rowColumnRowProcessorstatic <T> RowProcessor<T> firstColumn(Class<T> objectClass)
T - the type to convert the column toobjectClass - Specify the class when a conversion is necessaryRowProcessor that gets the first column of the rowColumnRowProcessorstatic <T> RowProcessor<Optional<T>> optional(RowProcessor<T> rowProcessor)
T - the type a row is converted torowProcessor - performs the processingOptionalCopyright © 2014. All rights reserved.