Interface ResultHandler<T, E extends Throwable>
public interface ResultHandler<T, E extends Throwable>
ResultHandler
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescriptiondefault Tstatic <C> ResultHandler<C, RuntimeException> ofBean(BeanBuilder<C> beanBuilder) static <C> ResultHandler<C, RuntimeException> static <C> ResultHandler<C, RuntimeException> static <C, E extends Throwable>
ResultHandler<Void, E> ofBeanConsumer(BeanBuilder<C> beanBuilder, cool.scx.functional.ScxConsumer<C, E> consumer) static <C, E extends Throwable>
ResultHandler<Void, E> ofBeanConsumer(Class<C> clazz, cool.scx.functional.ScxConsumer<C, E> consumer) static <C, E extends Throwable>
ResultHandler<Void, E> ofBeanConsumer(Class<C> clazz, Function<Field, String> columnNameMapping, cool.scx.functional.ScxConsumer<C, E> consumer) static <C> ResultHandler<List<C>, RuntimeException> ofBeanList(BeanBuilder<C> beanBuilder) static <C> ResultHandler<List<C>, RuntimeException> ofBeanList(Class<C> clazz) static <C> ResultHandler<List<C>, RuntimeException> ofBeanList(Class<C> clazz, Function<Field, String> columnNameMapping) static ResultHandler<Map<String, Object>, RuntimeException> ofMap()static ResultHandler<Map<String, Object>, RuntimeException> ofMap(MapBuilder mapBuilder) static ResultHandler<Map<String, Object>, RuntimeException> static ResultHandler<Map<String, Object>, RuntimeException> static <E extends Throwable>
ResultHandler<Void, E> ofMapConsumer(cool.scx.functional.ScxConsumer<Map<String, Object>, E> consumer) static <E extends Throwable>
ResultHandler<Void, E> ofMapConsumer(MapBuilder mapBuilder, cool.scx.functional.ScxConsumer<Map<String, Object>, E> consumer) static <E extends Throwable>
ResultHandler<Void, E> ofMapConsumer(Function<String, String> fieldNameMapping, cool.scx.functional.ScxConsumer<Map<String, Object>, E> consumer) static <E extends Throwable>
ResultHandler<Void, E> ofMapConsumer(Supplier<Map<String, Object>> mapSupplier, cool.scx.functional.ScxConsumer<Map<String, Object>, E> consumer) static ResultHandler<List<Map<String, Object>>, RuntimeException> static ResultHandler<List<Map<String, Object>>, RuntimeException> ofMapList(MapBuilder mapBuilder) static ResultHandler<List<Map<String, Object>>, RuntimeException> static ResultHandler<List<Map<String, Object>>, RuntimeException> static <C> ResultHandler<C, RuntimeException> ofSingleValue(int columnIndex, Class<C> clazz) static <C> ResultHandler<C, RuntimeException> ofSingleValue(String columnName, Class<C> clazz)
-
Method Details
-
ofMap
-
ofMap
-
ofMap
static ResultHandler<Map<String,Object>, RuntimeException> ofMap(Supplier<Map<String, Object>> mapSupplier) -
ofMap
static ResultHandler<Map<String,Object>, RuntimeException> ofMap(Function<String, String> fieldNameMapping) -
ofMapList
-
ofMapList
-
ofMapList
static ResultHandler<List<Map<String,Object>>, RuntimeException> ofMapList(Supplier<Map<String, Object>> mapSupplier) -
ofMapList
static ResultHandler<List<Map<String,Object>>, RuntimeException> ofMapList(Function<String, String> fieldNameMapping) -
ofBean
-
ofBean
static <C> ResultHandler<C, RuntimeException> ofBean(Class<C> clazz, Function<Field, String> columnNameMapping) -
ofBean
-
ofBeanList
-
ofBeanList
static <C> ResultHandler<List<C>, RuntimeException> ofBeanList(Class<C> clazz, Function<Field, String> columnNameMapping) -
ofBeanList
-
ofBeanConsumer
static <C, E extends Throwable> ResultHandler<Void,E> ofBeanConsumer(Class<C> clazz, cool.scx.functional.ScxConsumer<C, E> consumer) -
ofBeanConsumer
-
ofBeanConsumer
static <C, E extends Throwable> ResultHandler<Void,E> ofBeanConsumer(BeanBuilder<C> beanBuilder, cool.scx.functional.ScxConsumer<C, E> consumer) -
ofMapConsumer
-
ofMapConsumer
static <E extends Throwable> ResultHandler<Void,E> ofMapConsumer(MapBuilder mapBuilder, cool.scx.functional.ScxConsumer<Map<String, Object>, E> consumer) -
ofMapConsumer
-
ofMapConsumer
-
ofSingleValue
-
ofSingleValue
-
apply
- Throws:
SQLExceptionE
-
apply
- Throws:
SQLExceptionE
-