Class NonPooledConnectionProvider

java.lang.Object
edu.internet2.middleware.grouperClient.config.NonPooledConnectionProvider
All Implemented Interfaces:
GcJdbcConnectionProvider

public class NonPooledConnectionProvider extends Object implements GcJdbcConnectionProvider
  • Constructor Details

    • NonPooledConnectionProvider

      public NonPooledConnectionProvider()
  • Method Details

    • connectionBean

      public GcJdbcConnectionBean connectionBean()
      Description copied from interface: GcJdbcConnectionProvider
      get a connection (dont close this when done, just call "doneWithConnection()"
      Specified by:
      connectionBean in interface GcJdbcConnectionProvider
      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 interface GcJdbcConnectionProvider
      sourceId - mainly for logging
      driver - driver
      maxActive - max active connection if pool
      defaultMaxActive - if max active is needed, and blank, then use this
      maxIdle - max idle connections if pool
      defaultMaxIdle - if max is needed, and blank, then use this
      maxWaitSeconds - max wait if pool empty in seconds. -1 means long time
      defaultMaxWaitSeconds - if max wait is needed, and blank, then use this, -1 mean long time
      theDbUrl - jdbc url of the database
      theDbUser - user to login to the database
      theDbPassword - password for the database (unencrypted)
      readOnly - if conn should be readonly
      readOnlyDefault - default if not specified and needed
      jdbcConfigId - 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 interface GcJdbcConnectionProvider
      Returns:
      true if provider requires data in subject.properties
      See Also:
      • edu.internet2.middleware.subject.provider.JdbcConnectionProvider#requiresJdbcConfigInSourcesXml()