Package com.mchange.v2.c3p0
Class C3P0Registry
java.lang.Object
com.mchange.v2.c3p0.C3P0Registry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Setstatic Setstatic Setstatic MapextensionsForToken(String pooledDataSourceIdentityToken) static MapgetConfigExtensionsForPooledDataSource(String identityToken) static ConnectionCustomizergetConnectionCustomizer(String className) static ConnectionTestergetConnectionTester(String className) static ConnectionTesterstatic intstatic intintstatic Setstatic voidstatic voidstatic PooledDataSourcepooledDataSourceByName(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!static SetpooledDataSourcesByName(String dataSourceName) static IdentityTokenized
-
Constructor Details
-
C3P0Registry
public C3P0Registry()
-
-
Method Details
-
markConfigRefreshed
public static void markConfigRefreshed() -
getDefaultConnectionTester
-
getConnectionTester
-
getConnectionCustomizer
- Throws:
SQLException
-
extensionsForToken
public static Map extensionsForToken(String pooledDataSourceIdentityToken) throws NoSuchElementException, IllegalArgumentException -
reregister
-
markClosed
-
getPooledDataSources
-
pooledDataSourcesByName
- Returns:
- the set of all PooledDataSources sharing the given dataSourceName
-
pooledDataSourceByName
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
-
allIdentityTokenized
-
allPooledDataSources
-
getNumPooledDataSources
public static int getNumPooledDataSources() -
getNumPoolsAllDataSources
- Throws:
SQLException
-
getNumThreadsAllThreadPools
- Throws:
SQLException
-
getConfigExtensionsForPooledDataSource
- Throws:
SQLException
-