required
Executes the given block within a transaction scope.
If a transaction is currently active (autoCommit = false), the block will be executed within the existing transaction. Otherwise, a new transaction is started, and it will be committed upon successful completion, or rolled back if an exception occurs.
Inside the block, manual transaction operations such as commit, rollback, and autoCommit modifications are not accessible as the receiver is restricted to OctaviusSessionOperations. A return out of the block does not compile either - use return@required, since an early exit would otherwise commit whatever the block had already done, which is the same decision the restricted receiver is there to keep out of the block.
Return
The result of the block.
Parameters
The block of code to execute.