IBM Branch Transformation Toolkit Javadoc

com.ibm.connector2.sna.lu0
Class Lu0Interaction

java.lang.Object
  extended bycom.ibm.connector2.sna.lu0.Lu0Interaction
All Implemented Interfaces:
javax.resource.cci.Interaction

public class Lu0Interaction
extends java.lang.Object
implements javax.resource.cci.Interaction

The Lu0Interaction enables a component to execute EIS functions


Constructor Summary
(package private) Lu0Interaction(javax.resource.cci.Connection connection)
          Lu0Interaction constructor
 
Method Summary
 void clearWarnings()
          Clears all the warnings reported by this Interaction instance
 void close()
          Closes the current Interaction and release all the resources held for this instance by the resource adapter
 javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record input)
          Executes an interaction represented by the InteractionSpec.
 boolean execute(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record input, javax.resource.cci.Record output)
          Executes an interaction represented by the InteractionSpec.
 javax.resource.cci.Connection getConnection()
          Gets the Connection associated with the Interaction
(package private)  java.io.PrintWriter getLogWriter()
          Returns LogWriter
 javax.resource.cci.ResourceWarning getWarnings()
          Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance
(package private)  boolean isClosed()
          Returns the closed indicator
(package private)  void setLogWriter(java.io.PrintWriter out)
          Sets LogWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lu0Interaction

Lu0Interaction(javax.resource.cci.Connection connection)
Lu0Interaction constructor

Parameters:
connection - javax.resource.cci.Connection
Method Detail

clearWarnings

public void clearWarnings()
Clears all the warnings reported by this Interaction instance

Specified by:
clearWarnings in interface javax.resource.cci.Interaction

close

public void close()
           throws javax.resource.ResourceException
Closes the current Interaction and release all the resources held for this instance by the resource adapter

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

execute

public javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec interactionSpec,
                                         javax.resource.cci.Record input)
                                  throws javax.resource.ResourceException
Executes an interaction represented by the InteractionSpec. This form of invocation takes an input Record and returns an output Record if the execution of the Interaction has been successfull.

Specified by:
execute in interface javax.resource.cci.Interaction
Parameters:
interactionSpec - InteractionSpec representing a target EIS data/function module
input - Input Record (an instance of javax.resource.cci.Record interface)
Returns:
output Record if execution of the EIS function has been successful; null otherwise
Throws:
javax.resource.ResourceException

execute

public boolean execute(javax.resource.cci.InteractionSpec interactionSpec,
                       javax.resource.cci.Record input,
                       javax.resource.cci.Record output)
                throws javax.resource.ResourceException
Executes an interaction represented by the InteractionSpec. This form of invocation takes an input Record and returns an output Record if the execution of the Interaction has been successfull.

Specified by:
execute in interface javax.resource.cci.Interaction
Parameters:
interactionSpec - InteractionSpec representing a target EIS data/function module
input - Input Record (an instance of javax.resource.cci.Record interface)
output - Input Record (an instance of javax.resource.cci.Record interface)
Throws:
javax.resource.ResourceException

getConnection

public javax.resource.cci.Connection getConnection()
Gets the Connection associated with the Interaction

Specified by:
getConnection in interface javax.resource.cci.Interaction
Returns:
Connection instance associated with the Interaction

getWarnings

public javax.resource.cci.ResourceWarning getWarnings()
Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance

Specified by:
getWarnings in interface javax.resource.cci.Interaction
Returns:
null (ResourceWarnings are not supported)

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

isClosed

boolean isClosed()
Returns the closed indicator

Returns:
a boolean

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005