if (property == null) {
deleteConfigProperty(propertyName);
} else {
dbQueue.execute(new SQLiteJob<Object>() {
protected Object job(SQLiteConnection db) throws SQLiteException {
SQLiteStatement stmt = db.prepare("REPLACE into Configs VALUES(?, ?)");
try {
stmt.bind(1, propertyName);
stmt.bind(2, property);
stmt.step();
} finally {
stmt.dispose();
}
return null;
}
}).complete();
}