Package org.dalesbred.connection
Class DataSourceConnectionProvider
- java.lang.Object
-
- org.dalesbred.connection.DataSourceConnectionProvider
-
- All Implemented Interfaces:
ConnectionProvider
public final class DataSourceConnectionProvider extends java.lang.Object implements ConnectionProvider
ConnectionProviderthat works on top ofDataSource.
-
-
Constructor Summary
Constructors Constructor Description DataSourceConnectionProvider(@NotNull javax.sql.DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.sql.ConnectiongetConnection()voidreleaseConnection(@NotNull java.sql.Connection connection)
-
-
-
Method Detail
-
getConnection
@NotNull public @NotNull java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
getConnectionin interfaceConnectionProvider- Throws:
java.sql.SQLException
-
releaseConnection
public void releaseConnection(@NotNull @NotNull java.sql.Connection connection) throws java.sql.SQLException- Specified by:
releaseConnectionin interfaceConnectionProvider- Throws:
java.sql.SQLException
-
-