类 MappingCommAreaOperation
- java.lang.Object
- org.springframework.jca.cci.object.EisOperation
- org.springframework.jca.cci.object.MappingRecordOperation
- org.springframework.jca.cci.object.MappingCommAreaOperation
- 所有已实现的接口:
InitializingBean
public abstract class MappingCommAreaOperation extends MappingRecordOperation
EIS operation object for access to COMMAREA records. Subclass of the generic MappingRecordOperation class.- 从以下版本开始:
- 1.2
- 作者:
- Thierry Templier
嵌套类概要
从类继承的嵌套类/接口 org.springframework.jca.cci.object.MappingRecordOperation
MappingRecordOperation.RecordCreatorImpl, MappingRecordOperation.RecordExtractorImpl
构造器概要
构造器 构造器 说明 MappingCommAreaOperation()
Create a new MappingCommAreaQuery.MappingCommAreaOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
Create a new MappingCommAreaQuery.
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 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 theexecute
method.protected Object
extractOutputData(Record record)
Subclasses must implement this method to convert the Record returned by CCI execution into a result object for theexecute
method.protected abstract byte[]
objectToBytes(Object inObject)
Method used to convert an object into COMMAREA bytes.从类继承的方法 org.springframework.jca.cci.object.MappingRecordOperation
execute, setOutputRecordCreator
从类继承的方法 org.springframework.jca.cci.object.EisOperation
afterPropertiesSet, getCciTemplate, getInteractionSpec, setCciTemplate, setConnectionFactory, setInteractionSpec
构造器详细资料
MappingCommAreaOperation
public MappingCommAreaOperation()
Create a new MappingCommAreaQuery.
MappingCommAreaOperation
public MappingCommAreaOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
Create a new MappingCommAreaQuery.- 参数:
connectionFactory
- ConnectionFactory to use to obtain connectionsinteractionSpec
- specification to configure the interaction
方法详细资料
createInputRecord
protected final Record createInputRecord(RecordFactory recordFactory, Object inObject)
从类复制的说明:MappingRecordOperation
Subclasses must implement this method to generate an input Record from an input object passed into theexecute
method.- 指定者:
createInputRecord
在类中MappingRecordOperation
inObject
- the passed-in input object- 返回:
- the CCI input Record
- 另请参阅:
MappingRecordOperation.execute(Object)
extractOutputData
protected final Object extractOutputData(Record record) throws DataAccessException
从类复制的说明:MappingRecordOperation
Subclasses must implement this method to convert the Record returned by CCI execution into a result object for theexecute
method.- 指定者:
extractOutputData
在类中MappingRecordOperation
- 参数:
record
- the Record returned by CCI execution- 返回:
- the result object
- 抛出:
DataAccessException
- 另请参阅:
MappingRecordOperation.execute(Object)
objectToBytes
protected abstract byte[] objectToBytes(Object inObject) throws IOException, DataAccessException
Method used to convert an object into COMMAREA bytes.- 参数:
inObject
- the input data- 返回:
- the COMMAREA's bytes
- 抛出:
IOException
- if thrown by I/O methodsDataAccessException
- if conversion failed
bytesToObject
protected abstract Object bytesToObject(byte[] bytes) throws IOException, DataAccessException
Method used to convert the COMMAREA's bytes to an object.- 参数:
bytes
- the COMMAREA's bytes- 返回:
- the output data
- 抛出:
IOException
- if thrown by I/O methodsDataAccessException
- if conversion failed