R
- optional return type for runInTransaction(Callable, TransactionIsolation)
public interface Transactionable<R>
Modifier and Type | Method and Description |
---|---|
<V> R |
runInTransaction(Callable<V> callable)
Runs the given callable in a transaction.
|
<V> R |
runInTransaction(Callable<V> callable,
TransactionIsolation isolation)
Runs the given callable in a transaction.
|
Transaction |
transaction() |
Transaction transaction()
<V> R runInTransaction(Callable<V> callable)
V
- call result typecallable
- to run<V> R runInTransaction(Callable<V> callable, TransactionIsolation isolation)
V
- call result typecallable
- to runisolation
- isolation level for the transaction