Renamed a database method.

This commit is contained in:
akwizgran
2013-12-22 01:56:11 +00:00
parent f1af27554d
commit ff01b181bc
5 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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) {

View File

@@ -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;

View File

@@ -390,7 +390,7 @@ public abstract class DatabaseComponentTest extends BriarTestCase {
} catch(NoSuchContactException expected) {}
try {
db.getInboxGroup(contactId);
db.getInboxGroupId(contactId);
fail();
} catch(NoSuchContactException expected) {}