|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
| Method Summary | |
void |
clearWarnings()
Clears all warnings reported by this Interaction. |
void |
close()
Closes an interaction |
Record |
execute(InteractionSpec spec,
Record input)
Executes the interaction specified by the InteractionSpec with the specified input. |
boolean |
execute(InteractionSpec spec,
Record input,
Record output)
Executes the interaction specified by the InteractionSpec with the specified input. |
Connection |
getConnection()
Gets the connection associated with this interaction. |
ResourceWarning |
getWarnings()
Gets the first warning for this interaction. |
| Method Detail |
public void clearWarnings()
throws ResourceException
ResourceException - Thrown if operation fails.
public void close()
throws ResourceException
ResourceException - Thrown if operation fails.public Record execute(InteractionSpec spec, Record input) throws ResourceException
spec - Represents the target function on the underlying resource.input - Input Record
ResourceException - Thrown if Interaction fails.public boolean execute(InteractionSpec spec, Record input, Record output) throws ResourceException
spec - Represents the target function on the underlying resource.input - Input Recordoutput - Output record
ResourceException - Thrown if Interaction fails.public Connection getConnection() throws ResourceException
ResourceException - Thrown if operation fails.public ResourceWarning getWarnings() throws ResourceException
ResourceException - Thrown if operation fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||