站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

SimpleRecordOperation (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.jca.cci.object
Class SimpleRecordOperation

java.lang.Object
  extended by org.springframework.jca.cci.object.EisOperation
      extended by org.springframework.jca.cci.object.SimpleRecordOperation
All Implemented Interfaces:
InitializingBean

public class SimpleRecordOperation
extends EisOperation

EIS operation object that accepts a passed-in CCI input Record and returns a corresponding CCI output Record.

Since:
1.2
Author:
Juergen Hoeller

Constructor Summary
SimpleRecordOperation()
          Constructor that allows use as a JavaBean.
SimpleRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
          Convenient constructor with ConnectionFactory and specifications (connection and interaction).
 
Method Summary
 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.
 
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

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).

Parameters:
connectionFactory - ConnectionFactory to use to obtain connections
Method Detail

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.

Parameters:
inputRecord - the input record
Returns:
the output record
Throws:
DataAccessException - if there is any problem
See Also:
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.

Parameters:
inputRecord - the input record
outputRecord - the output record
Throws:
DataAccessException - if there is any problem
See Also:
Interaction.execute(javax.resource.cci.InteractionSpec, Record, Record)


Copyright (c) 2002-2007 The Spring Framework Project.