public class P6DriverManagerDataSource
extends java.lang.Object
implements javax.sql.DataSource
DataSource implementation that simply delegates to DriverManager.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
password |
protected javax.sql.DataSource |
rds |
protected java.lang.String |
url |
protected java.lang.String |
user |
| Constructor and Description |
|---|
P6DriverManagerDataSource() |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String p0,
java.lang.String p1) |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
java.lang.String |
getPassword() |
java.lang.String |
getUrl() |
java.lang.String |
getUser() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setLoginTimeout(int inVar) |
void |
setLogWriter(java.io.PrintWriter inVar) |
void |
setPassword(java.lang.String inVar) |
void |
setUrl(java.lang.String inVar) |
void |
setUser(java.lang.String inVar) |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected javax.sql.DataSource rds
protected java.lang.String url
protected java.lang.String user
protected java.lang.String password
public java.lang.String getPassword()
public void setPassword(java.lang.String inVar)
public java.lang.String getUser()
public void setUser(java.lang.String inVar)
public java.lang.String getUrl()
public void setUrl(java.lang.String inVar)
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int inVar)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter inVar)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection(java.lang.String p0,
java.lang.String p1)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperiface - java.sql.SQLExceptionWrapper.isWrapperFor(java.lang.Class)public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.WrapperT - iface - java.sql.SQLExceptionWrapper.unwrap(java.lang.Class)public java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedException