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 * Returns the ID of the inbox group for the given contact, or null if no
* inbox group has been set. * 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 * Returns the headers of all messages in the inbox group for the given

View File

@@ -293,7 +293,7 @@ interface Database<T> {
* <p> * <p>
* Locking: contact read, subscription read. * 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 * 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(); contactLock.readLock().lock();
try { try {
subscriptionLock.readLock().lock(); subscriptionLock.readLock().lock();
@@ -955,7 +955,7 @@ DatabaseCleaner.Callback {
try { try {
if(!db.containsContact(txn, c)) if(!db.containsContact(txn, c))
throw new NoSuchContactException(); throw new NoSuchContactException();
GroupId inbox = db.getInboxGroup(txn, c); GroupId inbox = db.getInboxGroupId(txn, c);
db.commitTransaction(txn); db.commitTransaction(txn);
return inbox; return inbox;
} catch(DbException e) { } 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 { throws DbException {
PreparedStatement ps = null; PreparedStatement ps = null;
ResultSet rs = null; ResultSet rs = null;

View File

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