public class P6DriverManagerDataSource extends Object implements DataSource
DataSource
implementation that simply delegates to DriverManager
.Modifier and Type | Field and Description |
---|---|
protected String |
password |
protected DataSource |
rds |
protected String |
url |
protected String |
user |
Constructor and Description |
---|
P6DriverManagerDataSource() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
Connection |
getConnection(String p0,
String p1) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getPassword() |
String |
getUrl() |
String |
getUser() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int inVar) |
void |
setLogWriter(PrintWriter inVar) |
void |
setPassword(String inVar) |
void |
setUrl(String inVar) |
void |
setUser(String inVar) |
<T> T |
unwrap(Class<T> iface) |
protected DataSource rds
protected String url
protected String user
protected String password
public String getPassword()
public void setPassword(String inVar)
public String getUser()
public void setUser(String inVar)
public String getUrl()
public void setUrl(String inVar)
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int inVar) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter inVar) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String p0, String p1) throws SQLException
getConnection
in interface DataSource
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
iface
- SQLException
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
T
- iface
- SQLException
Wrapper.unwrap(java.lang.Class)
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
Copyright © 2002-2016 P6Spy. All Rights Reserved.