Lines Matching defs:FileEntry
37 private static final String TABLE_NAME = FileEntry.SCHEMA.getTableName();
42 FileEntry.Columns.HASH_CODE + "=? AND " + FileEntry.Columns.CONTENT_URL + "=?";
43 private static final String ID_WHERE = FileEntry.Columns.ID + "=?";
45 {String.format("sum(%s)", FileEntry.Columns.SIZE)};
47 FileEntry.Columns.ID, FileEntry.Columns.FILENAME,
48 FileEntry.Columns.CONTENT_URL, FileEntry.Columns.SIZE};
50 String.format("%s ASC", FileEntry.Columns.LAST_ACCESS);
104 FileEntry entry = new FileEntry();
115 FileEntry original = queryDatabase(downloadUrl);
123 FileEntry.SCHEMA.insertOrReplace(
144 FileEntry file = queryDatabase(downloadUrl);
165 private FileEntry queryDatabase(String downloadUrl) {
169 FileEntry.SCHEMA.getProjection(),
173 FileEntry entry = new FileEntry();
174 FileEntry.SCHEMA.cursorToObject(cursor, entry);
184 values.put(FileEntry.Columns.LAST_ACCESS, System.currentTimeMillis());
250 private static class FileEntry extends Entry {
251 public static final EntrySchema SCHEMA = new EntrySchema(FileEntry.class);
295 FileEntry.SCHEMA.createTables(db);
308 FileEntry.SCHEMA.dropTables(db);