Package com.mchange.v2.c3p0
Class WrapperConnectionPoolDataSource
- java.lang.Object
-
- com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
-
- com.mchange.v2.c3p0.impl.IdentityTokenResolvable
-
- com.mchange.v2.c3p0.impl.WrapperConnectionPoolDataSourceBase
-
- com.mchange.v2.c3p0.WrapperConnectionPoolDataSource
-
- All Implemented Interfaces:
IdentityTokenized
,java.io.Serializable
,javax.naming.Referenceable
,javax.sql.CommonDataSource
,javax.sql.ConnectionPoolDataSource
public final class WrapperConnectionPoolDataSource extends WrapperConnectionPoolDataSourceBase implements javax.sql.ConnectionPoolDataSource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mchange.v2.c3p0.impl.WrapperConnectionPoolDataSourceBase
pcs, vcs
-
-
Constructor Summary
Constructors Constructor Description WrapperConnectionPoolDataSource()
WrapperConnectionPoolDataSource(boolean autoregister)
WrapperConnectionPoolDataSource(java.lang.String configName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
extraToStringInfo()
int
getLoginTimeout()
java.io.PrintWriter
getLogWriter()
java.lang.String
getPassword()
javax.sql.PooledConnection
getPooledConnection()
protected javax.sql.PooledConnection
getPooledConnection(ConnectionCustomizer cc, java.lang.String pdsIdt)
javax.sql.PooledConnection
getPooledConnection(java.lang.String user, java.lang.String password)
protected javax.sql.PooledConnection
getPooledConnection(java.lang.String user, java.lang.String password, ConnectionCustomizer cc, java.lang.String pdsIdt)
java.lang.String
getUser()
java.util.Map
getUserOverrides()
void
setLoginTimeout(int seconds)
void
setLogWriter(java.io.PrintWriter out)
java.lang.String
toString()
-
Methods inherited from class com.mchange.v2.c3p0.impl.WrapperConnectionPoolDataSourceBase
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, getAcquireIncrement, getAcquireRetryAttempts, getAcquireRetryDelay, getAutomaticTestTable, getCheckoutTimeout, getConnectionCustomizerClassName, getConnectionIsValidTimeout, getConnectionTesterClassName, getContextClassLoaderSource, getFactoryClassLocation, getIdentityToken, getIdleConnectionTestPeriod, getInitialPoolSize, getMarkSessionBoundaries, getMaxAdministrativeTaskTime, getMaxConnectionAge, getMaxIdleTime, getMaxIdleTimeExcessConnections, getMaxPoolSize, getMaxStatements, getMaxStatementsPerConnection, getMinPoolSize, getNestedDataSource, getOverrideDefaultPassword, getOverrideDefaultUser, getParentLogger, getPreferredTestQuery, getPropertyChangeListeners, getPropertyChangeSupport, getPropertyCycle, getReference, getStatementCacheNumDeferredCloseThreads, getTaskRunnerFactoryClassName, getUnreturnedConnectionTimeout, getUserOverridesAsString, getVetoableChangeListeners, getVetoableChangeSupport, isAttemptResurrectOnCheckin, isAutoCommitOnClose, isBreakAfterAcquireFailure, isDebugUnreturnedConnectionStackTraces, isForceIgnoreUnresolvedTransactions, isForceSynchronousCheckins, isPrivilegeSpawnedThreads, isTestConnectionOnCheckin, isTestConnectionOnCheckout, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setAcquireIncrement, setAcquireRetryAttempts, setAcquireRetryDelay, setAttemptResurrectOnCheckin, setAutoCommitOnClose, setAutomaticTestTable, setBreakAfterAcquireFailure, setCheckoutTimeout, setConnectionCustomizerClassName, setConnectionIsValidTimeout, setConnectionTesterClassName, setContextClassLoaderSource, setDebugUnreturnedConnectionStackTraces, setFactoryClassLocation, setForceIgnoreUnresolvedTransactions, setForceSynchronousCheckins, setIdentityToken, setIdleConnectionTestPeriod, setInitialPoolSize, setMarkSessionBoundaries, setMaxAdministrativeTaskTime, setMaxConnectionAge, setMaxIdleTime, setMaxIdleTimeExcessConnections, setMaxPoolSize, setMaxStatements, setMaxStatementsPerConnection, setMinPoolSize, setNestedDataSource, setOverrideDefaultPassword, setOverrideDefaultUser, setPreferredTestQuery, setPrivilegeSpawnedThreads, setPropertyCycle, setStatementCacheNumDeferredCloseThreads, setTaskRunnerFactoryClassName, setTestConnectionOnCheckin, setTestConnectionOnCheckout, setUnreturnedConnectionTimeout, setUserOverridesAsString
-
Methods inherited from class com.mchange.v2.c3p0.impl.IdentityTokenResolvable
doResolve, readResolve, verifyResolve
-
Methods inherited from class com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
- Specified by:
getPooledConnection
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getPooledConnection
protected javax.sql.PooledConnection getPooledConnection(ConnectionCustomizer cc, java.lang.String pdsIdt) throws java.sql.SQLException
- Specified by:
getPooledConnection
in classWrapperConnectionPoolDataSourceBase
- Throws:
java.sql.SQLException
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
- Specified by:
getPooledConnection
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getPooledConnection
protected javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password, ConnectionCustomizer cc, java.lang.String pdsIdt) throws java.sql.SQLException
- Specified by:
getPooledConnection
in classWrapperConnectionPoolDataSourceBase
- Throws:
java.sql.SQLException
-
getLogWriter
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
- Specified by:
getLogWriter
in interfacejavax.sql.CommonDataSource
- Specified by:
getLogWriter
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
setLogWriter
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
- Specified by:
setLogWriter
in interfacejavax.sql.CommonDataSource
- Specified by:
setLogWriter
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) throws java.sql.SQLException
- Specified by:
setLoginTimeout
in interfacejavax.sql.CommonDataSource
- Specified by:
setLoginTimeout
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getLoginTimeout
public int getLoginTimeout() throws java.sql.SQLException
- Specified by:
getLoginTimeout
in interfacejavax.sql.CommonDataSource
- Specified by:
getLoginTimeout
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getUser
public java.lang.String getUser()
-
getPassword
public java.lang.String getPassword()
-
getUserOverrides
public java.util.Map getUserOverrides()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classWrapperConnectionPoolDataSourceBase
-
extraToStringInfo
protected java.lang.String extraToStringInfo()
- Overrides:
extraToStringInfo
in classWrapperConnectionPoolDataSourceBase
-
-