Interface Database.TransactionCode
- Enclosing class:
Database
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Backwards-compatible alias used in some places in the codebase.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Connection conn) Execute transactional code using the provided connection.
-
Method Details
-
execute
Execute transactional code using the provided connection.- Parameters:
conn- active JDBC connection- Throws:
SQLException- on database errors
-