1/** 2 * @file Describe the file 3 * Copyright (c) 2023 Huawei Device Co., Ltd. 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17import data_rdb from '@ohos.data.relationalStore'; 18 19/** 20 * AlertsUpdateJudger 类的接口,具体实现类以 场景名 + AlertsUpdateJudger +impl命名 21 * 22 * @since 2022-09-09 23 */ 24export default interface AlertsUpdateJudger { 25 /** 26 * 判断不同表被修改的场景下,Alerts 是否需要被更新 27 * 28 * @Param tableName 被修改的表的表名 29 * @Param values 修改操作的更新值 30 * @Return 是否需要更新 Alerts 表 31 */ 32 isNeedToUpdateAlerts(tableName: string, values: data_rdb.ValuesBucket | data_rdb.ValuesBucket[]): boolean; 33}