public class BasicManagedConnection extends Object implements javax.resource.spi.ManagedConnection
| Modifier and Type | Field and Description |
|---|---|
protected Collection<javax.resource.spi.ConnectionEventListener> |
listeners |
protected PrintWriter |
log |
| Constructor and Description |
|---|
BasicManagedConnection(BasicConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0) |
void |
associateConnection(Object handle) |
void |
cleanup() |
void |
destroy() |
Object |
getConnection(Subject arg0,
javax.resource.spi.ConnectionRequestInfo arg1) |
javax.resource.spi.LocalTransaction |
getLocalTransaction() |
PrintWriter |
getLogWriter() |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData() |
XAResource |
getXAResource() |
boolean |
isValid() |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0) |
void |
setLogWriter(PrintWriter arg0) |
protected PrintWriter log
protected final Collection<javax.resource.spi.ConnectionEventListener> listeners
public BasicManagedConnection(BasicConnection connection)
public void associateConnection(Object handle) throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic Object getConnection(Subject arg0, javax.resource.spi.ConnectionRequestInfo arg1) throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic XAResource getXAResource() throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void addConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic void setLogWriter(PrintWriter arg0) throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic boolean isValid()
Copyright © 2016 JBoss by Red Hat. All rights reserved.