public class DriverManagerDataSource extends Object implements DataSource, Serializable, Referenceable
Modifier and Type | Class and Description |
---|---|
static class |
DriverManagerDataSource.DmdsObjectFactory
Deprecated.
|
Constructor and Description |
---|
DriverManagerDataSource(String jdbcUrl)
Deprecated.
|
DriverManagerDataSource(String jdbcUrl,
String dfltUser,
String dfltPassword)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Deprecated.
|
Connection |
getConnection(String username,
String password)
Deprecated.
|
int |
getLoginTimeout()
Deprecated.
|
PrintWriter |
getLogWriter()
Deprecated.
|
Logger |
getParentLogger()
Deprecated.
|
Reference |
getReference()
Deprecated.
|
boolean |
isWrapperFor(Class<?> iface)
Deprecated.
|
void |
setLoginTimeout(int seconds)
Deprecated.
|
void |
setLogWriter(PrintWriter out)
Deprecated.
|
<T> T |
unwrap(Class<T> iface)
Deprecated.
|
public DriverManagerDataSource(String jdbcUrl, String dfltUser, String dfltPassword)
public DriverManagerDataSource(String jdbcUrl)
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
Copyright © 2018 com.mchange. All rights reserved.