Save This Page
Home » glassfish-v2ur2-b04-src » javax.resource.cci » [javadoc | source]
javax.resource.cci
public interface: Interaction [javadoc | source] The javax.resource.cci.Interaction enables a component to execute EIS functions. An Interaction instance supports the following ways of interacting with an EIS instance:

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.

Method from javax.resource.cci.Interaction Summary:
clearWarnings,   close,   execute,   execute,   getConnection,   getWarnings
Method from javax.resource.cci.Interaction Detail:
 public  void clearWarnings() throws ResourceException
    Clears all the warning reported by this Interaction instance. After a call to this method, the method getWarnings will return null until a new warning is reported for this Interaction.
 public  void close() throws ResourceException
    Closes the current Interaction and release all the resources held for this instance by the resource adapter. The close of an Interaction instance does not close the associated Connection instance. It is recommended that Interaction instances be closed explicitly to free any held resources.
 public Record execute(InteractionSpec ispec,
    Record input) throws ResourceException
    Executes an interaction represented by the InteractionSpec. This form of invocation takes an input Record and returns an output Record if the execution of the Interaction has been successfull.
 public boolean execute(InteractionSpec ispec,
    Record input,
    Record output) throws ResourceException
    Executes an interaction represented by the InteractionSpec. This form of invocation takes an input Record and updates the output Record.
 public Connection getConnection()
    Gets the Connection associated with the Interaction.
 public ResourceWarning getWarnings() throws ResourceException
    Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance.