Class AQInteraction
java.lang.Object
org.eclipse.persistence.internal.eis.adapters.aq.AQInteraction
- All Implemented Interfaces:
Interaction
Interaction to Oracle AQ JCA adapter.
Executes the interaction spec to enqueue or dequeue a message.
- Since:
- OracleAS TopLink 10g (10.0.3)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AQConnectionStore the connection the interaction was created from. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()execute(InteractionSpec spec, Record input) Execute the interaction spec.booleanexecute(InteractionSpec spec, Record input, Record output) Execute the interaction and set the output into the output record.protected voidexecuteDequeueInteraction(AQDequeueInteractionSpec spec, AQRecord input, AQRecord output) Execute the dequeue interaction.protected voidexecuteEnqueueInteraction(AQEnqueueInteractionSpec spec, AQRecord input, AQRecord output) Execute the enqueue interaction.
-
Field Details
-
connection
Store the connection the interaction was created from.
-
-
Constructor Details
-
AQInteraction
Default constructor.
-
-
Method Details
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceInteraction
-
close
public void close()- Specified by:
closein interfaceInteraction
-
execute
Execute the interaction spec. The spec is either an enqueue or dequeue interaction.- Specified by:
executein interfaceInteraction- Throws:
ResourceException
-
execute
Execute the interaction and set the output into the output record. The spec is either an enqueue or dequeue interaction. Only raw messages are supported.- Specified by:
executein interfaceInteraction- Throws:
ResourceException
-
executeEnqueueInteraction
protected void executeEnqueueInteraction(AQEnqueueInteractionSpec spec, AQRecord input, AQRecord output) throws ResourceException Execute the enqueue interaction. Only raw messages are supported.- Throws:
ResourceException
-
executeDequeueInteraction
protected void executeDequeueInteraction(AQDequeueInteractionSpec spec, AQRecord input, AQRecord output) throws ResourceException Execute the dequeue interaction. Only raw messages are supported.- Throws:
ResourceException
-
getConnection
- Specified by:
getConnectionin interfaceInteraction
-
getWarnings
- Specified by:
getWarningsin interfaceInteraction
-