com.bankframe.jca.samplefileadapter
Class SampleManagedConnection

java.lang.Object
  extended by com.bankframe.jca.samplefileadapter.SampleManagedConnection
All Implemented Interfaces:
ManagedConnection

public class SampleManagedConnection
extends Object
implements ManagedConnection


Constructor Summary
SampleManagedConnection(ManagedConnectionFactory mcf, String user)
           
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
           
 void associateConnection(Object connection)
           
 void cleanup()
           
 void destroy()
           
 Object getConnection(Subject arg0, ConnectionRequestInfo arg1)
           
 LocalTransaction getLocalTransaction()
           
 PrintWriter getLogWriter()
           
 ManagedConnectionMetaData getMetaData()
           
 XAResource getXAResource()
           
 void removeConnectionEventListener(ConnectionEventListener listener)
           
 void setLogWriter(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleManagedConnection

public SampleManagedConnection(ManagedConnectionFactory mcf,
                               String user)
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface ManagedConnection

cleanup

public void cleanup()
Specified by:
cleanup in interface ManagedConnection

associateConnection

public void associateConnection(Object connection)
Specified by:
associateConnection in interface ManagedConnection

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface ManagedConnection

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface ManagedConnection

getXAResource

public XAResource getXAResource()
                         throws ResourceException
Specified by:
getXAResource in interface ManagedConnection
Throws:
ResourceException

getLocalTransaction

public LocalTransaction getLocalTransaction()
Specified by:
getLocalTransaction in interface ManagedConnection

getMetaData

public ManagedConnectionMetaData getMetaData()
                                      throws ResourceException
Specified by:
getMetaData in interface ManagedConnection
Throws:
ResourceException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws ResourceException
Specified by:
setLogWriter in interface ManagedConnection
Throws:
ResourceException

getLogWriter

public PrintWriter getLogWriter()
                         throws ResourceException
Specified by:
getLogWriter in interface ManagedConnection
Throws:
ResourceException

getConnection

public Object getConnection(Subject arg0,
                            ConnectionRequestInfo arg1)
                     throws ResourceException
Specified by:
getConnection in interface ManagedConnection
Throws:
ResourceException


Copyright © 2005, 2007, Oracle. All rights reserved.