Class MongoInteraction
java.lang.Object
org.eclipse.persistence.internal.nosql.adapters.mongo.MongoInteraction
- All Implemented Interfaces:
Interaction
Interaction to Mongo JCA adapter.
Executes the interaction spec to enqueue or dequeue a message.
- Since:
- EclipseLink 2.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MongoConnectionStore the connection the interaction was created from. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.DocumentbuildDocument(MongoRecord record) Build the Document (BSON flexible) from the Map record.buildRecordFromDocument(org.bson.Document document) Build the Map record from the Document (BSON flexible).voidvoidclose()execute(InteractionSpec spec, Record record) Execute the interaction and return output record.booleanexecute(InteractionSpec spec, Record input, Record output) Output records are not supported/required.
-
Field Details
-
connection
Store the connection the interaction was created from.
-
-
Constructor Details
-
MongoInteraction
Default constructor.
-
-
Method Details
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceInteraction
-
close
public void close()- Specified by:
closein interfaceInteraction
-
execute
Output records are not supported/required.- Specified by:
executein interfaceInteraction- Throws:
ResourceException
-
execute
Execute the interaction and return output record. The spec is either GET, PUT or DELETE interaction.- Specified by:
executein interfaceInteraction- Throws:
ResourceException
-
buildDocument
Build the Document (BSON flexible) from the Map record. -
buildRecordFromDocument
Build the Map record from the Document (BSON flexible). -
getConnection
- Specified by:
getConnectionin interfaceInteraction
-
getWarnings
- Specified by:
getWarningsin interfaceInteraction
-