isUpToDate method
Implementation
Future<bool> isUpToDate(int id, int table_field_id) async {
if (!initialized) throw ArgumentError(AbstractDao.C_MUST_INIT);
bool isUpToDate = false;
if (id != null) {
try {
waterLineFieldDto =
await fetchWaterLineFieldDto(id, table_field_id, ChangeType.NOTIFY, 0);
if (waterLineFieldDto.notify_state_enum == NotifyState.CLIENT_UP_TO_DATE)
isUpToDate = true;
} on SqlException catch (e) {
if (e.sqlExceptionEnum ==
SqlExceptionEnum
.ENTRY_NOT_FOUND) // Do nothing because if not found it is not up-to-date
;
else if (e.sqlExceptionEnum == SqlExceptionEnum.FAILED_SELECT)
print("WS $e");
}
}
return isUpToDate;
}