jrun.connector
Class JRunConnectionWrapper

java.lang.Object
  |
  +--jrun.connector.JRunConnectionWrapper

public class JRunConnectionWrapper
extends java.lang.Object

Base Wrapper class to hold the ManagedConnection, connectionhandle and security info. Transaction information and associated methods are implemented by derived classes


Field Summary
protected  boolean active
           
protected  javax.transaction.xa.Xid associatedXid
           
protected  java.lang.Object connectionHandle
           
protected  ConnectionManagerImpl connMan
           
protected  javax.resource.spi.ConnectionRequestInfo cxRequestInfo
           
protected  Logger logger
           
protected  javax.resource.spi.ManagedConnection manConn
           
protected  javax.security.auth.Subject subj
           
protected  boolean waitForTxClose
           
 
Constructor Summary
JRunConnectionWrapper(javax.resource.spi.ManagedConnection mc, javax.security.auth.Subject s, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 
Method Summary
 void expire()
           
 javax.transaction.xa.Xid getAssociatedXid()
           
 java.lang.Object getConnectionHandle()
           
 Logger getLogger()
           
 javax.resource.spi.ManagedConnection getManagedConnection()
           
 void init(ConnectionManagerImpl cm, Logger logger)
          Sets the ConnectionmanagerImpl, Logger and calls associateTransaction
 boolean isActive()
           
 boolean isWaitForTxClose()
           
 void setActive(boolean active)
           
protected  void setAssociatedXid(javax.transaction.xa.Xid associatedXid)
           
 void setWaitForTxClose(boolean waitForTxClose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connMan

protected ConnectionManagerImpl connMan

manConn

protected javax.resource.spi.ManagedConnection manConn

connectionHandle

protected java.lang.Object connectionHandle

subj

protected javax.security.auth.Subject subj

cxRequestInfo

protected javax.resource.spi.ConnectionRequestInfo cxRequestInfo

logger

protected Logger logger

active

protected boolean active

waitForTxClose

protected boolean waitForTxClose

associatedXid

protected javax.transaction.xa.Xid associatedXid
Constructor Detail

JRunConnectionWrapper

public JRunConnectionWrapper(javax.resource.spi.ManagedConnection mc,
                             javax.security.auth.Subject s,
                             javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Method Detail

init

public void init(ConnectionManagerImpl cm,
                 Logger logger)
Sets the ConnectionmanagerImpl, Logger and calls associateTransaction

getManagedConnection

public javax.resource.spi.ManagedConnection getManagedConnection()

getConnectionHandle

public java.lang.Object getConnectionHandle()

getLogger

public Logger getLogger()

expire

public void expire()

isWaitForTxClose

public boolean isWaitForTxClose()

setWaitForTxClose

public void setWaitForTxClose(boolean waitForTxClose)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getAssociatedXid

public javax.transaction.xa.Xid getAssociatedXid()

setAssociatedXid

protected void setAssociatedXid(javax.transaction.xa.Xid associatedXid)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.