public interface DbCode
| Modifier and Type | Method and Description |
|---|---|
void |
run(Supplier<Database> dbs)
Implement this method to provide a block of code that uses the provided database
and is transacted.
|
void run(Supplier<Database> dbs) 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.