[bramble] Add transactionless method for retrieving AuthorInfo to ContactManager

This commit is contained in:
Torsten Grote
2018-10-29 18:16:34 -03:00
parent 88adfabe09
commit baf64e1129
5 changed files with 67 additions and 1 deletions

View File

@@ -201,6 +201,11 @@ class ContactManagerImpl implements ContactManager {
db.removeContact(txn, c);
}
@Override
public AuthorInfo getAuthorInfo(AuthorId a) throws DbException {
return db.transactionWithResult(true, txn -> getAuthorInfo(txn, a));
}
@Override
public AuthorInfo getAuthorInfo(Transaction txn, AuthorId authorId)
throws DbException {