public class DriverManagerDataSource
extends java.lang.Object
implements javax.sql.DataSource, java.io.Serializable, javax.naming.Referenceable
Modifier and Type | Class and Description |
---|---|
static class |
DriverManagerDataSource.DmdsObjectFactory
Deprecated.
|
Constructor and Description |
---|
DriverManagerDataSource(java.lang.String jdbcUrl)
Deprecated.
|
DriverManagerDataSource(java.lang.String jdbcUrl,
java.lang.String dfltUser,
java.lang.String dfltPassword)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection()
Deprecated.
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Deprecated.
|
int |
getLoginTimeout()
Deprecated.
|
java.io.PrintWriter |
getLogWriter()
Deprecated.
|
java.util.logging.Logger |
getParentLogger()
Deprecated.
|
javax.naming.Reference |
getReference()
Deprecated.
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
Deprecated.
|
void |
setLoginTimeout(int seconds)
Deprecated.
|
void |
setLogWriter(java.io.PrintWriter out)
Deprecated.
|
<T> T |
unwrap(java.lang.Class<T> iface)
Deprecated.
|
public DriverManagerDataSource(java.lang.String jdbcUrl, java.lang.String dfltUser, java.lang.String dfltPassword)
public DriverManagerDataSource(java.lang.String jdbcUrl)
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.CommonDataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
in interface javax.sql.CommonDataSource
java.sql.SQLException
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.CommonDataSource
java.sql.SQLException
public void setLoginTimeout(int seconds) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.CommonDataSource
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface javax.sql.CommonDataSource
java.sql.SQLFeatureNotSupportedException