-
public interface Interaction
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.
- Since:
- 0.8
- Version:
- 0.8
- Author:
- Rahul Sharma
- See Also:
ResultSet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
clearWarnings()
Clears all the warning reported by this Interaction instance.void
close()
Closes the current Interaction and release all the resources held for this instance by the resource adapter.Record
execute(InteractionSpec ispec, Record input)
Executes an interaction represented by the InteractionSpec.boolean
execute(InteractionSpec ispec, Record input, Record output)
Executes an interaction represented by the InteractionSpec.Connection
getConnection()
Gets the Connection associated with the Interaction.ResourceWarning
getWarnings()
Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance.
-
-
-
Method Detail
-
close
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.- Throws:
ResourceException
- Failed to close the Interaction instance. Invoking close on an already closed Interaction should also throw this exception.
-
getConnection
Connection getConnection()
Gets the Connection associated with the Interaction.- Returns:
- Connection instance associated with the Interaction
-
execute
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.- Parameters:
ispec
- InteractionSpec representing a target EIS data/function moduleinput
- Input Recordoutput
- Output Record- Returns:
- true if execution of the EIS function has been successful and output Record has been updated; false otherwise
- Throws:
ResourceException
- Exception if execute operation fails. Examples of error cases are:- Resource adapter internal, EIS-specific or communication error
- Invalid specification of an InteractionSpec, input or output record structure
- Errors in use of input or output Record
- Invalid connection associated with this Interaction
NotSupportedException
- Operation not supported
-
execute
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.- Parameters:
ispec
- InteractionSpec representing a target EIS data/function moduleinput
- Input Record- Returns:
- output Record if execution of the EIS function has been successful; null otherwise
- Throws:
ResourceException
- Exception if execute operation fails. Examples of error cases are:- Resource adapter internal, EIS-specific or communication error
- Invalid specification of an InteractionSpec or input record structure
- Errors in use of input Record or creation of an output Record
- Invalid connection associated with this Interaction
NotSupportedException
- Operation not supported
-
getWarnings
ResourceWarning getWarnings() throws ResourceException
Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance.- Returns:
- ResourceWarning at top of the warning chain
- Throws:
ResourceException
- Failed to get ResourceWarnings associated with Interaction
-
clearWarnings
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.- Throws:
ResourceException
- Failed to clear ResourceWarnings associated with Interaction
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/resource/cci/Interaction.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.