public class P6DataSource extends P6Base implements javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected javax.sql.DataSource |
rds |
protected java.lang.String |
rdsName |
Constructor and Description |
---|
P6DataSource()
Default no-arg constructor for Serialization
|
P6DataSource(javax.sql.DataSource source) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindDataSource() |
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password) |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
java.lang.String |
getRealDataSource() |
javax.naming.Reference |
getReference()
Required method to support this class as a
Referenceable . |
static void |
initMethod() |
boolean |
isWrapperFor(java.lang.Class<?> arg0) |
void |
setLoginTimeout(int inVar) |
void |
setLogWriter(java.io.PrintWriter inVar) |
void |
setRealDataSource(java.lang.String inVar) |
<T> T |
unwrap(java.lang.Class<T> arg0) |
getP6Factory, setP6Factory
public P6DataSource()
public P6DataSource(javax.sql.DataSource source)
public static void initMethod()
public java.lang.String getRealDataSource()
public void setRealDataSource(java.lang.String inVar)
protected void bindDataSource() throws java.sql.SQLException
java.sql.SQLException
public javax.naming.Reference getReference() throws javax.naming.NamingException
Referenceable
.getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.CommonDataSource
java.sql.SQLException
public void setLoginTimeout(int inVar) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.CommonDataSource
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.CommonDataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter inVar) throws java.sql.SQLException
setLogWriter
in interface javax.sql.CommonDataSource
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface javax.sql.CommonDataSource
java.sql.SQLFeatureNotSupportedException
public boolean isWrapperFor(java.lang.Class<?> arg0) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> arg0) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException