public class C3p0JdbcConnectionProvider extends Object implements JdbcConnectionProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean
bean to hold connection
|
| Constructor and Description |
|---|
C3p0JdbcConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
JdbcConnectionBean |
connectionBean()
get a connection (dont close this when done, just call "doneWithConnection()"
|
protected void |
finalize() |
void |
init(Properties properties,
String sourceId,
String driver,
Integer maxActive,
int defaultMaxActive,
Integer maxIdle,
int defaultMaxIdle,
Integer maxWaitSeconds,
int defaultMaxWaitSeconds,
String dbUrl,
String dbUser,
String dbPassword,
Boolean readOnly,
boolean readOnlyDefault)
init the pool
|
boolean |
requiresJdbcConfigInSourcesXml()
if the provider requires jdbc data in the sources.xml
|
public JdbcConnectionBean connectionBean() throws SQLException
JdbcConnectionProviderconnectionBean in interface JdbcConnectionProviderSQLException - if there is a problemJdbcConnectionProvider.connectionBean()protected void finalize()
throws Throwable
finalize in class ObjectThrowableObject.finalize()public void init(Properties properties, String sourceId, String driver, Integer maxActive, int defaultMaxActive, Integer maxIdle, int defaultMaxIdle, Integer maxWaitSeconds, int defaultMaxWaitSeconds, String dbUrl, String dbUser, String dbPassword, Boolean readOnly, boolean readOnlyDefault) throws SourceUnavailableException
JdbcConnectionProviderinit in interface JdbcConnectionProvidersourceId - mainly for loggingdriver - drivermaxActive - max active connection if pooldefaultMaxActive - if max active is needed, and blank, then use thismaxIdle - max idle connections if pooldefaultMaxIdle - if max is needed, and blank, then use thismaxWaitSeconds - max wait if pool empty in seconds. -1 means long timedefaultMaxWaitSeconds - if max wait is needed, and blank, then use this, -1 mean long timedbUrl - jdbc url of the databasedbUser - user to login to the databasedbPassword - password for the database (unencrypted)readOnly - if conn should be readonlyreadOnlyDefault - default if not specified and neededSourceUnavailableException - if something is not right or not availableJdbcConnectionProvider.init(Properties, java.lang.String, java.lang.String, java.lang.Integer, int, java.lang.Integer, int, java.lang.Integer, int, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean, boolean)public boolean requiresJdbcConfigInSourcesXml()
JdbcConnectionProviderrequiresJdbcConfigInSourcesXml in interface JdbcConnectionProviderJdbcConnectionProvider.requiresJdbcConfigInSourcesXml()Copyright © 2016 Internet2. All rights reserved.