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.DataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedException