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 theRunnable
interface with throwing ofSQLException
.- See Also:
JdbcSupplier
,JdbcFunction
,SQLExceptionConvert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Runnable
asRunnable()
Converts this expression toRunnable
.default <E extends RuntimeException>
RunnableasRunnable(SQLExceptionConvert<E> exceptionConvert)
Converts this expression toRunnable
, with customizedSQLExceptionConvert
.void
runJdbc()
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 convertingSQLException
to exception of type <E>- Returns:
- The runnable with
SQLExceptionConvert
- See Also:
asRunnable()
-
runJdbc
void runJdbc() throws SQLException
Executes code of JDBC with throwing ofSQLException
.- Throws:
SQLException
- eliminate the exception block of JDBC
-
-