Package com.mchange.v2.c3p0.test
Class FreezableDriverManagerDataSource
java.lang.Object
com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
com.mchange.v2.c3p0.impl.IdentityTokenResolvable
com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
com.mchange.v2.c3p0.test.FreezableDriverManagerDataSource
- All Implemented Interfaces:
IdentityTokenized,Serializable,Wrapper,Referenceable,CommonDataSource,DataSource
public final class FreezableDriverManagerDataSource
extends DriverManagerDataSourceBase
implements DataSource
- See Also:
-
Field Summary
Fields inherited from class com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
description, driverClass, factoryClassLocation, forceUseNamedDriverClass, jdbcUrl, pcs, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) intgetUser()booleanisWrapperFor(Class<?> iface) voidsetJdbcUrl(String jdbcUrl) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidsetPassword(String password) void<T> TMethods inherited from class com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
addPropertyChangeListener, addPropertyChangeListener, extraToStringInfo, getDescription, getDriverClass, getFactoryClassLocation, getIdentityToken, getJdbcUrl, getParentLogger, getProperties, getPropertyChangeListeners, getPropertyChangeSupport, getReference, isForceUseNamedDriverClass, removePropertyChangeListener, removePropertyChangeListener, setDescription, setDriverClass, setFactoryClassLocation, setForceUseNamedDriverClass, setIdentityToken, setProperties, toStringMethods inherited from class com.mchange.v2.c3p0.impl.IdentityTokenResolvable
doResolve, readResolve, verifyResolveMethods inherited from class com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
FreezableDriverManagerDataSource
public FreezableDriverManagerDataSource() -
FreezableDriverManagerDataSource
public FreezableDriverManagerDataSource(boolean autoregister)
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
setJdbcUrl
- Overrides:
setJdbcUrlin classDriverManagerDataSourceBase
-
setUser
-
getUser
-
setPassword
-
getPassword
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-