public class

SimpleRecordOperation

extends EisOperation
java.lang.Object
   ↳ org.springframework.jca.cci.object.EisOperation
     ↳ org.springframework.jca.cci.object.SimpleRecordOperation

Class Overview

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

Summary

Public Constructors
SimpleRecordOperation()
Constructor that allows use as a JavaBean.
SimpleRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)
Convenient constructor with ConnectionFactory and specifications (connection and interaction).
Public Methods
void execute(Record inputRecord, Record outputRecord)
Execute the CCI interaction encapsulated by this operation object.
Record execute(Record inputRecord)
Execute the CCI interaction encapsulated by this operation object.
[Expand]
Inherited Methods
From class org.springframework.jca.cci.object.EisOperation
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public SimpleRecordOperation ()

Constructor that allows use as a JavaBean.

public SimpleRecordOperation (ConnectionFactory connectionFactory, InteractionSpec interactionSpec)

Convenient constructor with ConnectionFactory and specifications (connection and interaction).

Parameters
connectionFactory ConnectionFactory to use to obtain connections

Public Methods

public void execute (Record inputRecord, Record outputRecord)

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
  • javax.resource.cci.Interaction#execute(javax.resource.cci.InteractionSpec, Record, Record)

public Record execute (Record inputRecord)

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
  • javax.resource.cci.Interaction#execute(javax.resource.cci.InteractionSpec, Record)