updateEntry method
Update an entry in this table.
Implementation
Future<bool> updateEntry(T entry) async {
if (entry.id.value == null) return await insertEntry(entry);
try {
await entry.beforeSave(false);
var db = await _initializeDB();
var map = <String, dynamic>{};
entry.modificationTime.value = DateTime.now();
_setEntryToMap(entry, map);
await db.update(tableName, map, where: "$idColumnName=${entry.id.value}");
await entry.afterSave(false);
_fireChangeListners(EntryChangeType.Modification, entry);
return true;
} catch (e) {
return false;
}
}