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 java.lang.Object |
bytesToObject(byte[] bytes)
Method used to convert the COMMAREA's bytes to an object.
|
protected Record |
createInputRecord(RecordFactory recordFactory,
java.lang.Object inObject)
Subclasses must implement this method to generate an input Record
from an input object passed into the
execute method. |
protected java.lang.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(java.lang.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, java.lang.Object inObject)
MappingRecordOperation
execute
method.createInputRecord
in class MappingRecordOperation
inObject
- the passed-in input objectMappingRecordOperation.execute(Object)
protected final java.lang.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(java.lang.Object inObject) throws java.io.IOException, DataAccessException
inObject
- the input datajava.io.IOException
- if thrown by I/O methodsDataAccessException
- if conversion failedprotected abstract java.lang.Object bytesToObject(byte[] bytes) throws java.io.IOException, DataAccessException
bytes
- the COMMAREA's bytesjava.io.IOException
- if thrown by I/O methodsDataAccessException
- if conversion failed