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. go语言学习--go中的map切片

    //定义一个结构 type Car struct { Brand string Age int } func Pluck() map[int][]Car { carMap := make(map[in ...

  2. 从Tomcat的处理web请求分析Java的内存模型

    Tomcat作为一个java应用,同样是有主线程和子线程的.主线使用while(true)的方式一直循环,等待客户端来连接.一个客户端来了之后,就从线程池中拿一个线程来处理请求,如果没有配置线程池,就 ...

  3. 理解Linux系统负荷load average

    理解Linux系统负荷   一.查看系统负荷 如果你的电脑很慢,你或许想查看一下,它的工作量是否太大了. 在Linux系统中,我们一般使用uptime命令查看(w命令和top命令也行).(另外,它们在 ...

  4. GraphicsMagick命令

    [ convert | identify | mogrify | composite | montage | compare | display | animate | import | conjur ...

  5. MyEclipse 10 + OsChina GIt项目托管

    环境:Egit+MyEclipse 10,此教程默认MyEclipse 10和Egit都已经配置好. 1.注册OsChina Git账号,网址:http://git.oschina.net/,具体注册 ...

  6. 第18课 类型萃取(2)_获取返回值类型的traits

    1. 获取可调用对象返回类型 (1)decltype:获取变量或表达式的类型(见第2课) (2)declval及原型 ①原型:template<class T> T&& d ...

  7. rabbitmq (四) 路由

    上文讲的是广播类型fanout 本章讲 direct和topic. 当使用广播类型fanout的时候: routingKey字段不起作用. direct:精确匹配 routingKey:匹配一个单词, ...

  8. kubernetes学习笔记之十三:基于calico的网络策略入门

    一..安装calico [root@k8s-master01 ~]# kubectl apply -f https://docs.projectcalico.org/v3.3/getting-star ...

  9. 如何让大小一定的span能够包含“容不下”的内容

    overflow: hidden; text-overflow: ellipsis; width: 70px;(长度随意) 给span加上面的代码

  10. Spring Bean生命周期详解

    对象生命周期:创建(实例化----初始化)---使用----销毁,而在Spring中,Bean对象周期当然遵从这一过程,但是Spring提供了许多对外接口,允许开发者对三个过程(实例化.初始化.销毁) ...