Package org.axonframework.common.jdbc
Interface ConnectionProvider
- All Known Implementing Classes:
DataSourceConnectionProvider,SpringDataSourceConnectionProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface towards a mechanism that provides access to a JDBC Connection.
- Since:
- 2.2
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionReturns a connection, ready for use.
-
Method Details
-
getConnection
Returns a connection, ready for use.- Returns:
- a new connection to use
- Throws:
SQLException- when an error occurs obtaining the connection
-