
public class WrapperDataSource extends JBossWrapper implements javax.resource.Referenceable, DataSource, Serializable
| 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, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrapprotected WrapperDataSource(BaseWrapperManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
mcf - The managed connection factorycm - The connection managerpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter pw) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int param1)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String user, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void setReference(Reference reference)
public Reference getReference()
getReference in interface Referenceableprotected 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 © 2013 IronJacamar (http://www.ironjacamar.org)