| javax.resource.cci.Interaction
Interaction | public interface Interaction (Code) | | The Interaction enables a component to execute functions on the underlying
resource. An object implementing the Interaction interface supports two
execute() methods for interacting with the underlying resource.
An Interaction is created from a Connection and maintains an association
with the Connection for its entire lifetime.
version: $Revision: 57196 $ |
execute | public Record execute(InteractionSpec spec, Record input) throws ResourceException(Code) | | Executes the interaction specified by the InteractionSpec with the
specified input.
Parameters: spec - Represents the target function on the underlying resource. Parameters: input - Input Record @returns Record Output if successful, null ifnot. exception: ResourceException - Thrown if Interaction fails. |
execute | public boolean execute(InteractionSpec spec, Record input, Record output) throws ResourceException(Code) | | Executes the interaction specified by the InteractionSpec with the
specified input.
Parameters: spec - Represents the target function on the underlying resource. Parameters: input - Input Record Parameters: output - Output record @returns boolean True if successful, false ifnot exception: ResourceException - Thrown if Interaction fails. |
getConnection | public Connection getConnection()(Code) | | Gets the connection associated with this interaction.
|
|
|