public final class C3p0ConnectionProviderPlugin extends AbstractSqlConnectionProviderPlugin
Utiliser une DataSource| Constructor and Description |
|---|
C3p0ConnectionProviderPlugin(Option<String> name,
String dataBaseClass,
String jdbcDriver,
String jdbcUrl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SqlConnection |
obtainConnection() |
getDataBase, getInfos, getName@Inject
public C3p0ConnectionProviderPlugin(@Named(value="name")
Option<String> name,
@Named(value="dataBaseClass")
String dataBaseClass,
@Named(value="jdbcDriver")
String jdbcDriver,
@Named(value="jdbcUrl")
String jdbcUrl)
name - the name of the connectionProviderdataBaseClass - the type of databasejdbcDriver - the class of the jdbc driverjdbcUrl - the jdbc urlpublic SqlConnection obtainConnection() throws SQLException
SQLExceptionCopyright © 2016. All Rights Reserved.