q.descend("mIndex").constrain(index).greater();
return new Persistent.InitializingObjectSet<DownloadedMessageLink>(mFreetalk, q.execute());
}
private final DownloadedMessageLink getDownloadedMessageByIndex(int index) throws NoSuchMessageException {
final Query q = mDB.query();
q.constrain(DownloadedMessageLink.class);
q.descend("mBoard").constrain(this).identity();
q.descend("mIndex").constrain(index);
final ObjectSet<DownloadedMessageLink> messageLinks = new Persistent.InitializingObjectSet<Board.DownloadedMessageLink>(mFreetalk, q);
switch(messageLinks.size()) {
case 0: throw new NoSuchMessageException("index: " + index);
case 1: return messageLinks.next();