public class P6DataSource extends P6Base implements DataSource, Referenceable, Serializable
Modifier and Type | Field and Description |
---|---|
protected DataSource |
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 . |
static void |
initMethod() |
boolean |
isWrapperFor(Class<?> arg0) |
void |
setLoginTimeout(int inVar) |
void |
setLogWriter(PrintWriter inVar) |
void |
setRealDataSource(String inVar) |
<T> T |
unwrap(Class<T> arg0) |
getP6Factory, setP6Factory
protected DataSource rds
protected String rdsName
public P6DataSource()
public P6DataSource(DataSource source)
public static void initMethod()
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 Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public <T> T unwrap(Class<T> arg0) throws SQLException
unwrap
in interface Wrapper
SQLException