public abstract class

MappingCommAreaOperation

extends MappingRecordOperation
java.lang.Object
   ↳ org.springframework.jca.cci.object.EisOperation
     ↳ org.springframework.jca.cci.object.MappingRecordOperation
       ↳ org.springframework.jca.cci.object.MappingCommAreaOperation

Class Overview

EIS operation object for access to COMMAREA records. Subclass of the generic MappingRecordOperation class.

Summary

Public Constructors
MappingCommAreaOperation()
Create a new MappingCommAreaQuery.
MappingCommAreaOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
Create a new MappingCommAreaQuery.
Protected Methods
abstract Object bytesToObject(byte[] bytes)
Method used to convert the COMMAREA's bytes to an object.
final Record createInputRecord(RecordFactory recordFactory, Object inObject)
Subclasses must implement this method to generate an input Record from an input object passed into the execute method.
final Object extractOutputData(Record record)
Subclasses must implement this method to convert the Record returned by CCI execution into a result object for the execute method.
abstract byte[] objectToBytes(Object inObject)
Method used to convert an object into COMMAREA bytes.
[Expand]
Inherited Methods
From class org.springframework.jca.cci.object.MappingRecordOperation
From class org.springframework.jca.cci.object.EisOperation
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public MappingCommAreaOperation ()

public MappingCommAreaOperation (ConnectionFactory connectionFactory, InteractionSpec interactionSpec)

Create a new MappingCommAreaQuery.

Parameters
connectionFactory ConnectionFactory to use to obtain connections
interactionSpec specification to configure the interaction

Protected Methods

protected abstract Object bytesToObject (byte[] bytes)

Method used to convert the COMMAREA's bytes to an object.

Parameters
bytes the COMMAREA's bytes
Returns
  • the output data
Throws
IOException if thrown by I/O methods
DataAccessException if conversion failed

protected final Record createInputRecord (RecordFactory recordFactory, Object inObject)

Subclasses must implement this method to generate an input Record from an input object passed into the execute method.

Parameters
inObject the passed-in input object
Returns
  • the CCI input Record

protected final Object extractOutputData (Record record)

Subclasses must implement this method to convert the Record returned by CCI execution into a result object for the execute method.

Parameters
record the Record returned by CCI execution
Returns
  • the result object

protected abstract byte[] objectToBytes (Object inObject)

Method used to convert an object into COMMAREA bytes.

Parameters
inObject the input data
Returns
  • the COMMAREA's bytes
Throws
IOException if thrown by I/O methods
DataAccessException if conversion failed