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 TypeMethodDescriptioncom.mongodb.DBObjectbuildDBObject(MongoRecord record) Build the Mongo DBObject from the Map record.buildRecordFromDBObject(com.mongodb.DBObject object) Build the Map record from the Mongo DBObject.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
-
buildDBObject
Build the Mongo DBObject from the Map record. -
buildRecordFromDBObject
Build the Map record from the Mongo DBObject. -
getConnection
- Specified by:
getConnectionin interfaceInteraction
-
getWarnings
- Specified by:
getWarningsin interfaceInteraction
-