Package org.sql2o.connectionsources
Class DataSourceConnectionSource
java.lang.Object
org.sql2o.connectionsources.DataSourceConnectionSource
- All Implemented Interfaces:
ConnectionSource
The default implementation of
ConnectionSource
,
Simply delegates all calls to specified DataSource
Created by nickl on 09.01.17.-
Constructor Summary
ConstructorDescriptionDataSourceConnectionSource
(DataSource dataSource) Creates a ConnectionSource that gets connection from specifiedDataSource
-
Method Summary
-
Constructor Details
-
DataSourceConnectionSource
Creates a ConnectionSource that gets connection from specifiedDataSource
- Parameters:
dataSource
- a DataSource to get connections from
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceConnectionSource
- Throws:
SQLException
-
getDataSource
-