Class DriverManagerDataSource
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.DriverManagerDataSource
- All Implemented Interfaces:
com.mchange.v2.c3p0.impl.IdentityTokenized, Serializable, Wrapper, Referenceable, CommonDataSource, DataSource
public final class DriverManagerDataSource
extends com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
implements DataSource
- See Also:
-
Field Summary
Fields inherited from class com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
description, driverClass, factoryClassLocation, jdbcUrl, pcs, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) intgetUser()booleanvoidsetJdbcUrl(String jdbcUrl) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidsetPassword(String password) voidMethods inherited from class com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
addPropertyChangeListener, addPropertyChangeListener, extraToStringInfo, getDescription, getDriverClass, getFactoryClassLocation, getIdentityToken, getJdbcUrl, getProperties, getPropertyChangeSupport, getReference, removePropertyChangeListener, removePropertyChangeListener, setDescription, setDriverClass, setFactoryClassLocation, 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 interface CommonDataSource
createShardingKeyBuilderMethods inherited from interface DataSource
createConnectionBuilder
-
Constructor Details
-
DriverManagerDataSource
public DriverManagerDataSource() -
DriverManagerDataSource
public DriverManagerDataSource(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 classcom.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
-
setUser
-
getUser
-
setPassword
-
getPassword
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-