public class C3p0Plugin extends Object implements IPlugin, IDataSourceProvider
Constructor and Description |
---|
C3p0Plugin(File propertyfile) |
C3p0Plugin(Properties properties) |
C3p0Plugin(String jdbcUrl,
String user,
String password) |
C3p0Plugin(String jdbcUrl,
String user,
String password,
String driverClass) |
C3p0Plugin(String jdbcUrl,
String user,
String password,
String driverClass,
Integer maxPoolSize,
Integer minPoolSize,
Integer initialPoolSize,
Integer maxIdleTime,
Integer acquireIncrement) |
Modifier and Type | Method and Description |
---|---|
com.mchange.v2.c3p0.ComboPooledDataSource |
getComboPooledDataSource() |
DataSource |
getDataSource() |
C3p0Plugin |
setAcquireIncrement(int acquireIncrement) |
C3p0Plugin |
setDriverClass(String driverClass) |
C3p0Plugin |
setInitialPoolSize(int initialPoolSize) |
C3p0Plugin |
setMaxIdleTime(int maxIdleTime) |
C3p0Plugin |
setMaxPoolSize(int maxPoolSize) |
C3p0Plugin |
setMinPoolSize(int minPoolSize) |
boolean |
start() |
boolean |
stop() |
public C3p0Plugin(String jdbcUrl, String user, String password, String driverClass, Integer maxPoolSize, Integer minPoolSize, Integer initialPoolSize, Integer maxIdleTime, Integer acquireIncrement)
public C3p0Plugin(File propertyfile)
public C3p0Plugin(Properties properties)
public C3p0Plugin setDriverClass(String driverClass)
public C3p0Plugin setMaxPoolSize(int maxPoolSize)
public C3p0Plugin setMinPoolSize(int minPoolSize)
public C3p0Plugin setInitialPoolSize(int initialPoolSize)
public C3p0Plugin setMaxIdleTime(int maxIdleTime)
public C3p0Plugin setAcquireIncrement(int acquireIncrement)
public DataSource getDataSource()
getDataSource
in interface IDataSourceProvider
public com.mchange.v2.c3p0.ComboPooledDataSource getComboPooledDataSource()
Copyright © 2018. All rights reserved.