T
- the return type of this work.public interface TransactionWork<T>
Transaction
.
To be used with Session.readTransaction(TransactionWork)
and
Session.writeTransaction(TransactionWork)
methods.Modifier and Type | Method and Description |
---|---|
T |
execute(Transaction tx)
Executes all given operations against the same transaction.
|
T execute(Transaction tx)
tx
- the transaction to use.null
if none.