Uses of Interface
guru.mikelue.jdut.jdbc.JdbcRunnable
-
Packages that use JdbcRunnable 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 ofSQLExceptionThe 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 forJdbcSupplierorJdbcRunnableon processing ofResultSet,Statement, etc. -
-
Uses of JdbcRunnable in guru.mikelue.jdut.jdbc
Methods in guru.mikelue.jdut.jdbc that return JdbcRunnable 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 JdbcRunnable in guru.mikelue.jdut.jdbc.function
Methods in guru.mikelue.jdut.jdbc.function that return JdbcRunnable Modifier and Type Method Description static JdbcRunnableDbResultSet. 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 JdbcRunnableDbResultSet. buildRunnable(Statement statement, String sql, JdbcVoidFunction<? super ResultSet> executor)Builds runnable byStatementand SQL string.
This method would useStatement.executeQuery(java.lang.String)for getting result set.static JdbcRunnableDbStatement. buildRunnableForPreparedStatement(Connection conn, String sql, List<Object> values, Function<Object,JDBCType> jdbcTypeMapping, JdbcVoidFunction<? super PreparedStatement> executor)Builds runnable to set-upPreparedStatementand fed it to void function.static JdbcRunnableDbStatement. buildRunnableForPreparedStatement(Connection conn, String sql, List<String> nameOfColumns, DataRow dataRow, JdbcVoidFunction<? super PreparedStatement> executor)Builds runnable to set-upPreparedStatementand fed it to void function.static JdbcRunnableDbStatement. buildRunnableForStatement(Connection conn, JdbcVoidFunction<? super Statement> executor)Builds runnable to set-upStatementand fed it to void function.
-