Class MFECIInteraction

An implementation class that enables a component to execute Cics Server functions.
java.lang.Object

extended by com.microfocus.cics.connector.cci.MFECIInteraction

All Implemented Interfaces

javax.resource.cci.Interaction

Class Specifications

public class MFECIInteraction

extends Object

implements javax.resource.cci.Interaction

Field Summary

Constructor Summary

MFECIInteraction(javax.resource.cci.Connection con)
Construct a Cics Interaction instance.

Methods

Method Summary
void clearWarnings()

Clear all warnings with the Cics Server.

void close()

Close the interaction.

javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec iSpec, javax.resource.cci.Record input)

Execute a Cics 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 Cics Server function specified in the interaction spec.

int getCobolReturnCode()
javax.resource.cci.Connection getConnection()

Get the MFECIConnection handle associated with this MFECI Interaction instance.

javax.resource.cci.ResourceWarning getWarnings()

Get warnings from the Cics Server.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

ERR_NO_MANAGED_CONNECTION
public static final int ERR_NO_MANAGED_CONNECTION

See Also:

Constant Field Values

Constructor Detail

MFECIInteraction
public MFECIInteraction(javax.resource.cci.Connection con)

Construct a Cics Interaction instance.

Parameters:
con The Cics Connection handle.
See Also:
CicsConnection

Method Detail

getConnection
public javax.resource.cci.Connection getConnection()

Get the MFECIConnection handle associated with this MFECI Interaction instance.

Specified by:
getConnection in interface javax.resource.cci.Interaction
Returns:
MFECIConnection handle.
close
public void close()
           throws javax.resource.ResourceException

Close the interaction.

Specified by:
close in interface javax.resource.cci.Interaction
Throws:
javax.resource.ResourceException
execute
public javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec iSpec,
                                         javax.resource.cci.Record input)
               throws javax.resource.ResourceException

Execute a MFECI Server function specified in the interaction spec.

Specified by:
execute in interface javax.resource.cci.Interaction
Parameters:
iSpec The Cics interaction spec.
input The input record to the interaction.
Returns:
The output record.
Throws:
javax.resource.ResourceException
execute
public boolean execute(javax.resource.cci.InteractionSpec iSpec,
                       javax.resource.cci.Record input,
                       javax.resource.cci.Record output)
          throws javax.resource.ResourceException

Execute a MFECI Server function specified in the interaction spec.

Specified by:
execute in interface javax.resource.cci.Interaction
Parameters:
iSpec The Cics interaction spec.
input The input record to the interaction.
output The output record for the interaction.
Returns:
true Output is not null.
false Output is null.
Throws:
javax.resource.ResourceException
getWarnings
public javax.resource.cci.ResourceWarning getWarnings()
                            throws javax.resource.ResourceException

Get warnings from the Cics Server.

Specified by:
getWarnings in interface javax.resource.cci.Interaction
Returns:
Resource warning.
Throws:
javax.resource.ResourceException
getCobolReturnCode
public int getCobolReturnCode()