You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Execute a unit of work in a managed {@link AccessMode#READ read} transaction.
78
-
* <p>
79
-
* This transaction will automatically be committed unless an exception is thrown during query execution or by the user code.
80
-
* <p>
81
-
* Managed transactions should not be explicitly committed (via {@link Transaction#commit()}).
82
-
*
83
-
* @param work the {@link TransactionWork} to be applied to a new read transaction.
84
-
* @param <T> the return type of the given unit of work.
85
-
* @return a result as returned by the given unit of work.
86
-
* @deprecated superseded by {@link #executeRead(TransactionCallback)}.
87
-
*/
88
-
@Deprecated
89
-
<T> TreadTransaction(TransactionWork<T> work);
90
-
91
76
/**
92
77
* Execute a unit of work as a single, managed transaction with {@link AccessMode#READ read} access mode and retry behaviour. The transaction allows for one
93
78
* or more statements to be run.
@@ -105,22 +90,6 @@ default <T> T executeRead(TransactionCallback<T> callback) {
* Execute a unit of work as a single, managed transaction with {@link AccessMode#READ read} access mode and retry behaviour. The transaction allows for one
126
95
* or more statements to be run.
@@ -137,21 +106,6 @@ default <T> T executeRead(TransactionCallback<T> callback) {
* Execute a unit of work in a managed {@link AccessMode#WRITE write} transaction.
142
-
* <p>
143
-
* This transaction will automatically be committed unless an exception is thrown during query execution or by the user code.
144
-
* <p>
145
-
* Managed transactions should not be explicitly committed (via {@link Transaction#commit()}).
146
-
*
147
-
* @param work the {@link TransactionWork} to be applied to a new write transaction.
148
-
* @param <T> the return type of the given unit of work.
149
-
* @return a result as returned by the given unit of work.
150
-
* @deprecated superseded by {@link #executeWrite(TransactionCallback)}.
151
-
*/
152
-
@Deprecated
153
-
<T> TwriteTransaction(TransactionWork<T> work);
154
-
155
109
/**
156
110
* Execute a unit of work as a single, managed transaction with {@link AccessMode#WRITE write} access mode and retry behaviour. The transaction allows for
* Execute a unit of work as a single, managed transaction with {@link AccessMode#WRITE write} access mode and retry behaviour. The transaction allows for one or more statements to be run.
* Execute a unit of work as a single, managed transaction with {@link AccessMode#READ read} access mode and retry behaviour. The transaction allows for one
* Execute a unit of work as a single, managed transaction with {@link AccessMode#READ read} access mode and retry behaviour. The transaction allows for one or more statements to be run.
* Execute a unit of work as a single, managed transaction with {@link AccessMode#WRITE write} access mode and retry behaviour. The transaction allows for
* Execute a unit of work as a single, managed transaction with {@link AccessMode#WRITE write} access mode and retry behaviour. The transaction allows for one or more statements to be run.
0 commit comments