Uses of Interface
guru.mikelue.jdut.jdbc.JdbcSupplier
-
Packages that use JdbcSupplier Package Description guru.mikelue.jdut.jdbc This package provides coding library of JDBC by usage of lambda expression.
When we are coding database operations with JDBC, there are two things important, and, annoying: The handling ofSQLException
The release of resource This package is intent on "surrounding" your JDBC code by lambda expressions.guru.mikelue.jdut.jdbc.function This package contains out-of-box builder forJdbcSupplier
orJdbcRunnable
on processing ofResultSet
,Statement
, etc. -
-
Uses of JdbcSupplier in guru.mikelue.jdut.jdbc
Methods in guru.mikelue.jdut.jdbc that return JdbcSupplier Modifier and Type Method Description static <T extends AutoCloseable,R>
JdbcSupplier<R>JdbcTemplateFactory. buildSupplier(JdbcSupplier<? extends T> supplier, JdbcFunction<T,R> worker)
Builds the supplier and work for JDBC operation.static <T extends AutoCloseable,R>
JdbcSupplier<R>JdbcTemplateFactory. buildSupplier(JdbcSupplier<? extends T> supplier, JdbcFunction<T,R> worker, SurroundingConfig<T,R> surroundingConfig)
Builds the supplier and work for JDBC operation.Methods in guru.mikelue.jdut.jdbc with parameters of type JdbcSupplier Modifier and Type Method Description static <T extends AutoCloseable>
JdbcRunnableJdbcTemplateFactory. buildRunnable(JdbcSupplier<? extends T> supplier, JdbcVoidFunction<T> worker)
Builds the runnable and work for JDBC operation.static <T extends AutoCloseable>
JdbcRunnableJdbcTemplateFactory. buildRunnable(JdbcSupplier<? extends T> supplier, JdbcVoidFunction<T> worker, SurroundingConfig<T,Void> surroundingConfig)
Builds the runnable and work for JDBC operation.static <T extends AutoCloseable,R>
JdbcSupplier<R>JdbcTemplateFactory. buildSupplier(JdbcSupplier<? extends T> supplier, JdbcFunction<T,R> worker)
Builds the supplier and work for JDBC operation.static <T extends AutoCloseable,R>
JdbcSupplier<R>JdbcTemplateFactory. buildSupplier(JdbcSupplier<? extends T> supplier, JdbcFunction<T,R> worker, SurroundingConfig<T,R> surroundingConfig)
Builds the supplier and work for JDBC operation. -
Uses of JdbcSupplier in guru.mikelue.jdut.jdbc.function
Methods in guru.mikelue.jdut.jdbc.function that return JdbcSupplier Modifier and Type Method Description static <T> JdbcSupplier<T>
DbResultSet. buildSupplier(Connection conn, String sql, JdbcFunction<? super ResultSet,? extends T> supplier)
Builds supplier by connection and SQL string.
This method would useStatement.executeQuery(java.lang.String)
for getting result set.static <T> JdbcSupplier<T>
DbResultSet. buildSupplier(Statement statement, String sql, JdbcFunction<? super ResultSet,? extends T> supplier)
Builds supplier byStatement
and SQL string.
This method would useStatement.executeQuery(java.lang.String)
for getting result set.static <T> JdbcSupplier<T>
DbStatement. buildSupplierForPreparedStatement(Connection conn, String sql, List<Object> values, Function<Object,JDBCType> jdbcTypeMapping, JdbcFunction<? super PreparedStatement,? extends T> supplier)
Builds supplier to set-upPreparedStatement
and fed it to function.static <T> JdbcSupplier<T>
DbStatement. buildSupplierForPreparedStatement(Connection conn, String sql, List<String> nameOfColumns, DataRow dataRow, JdbcFunction<? super PreparedStatement,? extends T> supplier)
Builds supplier to set-upPreparedStatement
and fed it to function.static <T> JdbcSupplier<T>
DbStatement. buildSupplierForStatement(Connection conn, JdbcFunction<? super Statement,? extends T> supplier)
Builds supplier to set-upStatement
and fed it to function.
-