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
Modifier and TypeFieldDescriptionprotected MongoConnection
Store the connection the interaction was created from. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.DBObject
buildDBObject
(MongoRecord record) Build the Mongo DBObject from the Map record.buildRecordFromDBObject
(com.mongodb.DBObject object) Build the Map record from the Mongo DBObject.void
void
close()
execute
(InteractionSpec spec, Record record) Execute the interaction and return output record.boolean
execute
(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:
clearWarnings
in interfaceInteraction
-
close
public void close()- Specified by:
close
in interfaceInteraction
-
execute
Output records are not supported/required.- Specified by:
execute
in interfaceInteraction
- Throws:
ResourceException
-
execute
Execute the interaction and return output record. The spec is either GET, PUT or DELETE interaction.- Specified by:
execute
in interfaceInteraction
- Throws:
ResourceException
-
buildDBObject
Build the Mongo DBObject from the Map record. -
buildRecordFromDBObject
Build the Map record from the Mongo DBObject. -
getConnection
- Specified by:
getConnection
in interfaceInteraction
-
getWarnings
- Specified by:
getWarnings
in interfaceInteraction
-