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, setOutputRecordCreatorafterPropertiesSet, getCciTemplate, getInteractionSpec, setCciTemplate, setConnectionFactory, setInteractionSpecpublic MappingCommAreaOperation()
public MappingCommAreaOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
connectionFactory - ConnectionFactory to use to obtain connectionsinteractionSpec - specification to configure the interactionprotected final Record createInputRecord(RecordFactory recordFactory, java.lang.Object inObject)
MappingRecordOperationexecute method.createInputRecord in class MappingRecordOperationinObject - the passed-in input objectMappingRecordOperation.execute(Object)protected final java.lang.Object extractOutputData(Record record) throws DataAccessException
MappingRecordOperationexecute method.extractOutputData in class MappingRecordOperationrecord - the Record returned by CCI executionDataAccessExceptionMappingRecordOperation.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