org.jboss.resource.adapter.jdbc
Class BaseWrapperManagedConnection
java.lang.Object
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnection
- Direct Known Subclasses:
- LocalManagedConnection, XAManagedConnection
public abstract class BaseWrapperManagedConnection
- extends Object
- implements javax.resource.spi.ManagedConnection
BaseWrapperManagedConnection
- Version:
- $Revision: 1.6.4.15 $
- Author:
- David Jencks, Adrian Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnection |
getLocalTransaction, getXAResource |
mcf
protected final BaseWrapperManagedConnectionFactory mcf
con
protected final Connection con
props
protected final Properties props
stateLock
protected final Object stateLock
inManagedTransaction
protected boolean inManagedTransaction
inLocalTransaction
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean inLocalTransaction
jdbcAutoCommit
protected boolean jdbcAutoCommit
underlyingAutoCommit
protected boolean underlyingAutoCommit
jdbcReadOnly
protected boolean jdbcReadOnly
underlyingReadOnly
protected boolean underlyingReadOnly
jdbcTransactionIsolation
protected int jdbcTransactionIsolation
destroyed
protected boolean destroyed
BaseWrapperManagedConnection
public BaseWrapperManagedConnection(BaseWrapperManagedConnectionFactory mcf,
Connection con,
Properties props,
int transactionIsolation,
int psCacheSize)
throws SQLException
- Throws:
SQLException
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
- Specified by:
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
- Specified by:
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
associateConnection
public void associateConnection(Object handle)
throws javax.resource.ResourceException
- Specified by:
associateConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
- Specified by:
getMetaData
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(PrintWriter param1)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
cleanup
public void cleanup()
throws javax.resource.ResourceException
- Specified by:
cleanup
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getConnection
public Object getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
destroy
public void destroy()
throws javax.resource.ResourceException
- Specified by:
destroy
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
checkValid
public boolean checkValid()
broadcastConnectionError
protected void broadcastConnectionError(Throwable e)
getLog
protected org.jboss.logging.Logger getLog()
checkState
protected void checkState()
throws SQLException
- Throws:
SQLException
checkException
protected void checkException(SQLException e)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.