public interface DbCodeTypedTx<T>
| Modifier and Type | Method and Description |
|---|---|
T |
run(Supplier<Database> db,
Transaction tx)
Implement this method to provide a block of code that uses the provided database
and is transacted.
|
T run(Supplier<Database> db, Transaction tx) throws Exception
If a Throwable is thrown from this method, it will be caught, wrapped in
a DatabaseException (if it is not already one), and then propagated.
ExceptionCopyright © 2020. All rights reserved.