mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Renamed a database method.
This commit is contained in:
@@ -185,7 +185,7 @@ public interface DatabaseComponent {
|
||||
* Returns the ID of the inbox group for the given contact, or null if no
|
||||
* inbox group has been set.
|
||||
*/
|
||||
GroupId getInboxGroup(ContactId c) throws DbException;
|
||||
GroupId getInboxGroupId(ContactId c) throws DbException;
|
||||
|
||||
/**
|
||||
* Returns the headers of all messages in the inbox group for the given
|
||||
|
||||
@@ -293,7 +293,7 @@ interface Database<T> {
|
||||
* <p>
|
||||
* Locking: contact read, subscription read.
|
||||
*/
|
||||
GroupId getInboxGroup(T txn, ContactId c) throws DbException;
|
||||
GroupId getInboxGroupId(T txn, ContactId c) throws DbException;
|
||||
|
||||
/**
|
||||
* Returns the headers of all messages in the inbox group for the given
|
||||
|
||||
@@ -946,7 +946,7 @@ DatabaseCleaner.Callback {
|
||||
}
|
||||
}
|
||||
|
||||
public GroupId getInboxGroup(ContactId c) throws DbException {
|
||||
public GroupId getInboxGroupId(ContactId c) throws DbException {
|
||||
contactLock.readLock().lock();
|
||||
try {
|
||||
subscriptionLock.readLock().lock();
|
||||
@@ -955,7 +955,7 @@ DatabaseCleaner.Callback {
|
||||
try {
|
||||
if(!db.containsContact(txn, c))
|
||||
throw new NoSuchContactException();
|
||||
GroupId inbox = db.getInboxGroup(txn, c);
|
||||
GroupId inbox = db.getInboxGroupId(txn, c);
|
||||
db.commitTransaction(txn);
|
||||
return inbox;
|
||||
} catch(DbException e) {
|
||||
|
||||
@@ -1351,7 +1351,7 @@ abstract class JdbcDatabase implements Database<Connection> {
|
||||
}
|
||||
}
|
||||
|
||||
public GroupId getInboxGroup(Connection txn, ContactId c)
|
||||
public GroupId getInboxGroupId(Connection txn, ContactId c)
|
||||
throws DbException {
|
||||
PreparedStatement ps = null;
|
||||
ResultSet rs = null;
|
||||
|
||||
@@ -390,7 +390,7 @@ public abstract class DatabaseComponentTest extends BriarTestCase {
|
||||
} catch(NoSuchContactException expected) {}
|
||||
|
||||
try {
|
||||
db.getInboxGroup(contactId);
|
||||
db.getInboxGroupId(contactId);
|
||||
fail();
|
||||
} catch(NoSuchContactException expected) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user