public class P6DataSource extends Object implements DataSource, Referenceable, Serializable
Modifier and Type | Field and Description |
---|---|
protected CommonDataSource |
rds |
protected String |
rdsName |
Constructor and Description |
---|
P6DataSource()
Default no-arg constructor for Serialization
|
P6DataSource(DataSource source) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindDataSource() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getRealDataSource() |
Reference |
getReference()
Required method to support this class as a
Referenceable . |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int inVar) |
void |
setLogWriter(PrintWriter inVar) |
void |
setRealDataSource(String inVar) |
<T> T |
unwrap(Class<T> iface) |
protected CommonDataSource rds
protected String rdsName
public P6DataSource()
public P6DataSource(DataSource source)
public String getRealDataSource()
public void setRealDataSource(String inVar)
protected void bindDataSource() throws SQLException
SQLException
public Reference getReference() throws NamingException
Referenceable
.getReference
in interface Referenceable
NamingException
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 username, String password) 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-2014 P6Spy. All Rights Reserved.