Package org.springframework.data.mongodb
Class MongoTransactionManager.MongoTransactionObject
java.lang.Object
org.springframework.data.mongodb.MongoTransactionManager.MongoTransactionObject
- All Implemented Interfaces:
- Flushable,- SmartTransactionObject
- Enclosing class:
- MongoTransactionManager
protected static class MongoTransactionManager.MongoTransactionObject
extends Object
implements SmartTransactionObject
MongoDB specific transaction object, representing a 
MongoResourceHolder. Used as transaction object by
 MongoTransactionManager.- Since:
- 2.1
- Author:
- Christoph Strobl, Mark Paluch
- See Also:
- 
- MongoResourceHolder
 
- 
Method SummaryModifier and TypeMethodDescriptionvoidRollback (abort) the transaction.voidCommit the transaction.voidflush()com.mongodb.client.ClientSessionboolean
- 
Method Details- 
commitTransactionpublic void commitTransaction()Commit the transaction.
- 
abortTransactionpublic void abortTransaction()Rollback (abort) the transaction.
- 
getSession
- 
isRollbackOnlypublic boolean isRollbackOnly()- Specified by:
- isRollbackOnlyin interface- SmartTransactionObject
 
- 
flushpublic void flush()- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin interface- SmartTransactionObject
 
 
-