zoukankan      html  css  js  c++  java
  • 找出包含有类型是某个特定的扩展类型的字段的表

    比如,已知一个扩展类型是ProjCategoryId,下面的代码将为你找出所有使用过这个扩展类型的表。

     

    static void findTableWithProjCategoryId(Args _args)

    {

        xInfo xInfo = new xInfo();

     

        treeNode t = xInfo.rootNode().AOTfindChild("DataDictionary").AOTfindChild("Tables");

        treeNode childNode;

        treeNode fields;

        treenodeIterator it, itFld;

     

        str properties;

        str table;

        str field;

        str extendedDataType;

        str searchType = "ProjCategoryId";

        ;

     

        it = t.AOTiterator();

        childNode= it.next();

        while (childNode)

        {

          Table = child.treeNodeName();

          itFld = t.AOTfindChild(child.treeNodeName()).AOTfindChild("Fields").AOTiterator();

     

          fields = itFld.next();

          while (fields)

          {

            field = fields.treeNodeName();

            properties = fields.AOTgetProperties();

            extendedDataType = findProperty(properties, "ExtendedDataType");

     

            if (extendedDataType == searchType)

            {

              info(strfmt("%1 / %2 - ExtendedDataType: %3", table, field, extendedDataType));

            }

            fields = itFld.next();

          }

          childNode= it.next();

        }

    }

  • 相关阅读:
    LintCode-35.翻转链表
    LintCode-159.寻找旋转排序数组中的最小值
    LintCode-73.前序遍历和中序遍历树构造二叉树
    LintCode-9.Fizz Buzz 问题
    NOI 2018 归程 (Kruskal重构树)
    模板 NTT 快速数论变换
    模板 FFT 快速傅里叶变换
    BZOJ 3510 首都 (LCT)
    BZOJ 4530 [BJOI2014]大融合 (LCT)
    BZOJ 3282 Link Cut Tree (LCT)
  • 原文地址:https://www.cnblogs.com/Fandyx/p/2761518.html
Copyright © 2011-2022 走看看