|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jca.cci.object.EisOperation org.springframework.jca.cci.object.MappingRecordOperation org.springframework.jca.cci.object.MappingCommAreaOperation
public abstract class MappingCommAreaOperation
EIS operation object for access to COMMAREA records. Subclass of the generic MappingRecordOperation class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.springframework.jca.cci.object.MappingRecordOperation |
---|
MappingRecordOperation.RecordCreatorImpl, MappingRecordOperation.RecordExtractorImpl |
Constructor Summary | |
---|---|
MappingCommAreaOperation()
Create a new MappingCommAreaQuery. |
|
MappingCommAreaOperation(ConnectionFactory connectionFactory,
InteractionSpec interactionSpec)
Create a new MappingCommAreaQuery. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.jca.cci.object.MappingRecordOperation |
---|
execute, setOutputRecordCreator |
Methods inherited from class org.springframework.jca.cci.object.EisOperation |
---|
afterPropertiesSet, getCciTemplate, getInteractionSpec, setCciTemplate, setConnectionFactory, setInteractionSpec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingCommAreaOperation()
public MappingCommAreaOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
connectionFactory
- ConnectionFactory to use to obtain connectionsinteractionSpec
- specification to configure the interactionMethod Detail |
---|
protected final Record createInputRecord(RecordFactory recordFactory, Object inObject)
MappingRecordOperation
execute
method.
createInputRecord
in class MappingRecordOperation
inObject
- the passed-in input object
MappingRecordOperation.execute(Object)
protected final Object extractOutputData(Record record) throws DataAccessException
MappingRecordOperation
execute
method.
extractOutputData
in class MappingRecordOperation
record
- the Record returned by CCI execution
DataAccessException
MappingRecordOperation.execute(Object)
protected abstract byte[] objectToBytes(Object inObject) throws IOException, DataAccessException
inObject
- the input data
IOException
- if thrown by I/O methods
DataAccessException
- if conversion failedprotected abstract Object bytesToObject(byte[] bytes) throws IOException, DataAccessException
bytes
- the COMMAREA's bytes
IOException
- if thrown by I/O methods
DataAccessException
- if conversion failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |