Class MySqlDataSource
- java.lang.Object
-
- org.springframework.jdbc.datasource.DelegatingDataSource
-
- jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource
-
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource,org.springframework.beans.factory.InitializingBean
public class MySqlDataSource extends org.springframework.jdbc.datasource.DelegatingDataSourceProduces connections wrapped by our classes (depend on the RDBMS type).
-
-
Constructor Summary
Constructors Constructor Description MySqlDataSource(DataSource targetDataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetConnection()ConnectiongetConnection(String username, String password)
-
-
-
Constructor Detail
-
MySqlDataSource
public MySqlDataSource(DataSource targetDataSource)
-
-
Method Detail
-
getConnection
public Connection getConnection(String username, String password) throws SQLException
- Specified by:
getConnectionin interfaceDataSource- Overrides:
getConnectionin classorg.springframework.jdbc.datasource.DelegatingDataSource- Throws:
SQLException
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfaceDataSource- Overrides:
getConnectionin classorg.springframework.jdbc.datasource.DelegatingDataSource- Throws:
SQLException
-
-