ludc
2025-01-16 68fd566d21b3efc3a670a5295289b1801f5a4155
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// **********************************************************************
//
// Copyright (c) 2008-2023 VCI-Tech, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described the
// ICE_LICENSE file included this distribution.
//
// **********************************************************************
 
#pragma once
 
#include "01-common.ice"
 
[["java:package:com.vci.corba"]]
["cs:namespace:com.vci.corba"]
 
// module com {
// module vci {
// module corba {
module cache{
    // 缓存对象修改记录
    struct PLCacheRecord {
        string id;                // 记录ID
        string objId;            // 对象ID
        string objType;        // 对象类型
        string operateType;    // 操作类型
        long time;                // 操作时间
    };
    sequence<PLCacheRecord> PLCacheRecordArray;
 
    interface CacheService{
        // 记录修改信息
        string recordModifyInfo(string objType, string objId, string operate) throws common::VCIError;
        //添加属性项
        bool reloadCache()throws common::VCIError;
        // 
        void resetObjType(string type) throws common::VCIError;
        // 获取指定类型修改记录
        PLCacheRecordArray getAllRecordByType(string objType) throws common::VCIError;
        // 获取指定类型在指定时间之后的修改记录
        PLCacheRecordArray getRecordByType(string objType, long time) throws common::VCIError;
        // 清空所有类型的修改记录
        bool clearModifyRecord() throws common::VCIError;
        // 清空指定类型的修改记录
        bool clearModifyRecordByType(string objType) throws common::VCIError;
        // 获取数据库服务器时间
        long getDBCurrentTime() throws common::VCIError;
    }
}
// }}}