Package com.mchange.v2.c3p0
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:
IdentityTokenized
,Serializable
,Wrapper
,Referenceable
,CommonDataSource
,DataSource
public final class DriverManagerDataSource
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) int
getUser()
boolean
isWrapperFor
(Class<?> iface) void
setJdbcUrl
(String jdbcUrl) void
setLoginTimeout
(int seconds) void
setLogWriter
(PrintWriter out) void
setPassword
(String password) void
<T> T
Methods 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, toString
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
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
DriverManagerDataSource
public DriverManagerDataSource() -
DriverManagerDataSource
public DriverManagerDataSource(boolean autoregister)
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getLogWriter
- Specified by:
getLogWriter
in interfaceCommonDataSource
- Specified by:
getLogWriter
in interfaceDataSource
- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriter
in interfaceCommonDataSource
- Specified by:
setLogWriter
in interfaceDataSource
- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Specified by:
getLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Specified by:
setLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
setJdbcUrl
- Overrides:
setJdbcUrl
in classDriverManagerDataSourceBase
-
setUser
-
getUser
-
setPassword
-
getPassword
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-