Thejavax.resource.cci.Interaction
enables a component to execute EIS functions. An Interaction instance supports the following ways of interacting with an EIS instance:
execute
method that takes an input Record, output Record and an InteractionSpec. This method executes the EIS function represented by the InteractionSpec and updates the output Recordexecute
method that takes an input Record and an InteractionSpec. This method implementation executes the EIS function represented by the InteractionSpec and produces the output Record as a return value.An Interaction instance is created from a Connection and is required to maintain its association with the Connection instance. The close method releases all resources maintained by the resource adapter for the Interaction. The close of an Interaction instance should not close the associated Connection instance.
ResultSet
clearWarnings() Clears all the warning reported by this Interaction instance. | |
close() Closes the current Interaction and release all the resources held for this instance by the resource adapter. | |
execute(InteractionSpec ispec,Record input) Executes an interaction represented by the InteractionSpec. | |
execute(InteractionSpec ispec,Record input,Record output) Executes an interaction represented by the InteractionSpec. | |
getConnection() Gets the Connection associated with the Interaction. | |
getWarnings() Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance. |
public voidclose() throwsResourceException
ResourceException
- Failed to close the Interaction instance. Invoking close on an already closed Interaction should also throw this exception.publicConnectiongetConnection()
public booleanexecute(InteractionSpec ispec,Record input,Record output) throwsResourceException
ispec
- InteractionSpec representing a target EIS data/function moduleinput
- Input Recordoutput
- Output RecordResourceException
- Exception if execute operation fails. Examples of error cases are:NotSupportedException
- Operation not supportedpublicRecordexecute(InteractionSpec ispec,Record input) throwsResourceException
ispec
- InteractionSpec representing a target EIS data/function moduleinput
- Input RecordResourceException
- Exception if execute operation fails. Examples of error cases are:NotSupportedException
- Operation not supportedpublicResourceWarninggetWarnings() throwsResourceException
ResourceException
- Failed to get ResourceWarnings associated with Interactionpublic voidclearWarnings() throwsResourceException
ResourceException
- Failed to clear ResourceWarnings associated with Interaction