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 DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedException