public abstract class MappingCommAreaOperation extends MappingRecordOperation
MappingRecordOperation.RecordCreatorImpl, MappingRecordOperation.RecordExtractorImpl| Constructor and Description |
|---|
MappingCommAreaOperation()
Create a new MappingCommAreaQuery.
|
MappingCommAreaOperation(javax.resource.cci.ConnectionFactory connectionFactory,
javax.resource.cci.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 javax.resource.cci.Record |
createInputRecord(javax.resource.cci.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(javax.resource.cci.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, setOutputRecordCreatorafterPropertiesSet, getCciTemplate, getInteractionSpec, setCciTemplate, setConnectionFactory, setInteractionSpecpublic MappingCommAreaOperation()
public MappingCommAreaOperation(javax.resource.cci.ConnectionFactory connectionFactory,
javax.resource.cci.InteractionSpec interactionSpec)
connectionFactory - ConnectionFactory to use to obtain connectionsinteractionSpec - specification to configure the interactionprotected final javax.resource.cci.Record createInputRecord(javax.resource.cci.RecordFactory recordFactory,
Object inObject)
MappingRecordOperationexecute method.createInputRecord in class MappingRecordOperationinObject - the passed-in input objectMappingRecordOperation.execute(Object)protected final Object extractOutputData(javax.resource.cci.Record record) throws DataAccessException
MappingRecordOperationexecute method.extractOutputData in class MappingRecordOperationrecord - the Record returned by CCI executionDataAccessExceptionMappingRecordOperation.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 failedCopyright © 2015. All rights reserved.