Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.jca.cci.object
Class SimpleRecordOperation

    java.lang.Object
      org.springframework.jca.cci.object.EisOperation
          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(javax.resource.cci.ConnectionFactory connectionFactory, javax.resource.cci.InteractionSpec interactionSpec)` Convenient constructor with ConnectionFactory and specifications (connection and interaction).

Method Summary
`javax.resource.cci.Record` | `execute(javax.resource.cci.Record inputRecord)` Execute the CCI interaction encapsulated by this operation object.
`void` | `execute(javax.resource.cci.Record inputRecord, javax.resource.cci.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(javax.resource.cci.ConnectionFactory connectionFactory,
                                 javax.resource.cci.InteractionSpec interactionSpec)

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

  Parameters:
    `connectionFactory` - ConnectionFactory to use to obtain connections

Method Detail

### execute

    public javax.resource.cci.Record execute(javax.resource.cci.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(javax.resource.cci.Record inputRecord,
                        javax.resource.cci.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)`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD