public class WrapperDataSource extends JBossWrapper implements javax.resource.Referenceable, DataSource, Serializable
bundle
Modifier | Constructor and Description |
---|---|
protected |
WrapperDataSource(BaseWrapperManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkTransactionActive()
Check whether a tranasction is active
|
Connection |
getConnection() |
Connection |
getConnection(String user,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
Reference |
getReference() |
protected int |
getTimeLeftBeforeTransactionTimeout()
Get the time left before a transaction timeout
|
void |
setLoginTimeout(int param1) |
void |
setLogWriter(PrintWriter pw) |
void |
setReference(Reference reference) |
getWrappedObject, isWrapperFor, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
protected WrapperDataSource(BaseWrapperManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
mcf
- The managed connection factorycm
- The connection managerpublic PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter pw) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int param1) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String user, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public void setReference(Reference reference)
public Reference getReference()
getReference
in interface Referenceable
protected int getTimeLeftBeforeTransactionTimeout() throws SQLException
-1
if no timeoutSQLException
- Thrown if an error occursprotected void checkTransactionActive() throws SQLException
SQLException
- if the transaction is not active, preparing, prepared or committing or
for any error in the transaction managerCopyright © 2014 IronJacamar (http://www.ironjacamar.org)