public abstract class MappingCommAreaOperation extends MappingRecordOperation
MappingRecordOperation.RecordCreatorImpl, MappingRecordOperation.RecordExtractorImpl
Constructor and Description |
---|
MappingCommAreaOperation()
Create a new MappingCommAreaQuery.
|
MappingCommAreaOperation(ConnectionFactory connectionFactory,
InteractionSpec interactionSpec)
Create a new MappingCommAreaQuery.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
bytesToObject(byte[] bytes)
Method used to convert the COMMAREA's bytes to an object.
|
protected 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. |
protected 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. |
protected abstract byte[] |
objectToBytes(Object inObject)
Method used to convert an object into COMMAREA bytes.
|
execute, setOutputRecordCreator
afterPropertiesSet, getCciTemplate, getInteractionSpec, setCciTemplate, setConnectionFactory, setInteractionSpec
public MappingCommAreaOperation()
public MappingCommAreaOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
connectionFactory
- the ConnectionFactory to use to obtain connectionsinteractionSpec
- specification to configure the interactionprotected final Record createInputRecord(RecordFactory recordFactory, Object inObject)
MappingRecordOperation
execute
method.createInputRecord
in class MappingRecordOperation
inObject
- the passed-in input objectMappingRecordOperation.execute(Object)
protected final Object extractOutputData(Record record) throws DataAccessException
MappingRecordOperation
execute
method.extractOutputData
in class MappingRecordOperation
record
- the Record returned by CCI executionDataAccessException
MappingRecordOperation.execute(Object)
protected abstract byte[] objectToBytes(Object inObject) throws IOException, DataAccessException
inObject
- the input dataIOException
- if thrown by I/O methodsDataAccessException
- if conversion failedprotected abstract Object bytesToObject(byte[] bytes) throws IOException, DataAccessException
bytes
- the COMMAREA's bytesIOException
- if thrown by I/O methodsDataAccessException
- if conversion failed