Package org.dalesbred.connection
Class DriverManagerConnectionProvider
java.lang.Object
org.dalesbred.connection.DriverManagerConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
ConnectionProvider
that works opens connections from DriverManager
and closes them when releasing.-
Constructor Summary
ConstructorDescriptionDriverManagerConnectionProvider
(@NotNull String url, @Nullable String user, @Nullable String password) -
Method Summary
Modifier and TypeMethodDescription@NotNull Connection
void
releaseConnection
(@NotNull Connection connection)
-
Constructor Details
-
DriverManagerConnectionProvider
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceConnectionProvider
- Throws:
SQLException
-
releaseConnection
- Specified by:
releaseConnection
in interfaceConnectionProvider
- Throws:
SQLException
-