INT-2040 changed signature of MessageStore.getMessageCount() to return long. Changed affected implementations

This commit is contained in:
Oleg Zhurakousky
2011-08-11 13:07:41 -04:00
parent 94dea0855d
commit 521a602dad
6 changed files with 6 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ public class MongoDbMessageStore implements MessageStore, BeanClassLoaderAware {
return this.template.findOne(this.idQuery(id), Message.class, this.collectionName);
}
public int getMessageCount() {
public long getMessageCount() {
// TODO: long to int
return new Long(this.template.getCollection(DEFAULT_COLLECTION_NAME).getCount()).intValue();
}