|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.subject.provider.DbcpJdbcConnectionProvider
public class DbcpJdbcConnectionProvider
dbcp pooling for subject api (legacy, should usually only be used if c3p0 has a problem)
Nested Class Summary | |
---|---|
static class |
DbcpJdbcConnectionProvider.DbcpJdbcConnectionBean
bean to hold connection |
Constructor Summary | |
---|---|
DbcpJdbcConnectionProvider()
|
Method Summary | |
---|---|
JdbcConnectionBean |
connectionBean()
get a connection (dont close this when done, just call "doneWithConnection()" |
void |
init(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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbcpJdbcConnectionProvider()
Method Detail |
---|
public JdbcConnectionBean connectionBean() throws SQLException
JdbcConnectionProvider
connectionBean
in interface JdbcConnectionProvider
SQLException
- if there is a problemJdbcConnectionProvider.connectionBean()
public void init(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
JdbcConnectionProvider
init
in interface JdbcConnectionProvider
sourceId
- 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 needed
SourceUnavailableException
- if something is not right or not availableJdbcConnectionProvider.init(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()
JdbcConnectionProvider
requiresJdbcConfigInSourcesXml
in interface JdbcConnectionProvider
JdbcConnectionProvider.requiresJdbcConfigInSourcesXml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |