protected static class MongoTransactionManager.MongoTransactionObject extends Object implements org.springframework.transaction.support.SmartTransactionObject
MongoResourceHolder
. Used as transaction object by
MongoTransactionManager
.MongoResourceHolder
Modifier and Type | Method and Description |
---|---|
void |
abortTransaction()
Rollback (abort) the transaction.
|
void |
commitTransaction()
Commit the transaction.
|
void |
flush() |
com.mongodb.client.ClientSession |
getSession() |
boolean |
isRollbackOnly() |
public void commitTransaction()
public void abortTransaction()
@Nullable public com.mongodb.client.ClientSession getSession()
public boolean isRollbackOnly()
isRollbackOnly
in interface org.springframework.transaction.support.SmartTransactionObject
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.