static void KTL_DBSynchronize(Args _args) 

    Dictionary dict; 
    int idx, lastIdx, totalTables; 
    TableId tableId; 
    Application application; 
    SysOperationProgress progress; 
    StackBase errorStack; 
    ErrorTxt errorTxt; 
    ; 
    application = new Application(); 
    dict = new Dictionary(); 
    totalTables = dict.tableCnt(); 
    progress = new SysOperationProgress(); 
    progress.setTotal(totalTables); 
    progress.setCaption("@SYS90206"); 
    errorStack = new StackBase(Types::String); 
    lastIdx = ; 
    try 
    { 
        for (idx = lastIdx+; idx <= totalTables; idx++) 
        { 
            tableId = dict.tableCnt2Id(idx); 
            progress.setText(dict.tableName(tableId)); 
            lastIdx = idx; 
            application.dbSynchronize(tableId, false, true, false); 
            progress.incCount(); 
        } 
    } 
    catch (Exception::Error) 
    { 
        errorTxt = strFmt("Error in table '%1' (%2)", tableId, dict.tableName(tableId)); 
        errorStack.push(errorTxt); 
        retry; 
    } 
    setPrefix("@SYS86407"); 
    errorTxt = errorStack.pop(); 
    while (errorTxt) 
    { 
        error(errorTxt); 
        errorTxt = errorStack.pop(); 
    } 
}

AX_DbSynchronize的更多相关文章

随机推荐

  1. Linux查看端口占用情况并释放端口占用

    1.netstat -tunlp:查看所有tcp/udp端口占用及进程相关信息 2.netstat -tln | grep 端口号:查看特定端口占用情况 3.kill -9 进程ID(PID):释放指 ...

  2. jdk8 Metaspace 调优

    简介 jdk8的元空间的初始大小是21M,如果启动后GC过于频繁,请将该值设置得大一些. 更多Meatspace内容见<Metaspace 之一:Metaspace整体介绍(永久代被替换原因.元 ...

  3. PP.io的三个阶段,“强中心”——“弱中心”——“去中心”

    什么是PP.io? PP.io是我和Bill发起的存储项目,目的在于为开发者提供一个去中心化的存储和分发平台,能做到更便宜,更高速,更隐私. 当然做去中心化存储的项目也有好几个,FileCoin,Si ...

  4. lumbda表达式初探

    一.表达式格式定义 (parameters) -> expression 或 (parameters) ->{ statements; } 注意点:左边是输入参数,就相当于我们定义方法中的 ...

  5. 一致性hash算法及java实现

    一致性hash算法是分布式中一个常用且好用的分片算法.或者数据库分库分表算法.现在的互联网服务架构中,为避免单点故障.提升处理效率.横向扩展等原因,分布式系统已经成为了居家旅行必备的部署模式,所以也产 ...

  6. 如何正确实现 Java 中的 HashCode

    相等 和 Hash Code 从一般角度来看,Equality 是不错的,但是 hash code 更则具技巧性.如果我们在 hash code上多下点功夫,我们就能了解到 hash code 就是用 ...

  7. spring jdbc学习1

    1.queryForObject - 其中的 RowMapper 指定如何去映射结果集的行, 常用的实现类为 BeanPropertyRowMapper - 使用 SQL 中列的别名完成列名和类的属性 ...

  8. c#读取文本并生成txt

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...

  9. 用ActiveX 创建自己的comboBox 控件(一)

    新建ActiveX工程ActiveXcomboBox        Ok->next->next->next, create control based on 选择combobox, ...

  10. python学习Day4 流程控制(if分支,while循环,for循环)

    复习 1.变量名命名规范 -- 1.只能由数字.字母 及 _ 组成 -- 2.不能以数字开头 -- 3.不能与系统关键字重名 -- 4._开头有特殊含义 -- 5.__开头__结尾的变量,魔法变量 - ...