com.prolifics.tconn
Class ManagedConnectionImpl

java.lang.Object
  extended by com.prolifics.tconn.ManagedConnectionImpl
All Implemented Interfaces:
javax.resource.spi.ManagedConnection

public class ManagedConnectionImpl
extends java.lang.Object
implements javax.resource.spi.ManagedConnection


Constructor Summary
ManagedConnectionImpl(ManagedConnectionFactoryImpl mcfi, javax.resource.spi.ConnectionRequestInfo cri)
           
 
Method Summary
 void addConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
           
 void associateConnection(java.lang.Object o)
           
 void cleanup()
           
 void destroy()
           
 java.util.Enumeration getCels()
           
 java.lang.Object getConnection(javax.security.auth.Subject s, javax.resource.spi.ConnectionRequestInfo cri)
           
 javax.resource.spi.ConnectionRequestInfo getConnectionRequestInfo()
           
 long getContext()
           
 javax.resource.spi.LocalTransaction getLocalTransaction()
           
 java.io.PrintWriter getLogWriter()
           
 javax.resource.spi.ManagedConnectionMetaData getMetaData()
           
 javax.transaction.xa.XAResource getXAResource()
           
 void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
           
 void setLogWriter(java.io.PrintWriter lw)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnectionImpl

public ManagedConnectionImpl(ManagedConnectionFactoryImpl mcfi,
                             javax.resource.spi.ConnectionRequestInfo cri)
                      throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException
Method Detail

getContext

public long getContext()

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

getCels

public java.util.Enumeration getCels()

getConnectionRequestInfo

public javax.resource.spi.ConnectionRequestInfo getConnectionRequestInfo()

getConnection

public java.lang.Object getConnection(javax.security.auth.Subject s,
                                      javax.resource.spi.ConnectionRequestInfo cri)
                               throws javax.resource.ResourceException
Specified by:
getConnection in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

associateConnection

public void associateConnection(java.lang.Object o)
                         throws javax.resource.ResourceException
Specified by:
associateConnection 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

destroy

public void destroy()
             throws javax.resource.ResourceException
Specified by:
destroy in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getLocalTransaction

public javax.resource.spi.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
Specified by:
getLocalTransaction in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getXAResource

public javax.transaction.xa.XAResource getXAResource()
                                              throws javax.resource.ResourceException
Specified by:
getXAResource in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

setLogWriter

public void setLogWriter(java.io.PrintWriter lw)
Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnection

getLogWriter

public java.io.PrintWriter getLogWriter()
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnection

getMetaData

public javax.resource.spi.ManagedConnectionMetaData getMetaData()
Specified by:
getMetaData in interface javax.resource.spi.ManagedConnection