Uses of Interface
guru.mikelue.jdut.jdbc.JdbcVoidFunction
-
Packages that use JdbcVoidFunction 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 JdbcVoidFunction in guru.mikelue.jdut.jdbc
Methods in guru.mikelue.jdut.jdbc that return JdbcVoidFunction Modifier and Type Method Description static <T> JdbcVoidFunction<T>
JdbcVoidFunction. fromJdbcFunction(JdbcFunction<T,?> jdbcFunction)
Creates this instance fromJdbcFunction
.Methods in guru.mikelue.jdut.jdbc with parameters of type JdbcVoidFunction 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. -
Uses of JdbcVoidFunction in guru.mikelue.jdut.jdbc.function
Methods in guru.mikelue.jdut.jdbc.function with parameters of type JdbcVoidFunction Modifier and Type Method Description static JdbcRunnable
DbResultSet. buildRunnable(Connection conn, String sql, JdbcVoidFunction<? super ResultSet> executor)
Builds runnable by connection and SQL string.
This method would useStatement.executeQuery(java.lang.String)
for getting result set.static JdbcRunnable
DbResultSet. buildRunnable(Statement statement, String sql, JdbcVoidFunction<? super ResultSet> executor)
Builds runnable byStatement
and SQL string.
This method would useStatement.executeQuery(java.lang.String)
for getting result set.static JdbcRunnable
DbStatement. buildRunnableForPreparedStatement(Connection conn, String sql, List<Object> values, Function<Object,JDBCType> jdbcTypeMapping, JdbcVoidFunction<? super PreparedStatement> executor)
Builds runnable to set-upPreparedStatement
and fed it to void function.static JdbcRunnable
DbStatement. buildRunnableForPreparedStatement(Connection conn, String sql, List<String> nameOfColumns, DataRow dataRow, JdbcVoidFunction<? super PreparedStatement> executor)
Builds runnable to set-upPreparedStatement
and fed it to void function.static JdbcRunnable
DbStatement. buildRunnableForStatement(Connection conn, JdbcVoidFunction<? super Statement> executor)
Builds runnable to set-upStatement
and fed it to void function.
-