Interface SQLManager.ConnectionFunction<T>
- Enclosing class:
SQLManager
- 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 for connection functions that may throw SQLException.
-
Method Summary
Modifier and TypeMethodDescriptionapply(Connection connection) Performs an operation using the given connection and returns a result.
-
Method Details
-
apply
Performs an operation using the given connection and returns a result.- Parameters:
connection- the database connection- Returns:
- the result
- Throws:
SQLException- if a database error occurs
-