IBM Bank Transformation Toolkit Javadoc

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

java.lang.Object
  extended by com.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
 
Method Summary
(package private)  boolean call(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record input, javax.resource.cci.Record output)
          Executes EIS interaction
 void close()
          Initiates close of the connection handle at the application level
 javax.resource.cci.Interaction createInteraction()
          Creates an Interaction associated with this Connection
 java.lang.String getClassID()
           
 javax.resource.cci.LocalTransaction getLocalTransaction()
          Returns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection
(package private)  java.io.PrintWriter getLogWriter()
          Returns LogWriter
(package private)  DummyLu0ManagedConnection getManagedConnection()
          Returns an instance of DummyLu0ManagedConnection object
 javax.resource.cci.ConnectionMetaData getMetaData()
          Returns the information on the underlying EIS instance represented through an active connection
 javax.resource.cci.ResultSetInfo getResultSetInfo()
          Returns the information on the ResultSet functionality supported by a connected EIS instance
(package private)  void interactionClosed(DummyLu0Interaction lu0Interaction)
          Removes the DummyLu0Interaction instance from the list of interactions assocaited with this connection
(package private)  boolean isClosed()
          Returns the closed indicator
(package private)  void setLogWriter(java.io.PrintWriter out)
          Sets LogWriter
(package private)  void setManagedConnection(DummyLu0ManagedConnection managedConnection)
          Sets 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

Parameters:
managedConnection - javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException
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

Parameters:
interactionSpec - javax.resource.cci.InteractionSpec
input - javax.resource.cci.Record
output - javax.resource.cci.Record
Returns:
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

Parameters:
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

Specified by:
createInteraction in interface javax.resource.cci.Connection
Returns:
javax.resource.cci.Interaction
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

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

getManagedConnection

DummyLu0ManagedConnection getManagedConnection()
Returns an instance of DummyLu0ManagedConnection object

Returns:
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

Specified by:
getMetaData in interface javax.resource.cci.Connection
Returns:
javax.resource.cci.ConnectionMetaData
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

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

setLogWriter

void setLogWriter(java.io.PrintWriter out)
Sets LogWriter

Parameters:
out - java.io.PrintWriter

getLogWriter

java.io.PrintWriter getLogWriter()
Returns LogWriter

Returns:
java.io.PrintWriter

setManagedConnection

void setManagedConnection(DummyLu0ManagedConnection managedConnection)
Sets DummyLu0ManagedConnection

Parameters:
managedConnection - com.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnection

isClosed

boolean isClosed()
Returns the closed indicator

Returns:
a boolean

getClassID

public java.lang.String getClassID()

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008