T - The resource type, such as the connection.public interface TransactionOperations<T>
| Modifier and Type | Method and Description |
|---|---|
<R> R |
execute(TransactionDefinition definition,
TransactionCallback<T,R> callback)
Execute a read-only transaction within the context of the function.
|
<R> R |
executeRead(TransactionCallback<T,R> callback)
Execute a read-only transaction within the context of the function.
|
<R> R |
executeWrite(TransactionCallback<T,R> callback)
Execute a default transaction within the context of the function.
|
T |
getConnection()
Obtains the connection for the current transaction.
|
@NonNull T getConnection()
NoTransactionException - if no
connection exists for the current transaction<R> R execute(@NonNull
TransactionDefinition definition,
@NonNull
TransactionCallback<T,R> callback)
R - The resultdefinition - The transaction definitioncallback - The call back<R> R executeRead(@NonNull
TransactionCallback<T,R> callback)
R - The resultcallback - The call back<R> R executeWrite(@NonNull
TransactionCallback<T,R> callback)
R - The resultcallback - The call back