Interface ConnectionSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies database connections to the store: the server's pool in production (
DBUtilities::getPooledConnection), an in-memory database in a test.A connection obtained here is closed by the store when it is done, which returns a pooled connection to its pool.
- Author:
- Christopher Mindus
Method Summary
Method Details
open
Opens a connection.- Returns:
- The connection, never null.
- Throws:
SQLException- If no connection can be obtained.