Package com.blackrook.sql.util
Interface SQLTransactionFunction<R>
- Type Parameters:
R
- the result type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A special consumer that takes a SQLTransaction, but throws
SQLException
s.-
Method Summary
Modifier and TypeMethodDescriptionapply
(SQLConnection.Transaction transaction) Accepts the transaction, does something with it, and returns a result.
-
Method Details
-
apply
Accepts the transaction, does something with it, and returns a result.- Parameters:
transaction
- the open connection.- Returns:
- the result from the call.
- Throws:
SQLException
- if a SQLException occurs.
-