Class MongoTransaction
java.lang.Object
org.eclipse.persistence.internal.nosql.adapters.mongo.MongoTransaction
- All Implemented Interfaces:
LocalTransaction
Transaction to Mongo adapter.
- Since:
- EclipseLink 2.4
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
isInTransaction
protected boolean isInTransaction -
connection
-
-
Constructor Details
-
MongoTransaction
Default constructor.
-
-
Method Details
-
begin
public void begin()Record that a transaction has begun.- Specified by:
begin
in interfaceLocalTransaction
-
isInTransaction
public boolean isInTransaction()Return if currently within a transaction. -
commit
Commit the current transaction.- Specified by:
commit
in interfaceLocalTransaction
- Throws:
ResourceException
-
rollback
Rollback the current transaction.- Specified by:
rollback
in interfaceLocalTransaction
- Throws:
ResourceException
-