类 SimpleRecordOperation
- java.lang.Object
- org.springframework.jca.cci.object.EisOperation
- org.springframework.jca.cci.object.SimpleRecordOperation
- 所有已实现的接口:
InitializingBean
public class SimpleRecordOperation extends EisOperation
EIS operation object that accepts a passed-in CCI input Record and returns a corresponding CCI output Record.- 从以下版本开始:
- 1.2
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 SimpleRecordOperation()
Constructor that allows use as a JavaBean.SimpleRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
Convenient constructor with ConnectionFactory and specifications (connection and interaction).
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Record
execute(Record inputRecord)
Execute the CCI interaction encapsulated by this operation object.void
execute(Record inputRecord, Record outputRecord)
Execute the CCI interaction encapsulated by this operation object.从类继承的方法 org.springframework.jca.cci.object.EisOperation
afterPropertiesSet, getCciTemplate, getInteractionSpec, setCciTemplate, setConnectionFactory, setInteractionSpec
构造器详细资料
SimpleRecordOperation
public SimpleRecordOperation()
Constructor that allows use as a JavaBean.
SimpleRecordOperation
public SimpleRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
Convenient constructor with ConnectionFactory and specifications (connection and interaction).- 参数:
connectionFactory
- ConnectionFactory to use to obtain connections
方法详细资料
execute
public Record execute(Record inputRecord) throws DataAccessException
Execute the CCI interaction encapsulated by this operation object.This method will call CCI's
Interaction.execute
variant that returns an output Record.- 参数:
inputRecord
- the input record- 返回:
- the output record
- 抛出:
DataAccessException
- if there is any problem- 另请参阅:
Interaction.execute(javax.resource.cci.InteractionSpec, Record)
execute
public void execute(Record inputRecord, Record outputRecord) throws DataAccessException
Execute the CCI interaction encapsulated by this operation object.This method will call CCI's
Interaction.execute
variant with a passed-in output Record.- 参数:
inputRecord
- the input recordoutputRecord
- the output record- 抛出:
DataAccessException
- if there is any problem- 另请参阅:
Interaction.execute(javax.resource.cci.InteractionSpec, Record, Record)