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.ManagedConnection
javax.resource.ResourceException
public void cleanup() throws javax.resource.ResourceException
cleanup
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void destroy() throws javax.resource.ResourceException
destroy
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public Object getConnection(Subject arg0, javax.resource.spi.ConnectionRequestInfo arg1) throws javax.resource.ResourceException
getConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public XAResource getXAResource() throws javax.resource.ResourceException
getXAResource
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0)
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0)
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
public void setLogWriter(PrintWriter arg0) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public boolean isValid()
Copyright © 2018 JBoss by Red Hat. All rights reserved.