org.apache.commons.transaction.memory.jca
Class MapManagedConnection
java.lang.Object
org.apache.commons.transaction.memory.jca.MapManagedConnection
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnection
- public class MapManagedConnection
- extends java.lang.Object
- implements javax.resource.spi.ManagedConnection
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected MapConnection connection
listeners
protected java.util.List listeners
out
protected java.io.PrintWriter out
MapManagedConnection
public MapManagedConnection(javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
close
public void close()
getConnection
public java.lang.Object getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.getConnection(Subject, ConnectionRequestInfo)
destroy
public void destroy()
throws javax.resource.ResourceException
- Specified by:
destroy
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.destroy()
cleanup
public void cleanup()
throws javax.resource.ResourceException
- Specified by:
cleanup
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.cleanup()
associateConnection
public void associateConnection(java.lang.Object connection)
throws javax.resource.ResourceException
- Specified by:
associateConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.associateConnection(Object)
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
- Specified by:
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
- See Also:
ManagedConnection.addConnectionEventListener(ConnectionEventListener)
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
- See Also:
ManagedConnection.removeConnectionEventListener(ConnectionEventListener)
getXAResource
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
- Specified by:
getXAResource
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.getXAResource()
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
- Specified by:
getLocalTransaction
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.getLocalTransaction()
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
- Specified by:
getMetaData
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.getMetaData()
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.setLogWriter(PrintWriter)
getLogWriter
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
- See Also:
ManagedConnection.getLogWriter()
Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.