Class C3P0Registry

java.lang.Object
com.mchange.v2.c3p0.C3P0Registry

public final class C3P0Registry extends Object
  • Constructor Details

    • C3P0Registry

      public C3P0Registry()
  • Method Details

    • markConfigRefreshed

      public static void markConfigRefreshed()
    • getDefaultConnectionTester

      public static ConnectionTester getDefaultConnectionTester()
    • getConnectionTester

      public static ConnectionTester getConnectionTester(String className)
    • getConnectionCustomizer

      public static ConnectionCustomizer getConnectionCustomizer(String className) throws SQLException
      Throws:
      SQLException
    • extensionsForToken

      public static Map extensionsForToken(String pooledDataSourceIdentityToken) throws NoSuchElementException, IllegalArgumentException
      Throws:
      NoSuchElementException
      IllegalArgumentException
    • reregister

      public static IdentityTokenized reregister(IdentityTokenized idt)
    • markClosed

      public static void markClosed(PooledDataSource pds)
    • getPooledDataSources

      public static Set getPooledDataSources()
    • pooledDataSourcesByName

      public static Set pooledDataSourcesByName(String dataSourceName)
      Returns:
      the set of all PooledDataSources sharing the given dataSourceName
    • pooledDataSourceByName

      public static PooledDataSource pooledDataSourceByName(String dataSourceName)
      Note: If multiple PooledDataSources in your JVM share the same dataSourceName, which of those multiple DataSources will be returned by this method is undefined!
      Returns:
      a PooledDataSource with the given dataSourceName, if at least one exists. null otherwise.
    • allIdentityTokens

      public static Set allIdentityTokens()
    • allIdentityTokenized

      public static Set allIdentityTokenized()
    • allPooledDataSources

      public static Set allPooledDataSources()
    • getNumPooledDataSources

      public static int getNumPooledDataSources()
    • getNumPoolsAllDataSources

      public static int getNumPoolsAllDataSources() throws SQLException
      Throws:
      SQLException
    • getNumThreadsAllThreadPools

      public int getNumThreadsAllThreadPools() throws SQLException
      Throws:
      SQLException
    • getConfigExtensionsForPooledDataSource

      public static Map getConfigExtensionsForPooledDataSource(String identityToken) throws SQLException
      Throws:
      SQLException