Skip to content

Commit 39e0ee6

Browse files
schauderarefbehboudi
authored andcommitted
Adapt to API changes in Spring Framework.
The constructor for DefaultTransaction now requires a name and `nested` flag. Closes #2016 Signed-off-by: arefbehboudi <[email protected]>
1 parent 1549f8b commit 39e0ee6

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

Diff for: src/main/java/org/springframework/data/couchbase/transaction/CouchbaseTransactionStatus.java

+25-23
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,29 @@
2424
*/
2525
public class CouchbaseTransactionStatus extends DefaultTransactionStatus {
2626

27-
/**
28-
* Create a new {@code DefaultTransactionStatus} instance.
29-
*
30-
* @param transaction underlying transaction object that can hold state
31-
* for the internal transaction implementation
32-
* @param newTransaction if the transaction is new, otherwise participating
33-
* in an existing transaction
34-
* @param newSynchronization if a new transaction synchronization has been
35-
* opened for the given transaction
36-
* @param readOnly whether the transaction is marked as read-only
37-
* @param debug should debug logging be enabled for the handling of this transaction?
38-
* Caching it in here can prevent repeated calls to ask the logging system whether
39-
* debug logging should be enabled.
40-
* @param suspendedResources a holder for resources that have been suspended
41-
*/
42-
public CouchbaseTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) {
43-
super(transaction,
44-
newTransaction,
45-
newSynchronization,
46-
readOnly,
47-
debug,
48-
suspendedResources);
49-
}
27+
/**
28+
* Create a new {@code DefaultTransactionStatus} instance.
29+
*
30+
* @param transaction underlying transaction object that can hold state
31+
* for the internal transaction implementation
32+
* @param newTransaction if the transaction is new, otherwise participating
33+
* in an existing transaction
34+
* @param newSynchronization if a new transaction synchronization has been
35+
* opened for the given transaction
36+
* @param readOnly whether the transaction is marked as read-only
37+
* @param debug should debug logging be enabled for the handling of this transaction?
38+
* Caching it in here can prevent repeated calls to ask the logging system whether
39+
* debug logging should be enabled.
40+
* @param suspendedResources a holder for resources that have been suspended
41+
*/
42+
public CouchbaseTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) {
43+
super(null,
44+
transaction,
45+
newTransaction,
46+
newSynchronization,
47+
false,
48+
readOnly,
49+
debug,
50+
suspendedResources);
51+
}
5052
}

0 commit comments

Comments
 (0)