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
ConstructorsConstructorDescriptionDriverManagerConnectionProvider(@NotNull String url, @Nullable String user, @Nullable String password) -
Method Summary
Modifier and TypeMethodDescription@NotNull ConnectionvoidreleaseConnection(@NotNull Connection connection)
-
Constructor Details
-
DriverManagerConnectionProvider
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceConnectionProvider- Throws:
SQLException
-
releaseConnection
- Specified by:
releaseConnectionin interfaceConnectionProvider- Throws:
SQLException
-