Interface Database.DatabaseOperation
- 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.
Functional interface used by transaction helpers.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Connection conn) Execute database operations using the provided connection.
-
Method Details
-
execute
Execute database operations using the provided connection. Implementations must use the suppliedconnfor all statements so they participate in the surrounding transaction.- Parameters:
conn- active JDBC connection- Throws:
SQLException- when a database error occurs
-