final long fileId = dbQueue.execute(new SQLiteJob<Long>() {
protected Long job(SQLiteConnection db) throws SQLiteException {
SQLiteStatement stmt = db.prepare("INSERT into Files VALUES(null, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
try {
stmt.bind(1, isDir ? "True" : "False").bind(2, crawlId).bind(3, fName).bind(4, fstatus.getOwner()).bind(5, fstatus.getGroup()).bind(6, permissions).bind(7, fstatus.getLen()).bind(8, fileDateFormat.format(new Date(fstatus.getModificationTime()))).bind(9, parentPath);
stmt.step();
return db.getLastInsertId();
} finally {
stmt.dispose();
}
}