com.microfocus.cobol.connector.cci
Class CobolInteraction

java.lang.Object
  extended bycom.microfocus.cobol.connector.cci.CobolInteraction

public class CobolInteraction
extends Object

This implementation class enables a component to execute Cobol Server functions.


Field Summary
protected  javax.resource.cci.Connection connection
           
protected  RALogger log
           
 
Constructor Summary
CobolInteraction(javax.resource.cci.Connection con)
          Constrcut a Cobol Interaction instance
 
Method Summary
 void clearWarnings()
          Clear all warnings with the Cobol Server.
 void close()
          close the interaction.
 Record execute(javax.resource.cci.InteractionSpec iSpec, javax.resource.cci.Record input)
          Execute a Cobol Server function specified in the interaction spec.
 boolean execute(javax.resource.cci.InteractionSpec iSpec, javax.resource.cci.Record input, javax.resource.cci.Record output)
          Execute a Cobol Server function specified in the interaction spec.
 javax.resource.cci.Connection getConnection()
          Get the CobolConnection handle associated with this Cobol Interaction instance.
 ResourceWarning getWarnings()
          Get Warnings from the Cobol Server
protected  void prepareFromCobCall(com.microfocus.cobol.lang.ParameterList outputList, Record out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected javax.resource.cci.Connection connection

log

protected transient RALogger log
Constructor Detail

CobolInteraction

public CobolInteraction(javax.resource.cci.Connection con)
Constrcut a Cobol Interaction instance

Parameters:
con - The CobolConnection handle
See Also:
CobolConnection
Method Detail

getConnection

public javax.resource.cci.Connection getConnection()
Get the CobolConnection handle associated with this Cobol Interaction instance.

Returns:
CobolConnection handle.

close

public void close()
           throws ResourceException
close the interaction.

Throws:
ResourceException

execute

public Record execute(javax.resource.cci.InteractionSpec iSpec,
                      javax.resource.cci.Record input)
               throws ResourceException
Execute a Cobol Server function specified in the interaction spec.

Parameters:
iSpec - The CobolInteractionSpec
input - The input record to the interaction
Returns:
The output Record
Throws:
ResourceException

execute

public boolean execute(javax.resource.cci.InteractionSpec iSpec,
                       javax.resource.cci.Record input,
                       javax.resource.cci.Record output)
                throws ResourceException
Execute a Cobol Server function specified in the interaction spec.

Parameters:
iSpec - The InteractionSpec
input - The input record for the interaction
output - The output recod for the interaction
Returns:
true if output is non null. flase otherwise
Throws:
ResourceException

getWarnings

public ResourceWarning getWarnings()
                            throws ResourceException
Get Warnings from the Cobol Server

Returns:
Resource Warning.
Throws:
ResourceException

clearWarnings

public void clearWarnings()
                   throws ResourceException
Clear all warnings with the Cobol Server.

Throws:
ResourceException

prepareFromCobCall

protected void prepareFromCobCall(com.microfocus.cobol.lang.ParameterList outputList,
                                  Record out)
                           throws ResourceException
Throws:
ResourceException



Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.