IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.samples.business.sna.lu0
Class DummyLu0Connection

java.lang.Object
  extended bycom.ibm.btt.samples.business.sna.lu0.DummyLu0Connection
All Implemented Interfaces:
javax.resource.cci.Connection

public class DummyLu0Connection
extends java.lang.Object
implements javax.resource.cci.Connection

Application level handle to the Managed Connection * Subject to change once J2EE/CA specification includes Common Client Interfaces


Constructor Summary
DummyLu0Connection(javax.resource.spi.ManagedConnection managedConnection)
          DummyLu0Connection constructor * @param managedConnection javax.resource.spi.ManagedConnection
 
Method Summary
(package private)  boolean call(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record input, javax.resource.cci.Record output)
          Executes EIS interaction * @param interactionSpec javax.resource.cci.InteractionSpec * @param input javax.resource.cci.Record * @param output javax.resource.cci.Record * @return Returns a boolean
 void close()
          Initiates close of the connection handle at the application level
 javax.resource.cci.Interaction createInteraction()
          Creates an Interaction associated with this Connection * @return javax.resource.cci.Interaction
 javax.resource.cci.LocalTransaction getLocalTransaction()
          Returns an LocalTransaction instance that enables a component * to demarcate resource manager local transactions on the Connection * * @throws javax.resource.NotSupportedException
(package private)  java.io.PrintWriter getLogWriter()
          Returns LogWriter * @return java.io.PrintWriter
(package private)  DummyLu0ManagedConnection getManagedConnection()
          Returns an instance of DummyLu0ManagedConnection object * @return com.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnection
 javax.resource.cci.ConnectionMetaData getMetaData()
          Returns the information on the underlying EIS instance represented through an active connection * @return javax.resource.cci.ConnectionMetaData
 javax.resource.cci.ResultSetInfo getResultSetInfo()
          Returns the information on the ResultSet functionality supported by a connected EIS instance * @throws javax.resource.NotSupportedException
(package private)  void interactionClosed(DummyLu0Interaction lu0Interaction)
          Removes the DummyLu0Interaction instance from the list of interactions assocaited with this connection * @param Dummylu0Interaction com.ibm.btt.samples.business.sna.lu0.DummyLu0Interaction
(package private)  boolean isClosed()
          Returns the closed indicator * @return a boolean
(package private)  void setLogWriter(java.io.PrintWriter out)
          Sets LogWriter * @param out java.io.PrintWriter
(package private)  void setManagedConnection(DummyLu0ManagedConnection managedConnection)
          Sets DummyLu0ManagedConnection * @param managedConnection com.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLu0Connection

public DummyLu0Connection(javax.resource.spi.ManagedConnection managedConnection)
                   throws javax.resource.ResourceException
DummyLu0Connection constructor * @param managedConnection javax.resource.spi.ManagedConnection

Method Detail

call

boolean call(javax.resource.cci.InteractionSpec interactionSpec,
             javax.resource.cci.Record input,
             javax.resource.cci.Record output)
       throws javax.resource.ResourceException
Executes EIS interaction * @param interactionSpec javax.resource.cci.InteractionSpec * @param input javax.resource.cci.Record * @param output javax.resource.cci.Record * @return Returns a boolean

Throws:
javax.resource.ResourceException

close

public void close()
           throws javax.resource.ResourceException
Initiates close of the connection handle at the application level

Specified by:
close in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

interactionClosed

void interactionClosed(DummyLu0Interaction lu0Interaction)
Removes the DummyLu0Interaction instance from the list of interactions assocaited with this connection * @param Dummylu0Interaction com.ibm.btt.samples.business.sna.lu0.DummyLu0Interaction


createInteraction

public javax.resource.cci.Interaction createInteraction()
                                                 throws javax.resource.ResourceException
Creates an Interaction associated with this Connection * @return javax.resource.cci.Interaction

Specified by:
createInteraction in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getLocalTransaction

public javax.resource.cci.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
Returns an LocalTransaction instance that enables a component * to demarcate resource manager local transactions on the Connection * * @throws javax.resource.NotSupportedException

Specified by:
getLocalTransaction in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getManagedConnection

DummyLu0ManagedConnection getManagedConnection()
Returns an instance of DummyLu0ManagedConnection object * @return com.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnection


getMetaData

public javax.resource.cci.ConnectionMetaData getMetaData()
                                                  throws javax.resource.ResourceException
Returns the information on the underlying EIS instance represented through an active connection * @return javax.resource.cci.ConnectionMetaData

Specified by:
getMetaData in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getResultSetInfo

public javax.resource.cci.ResultSetInfo getResultSetInfo()
                                                  throws javax.resource.ResourceException
Returns the information on the ResultSet functionality supported by a connected EIS instance * @throws javax.resource.NotSupportedException

Specified by:
getResultSetInfo in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

setLogWriter

void setLogWriter(java.io.PrintWriter out)
Sets LogWriter * @param out java.io.PrintWriter


getLogWriter

java.io.PrintWriter getLogWriter()
Returns LogWriter * @return java.io.PrintWriter


setManagedConnection

void setManagedConnection(DummyLu0ManagedConnection managedConnection)
Sets DummyLu0ManagedConnection * @param managedConnection com.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnection


isClosed

boolean isClosed()
Returns the closed indicator * @return a boolean


IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005