Class NonPooledConnectionProvider
java.lang.Object
edu.internet2.middleware.grouperClient.config.NonPooledConnectionProvider
- All Implemented Interfaces:
GcJdbcConnectionProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
bean to hold connection -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget a connection (dont close this when done, just call "doneWithConnection()"void
init
(Properties properties, String sourceId, String driver, Integer maxActive, int defaultMaxActive, Integer maxIdle, int defaultMaxIdle, Integer maxWaitSeconds, int defaultMaxWaitSeconds, String theDbUrl, String theDbUser, String theDbPassword, Boolean readOnly, boolean readOnlyDefault, String jdbcConfigId) init the poolboolean
if the provider requires jdbc data in the subject.properties
-
Constructor Details
-
NonPooledConnectionProvider
public NonPooledConnectionProvider()
-
-
Method Details
-
connectionBean
Description copied from interface:GcJdbcConnectionProvider
get a connection (dont close this when done, just call "doneWithConnection()"- Specified by:
connectionBean
in interfaceGcJdbcConnectionProvider
- Returns:
- the connection
- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionProvider#connectionBean()
-
init
public void init(Properties properties, String sourceId, String driver, Integer maxActive, int defaultMaxActive, Integer maxIdle, int defaultMaxIdle, Integer maxWaitSeconds, int defaultMaxWaitSeconds, String theDbUrl, String theDbUser, String theDbPassword, Boolean readOnly, boolean readOnlyDefault, String jdbcConfigId) Description copied from interface:GcJdbcConnectionProvider
init the pool- Specified by:
init
in interfaceGcJdbcConnectionProvider
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 timetheDbUrl
- jdbc url of the databasetheDbUser
- user to login to the databasetheDbPassword
- 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- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionProvider#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)
-
requiresJdbcConfigInSourcesXml
public boolean requiresJdbcConfigInSourcesXml()Description copied from interface:GcJdbcConnectionProvider
if the provider requires jdbc data in the subject.properties- Specified by:
requiresJdbcConfigInSourcesXml
in interfaceGcJdbcConnectionProvider
- Returns:
- true if provider requires data in subject.properties
- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionProvider#requiresJdbcConfigInSourcesXml()
-