Class C3p0JdbcConnectionProvider
java.lang.Object
edu.internet2.middleware.subject.provider.C3p0JdbcConnectionProvider
- All Implemented Interfaces:
GcJdbcConnectionProvider,JdbcConnectionProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classbean to hold connection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget a connection (dont close this when done, just call "doneWithConnection()"protected voidfinalize()voidinit(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, String jdbcConfigId) init the poolbooleanif the provider requires jdbc data in the subject.properties
-
Constructor Details
-
C3p0JdbcConnectionProvider
public C3p0JdbcConnectionProvider()
-
-
Method Details
-
connectionBean
Description copied from interface:GcJdbcConnectionProviderget a connection (dont close this when done, just call "doneWithConnection()"- Specified by:
connectionBeanin interfaceGcJdbcConnectionProvider- Specified by:
connectionBeanin interfaceJdbcConnectionProvider- Returns:
- the connection
- Throws:
SQLException- if there is a problem- See Also:
-
finalize
-
init
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, String jdbcConfigId) throws SourceUnavailableException Description copied from interface:GcJdbcConnectionProviderinit the pool- Specified by:
initin interfaceGcJdbcConnectionProvidersourceId- 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 neededjdbcConfigId- if blank or "grouper" then its the grouper database, otherwise its the configId in the grouper-loader.properties database entry- Throws:
SourceUnavailableException- See Also:
-
requiresJdbcConfigInSourcesXml
public boolean requiresJdbcConfigInSourcesXml()Description copied from interface:GcJdbcConnectionProviderif the provider requires jdbc data in the subject.properties- Specified by:
requiresJdbcConfigInSourcesXmlin interfaceGcJdbcConnectionProvider- Returns:
- true if provider requires data in subject.properties
- See Also:
-