Class CouchbaseTransactionStatus
java.lang.Object
org.springframework.transaction.support.AbstractTransactionStatus
org.springframework.transaction.support.DefaultTransactionStatus
org.springframework.data.couchbase.transaction.CouchbaseTransactionStatus
- All Implemented Interfaces:
Flushable
,SavepointManager
,TransactionExecution
,TransactionStatus
Couchbase transaction status for Spring Data transaction framework.
- Author:
- Graham Pople
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseTransactionStatus
(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) Create a newDefaultTransactionStatus
instance. -
Method Summary
Methods inherited from class org.springframework.transaction.support.DefaultTransactionStatus
flush, getSavepointManager, getSuspendedResources, getTransaction, hasTransaction, isDebug, isGlobalRollbackOnly, isNewSynchronization, isNewTransaction, isReadOnly, isTransactionSavepointManager
Methods inherited from class org.springframework.transaction.support.AbstractTransactionStatus
createAndHoldSavepoint, createSavepoint, getSavepoint, hasSavepoint, isCompleted, isLocalRollbackOnly, isRollbackOnly, releaseHeldSavepoint, releaseSavepoint, rollbackToHeldSavepoint, rollbackToSavepoint, setCompleted, setRollbackOnly, setSavepoint
-
Constructor Details
-
CouchbaseTransactionStatus
public CouchbaseTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) Create a newDefaultTransactionStatus
instance.- Parameters:
transaction
- underlying transaction object that can hold state for the internal transaction implementationnewTransaction
- if the transaction is new, otherwise participating in an existing transactionnewSynchronization
- if a new transaction synchronization has been opened for the given transactionreadOnly
- whether the transaction is marked as read-onlydebug
- should debug logging be enabled for the handling of this transaction? Caching it in here can prevent repeated calls to ask the logging system whether debug logging should be enabled.suspendedResources
- a holder for resources that have been suspended
-