Javadoc tidy for Database and DB

This commit is contained in:
Rob Bygrave
2022-07-29 16:46:18 +12:00
parent 7a0de51721
commit 4bdcd49eab
+10 -10
View File
@@ -553,7 +553,7 @@ public interface Database {
* txn.commit();
*
* } finally {
* txn.end();
* txn.end();
* }
* }</pre>
*
@@ -1285,16 +1285,16 @@ public interface Database {
* semantics.
*
* <pre>{@code
* // set specific transactional scope settings
* TxScope scope = TxScope.requiresNew().setIsolation(TxIsolation.SERIALIZABLE);
* // set specific transactional scope settings
* TxScope scope = TxScope.requiresNew().setIsolation(TxIsolation.SERIALIZABLE);
*
* database.executeCall(scope, new Callable<String>() {
* public String call() {
* User u1 = database.find(User.class, 1);
* ...
* return u1.getEmail();
* }
* });
* database.executeCall(scope, new Callable<String>() {
* public String call() {
* User u1 = database.find(User.class, 1);
* ...
* return u1.getEmail();
* }
* });
*
* }</pre>
*/