Package guru.mikelue.jdut.jdbc
Interface JdbcRunnable
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface JdbcRunnable
Likes theRunnableinterface with throwing ofSQLException.- See Also:
JdbcSupplier,JdbcFunction,SQLExceptionConvert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RunnableasRunnable()Converts this expression toRunnable.default <E extends RuntimeException>
RunnableasRunnable(SQLExceptionConvert<E> exceptionConvert)Converts this expression toRunnable, with customizedSQLExceptionConvert.voidrunJdbc()Executes code of JDBC with throwing ofSQLException.
-
-
-
Method Detail
-
asRunnable
default Runnable asRunnable()
Converts this expression toRunnable.- Returns:
- The runnable with
SQLExceptionConvert::runtimeException - See Also:
asRunnable(SQLExceptionConvert)
-
asRunnable
default <E extends RuntimeException> Runnable asRunnable(SQLExceptionConvert<E> exceptionConvert)
Converts this expression toRunnable, with customizedSQLExceptionConvert.- Type Parameters:
E- The type of exception to be generated by- Parameters:
exceptionConvert- The instance for convertingSQLExceptionto exception of type <E>- Returns:
- The runnable with
SQLExceptionConvert - See Also:
asRunnable()
-
runJdbc
void runJdbc() throws SQLExceptionExecutes code of JDBC with throwing ofSQLException.- Throws:
SQLException- eliminate the exception block of JDBC
-
-