d.setDownloadTime(rs.getLong(Download.PROP_DOWNLOADTIME));
d.setDownloaded(rs.getLong(Download.PROP_DOWNLOADED));
d.setMessage(rs.getString(Download.PROP_MESSAGE));
d.setResponseCode(rs.getInt(Download.PROP_RESPONSECODE));
d.setSize(rs.getLong(Download.PROP_SIZE));
DownloadStatus s = (DownloadStatus) rs.getObject(Download.PROP_STATUS);
if (s == DownloadStatus.COMPLETE) {
Downloads.setStatus(d, DownloadStatus.COMPLETE);
} else if (s == DownloadStatus.STOPPED) {
Downloads.setStatus(d, DownloadStatus.STOPPED);
} else if (s == DownloadStatus.ERROR) {