Skip to content

Commit

Permalink
Adapt to API changes in Spring Framework.
Browse files Browse the repository at this point in the history
The constructor for DefaultTransaction now requires a name and `nested` flag.

Closes #2016
  • Loading branch information
schauder committed Jan 8, 2025
1 parent 1549f8b commit 3e295a9
Showing 1 changed file with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,29 @@
*/
public class CouchbaseTransactionStatus extends DefaultTransactionStatus {

/**
* Create a new {@code DefaultTransactionStatus} instance.
*
* @param transaction underlying transaction object that can hold state
* for the internal transaction implementation
* @param newTransaction if the transaction is new, otherwise participating
* in an existing transaction
* @param newSynchronization if a new transaction synchronization has been
* opened for the given transaction
* @param readOnly whether the transaction is marked as read-only
* @param debug 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.
* @param suspendedResources a holder for resources that have been suspended
*/
public CouchbaseTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) {
super(transaction,
newTransaction,
newSynchronization,
readOnly,
debug,
suspendedResources);
}
/**
* Create a new {@code DefaultTransactionStatus} instance.
*
* @param transaction underlying transaction object that can hold state
* for the internal transaction implementation
* @param newTransaction if the transaction is new, otherwise participating
* in an existing transaction
* @param newSynchronization if a new transaction synchronization has been
* opened for the given transaction
* @param readOnly whether the transaction is marked as read-only
* @param debug 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.
* @param suspendedResources a holder for resources that have been suspended
*/
public CouchbaseTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) {
super(null,
transaction,
newTransaction,
newSynchronization,
false,
readOnly,
debug,
suspendedResources);
}
}

0 comments on commit 3e295a9

Please sign in to comment.