Examples of CROM_Tree


Examples of org.jitterbit.integration.structure.crom.CROM_Tree

            this.st = st;
        }

        @Override
        protected CROM_Tree doInBackground() throws Exception {
            CROM_Tree tree = findCachedTree();
            if (tree == null) {
                tree = createNewTree();
            }
            return tree;
        }
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM_Tree

    }

    public void readMappingStructure(MappingTreeStructure jtr, String title) {
        if (jtr == null)
            return;
        m_CROM_Tree = new CROM_Tree();
        CROM crom_root = jtr.getRoot();
        if (crom_root == null) {
            m_CROM_Tree.parse(jtr);
        } else {
            m_CROM_Tree.setRoot(crom_root);
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM_Tree

    SQL_ODBC_DATE = 9;

  public static CROM createCromTree(String jtrFileName){
    File file = new File(jtrFileName);
    MappingTreeStructure jtr = MappingTreeStructureFactory.fromFile(file, BackendEncoding.getCharsetForReading());
    CROM_Tree tree = new CROM_Tree();
    try {
            tree.parse(jtr);
        } catch (CromTreeException e) {
            String err = getJtrParsingErrorMessage(jtrFileName, e);
            throw new RuntimeException(err, e);
        }
    if (tree.getRoot() == null) {
        String err = getJtrParsingErrorMessage(jtrFileName, null);
            throw new RuntimeException(err);
    }
    CROM.translateFromOdbcDateType(tree.getRoot());
    return tree.getRoot();
  }
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM_Tree

        DocReader reader=null;
    try {
      String jtr="C:\\Program Files\\Jitterbit Integration Server\\DataInterchange\\jtr\\";
      String jtrFN=jtr+"tran"+Integer.toString(tran_id)+(isTarget?"t":"s")+".jtr";
      File file=new File(jtrFN);
      CROM_Tree tree=new CROM_Tree();
      tree.parse(MappingTreeStructureFactory.fromFile(file, Charset.defaultCharset()));
            CROM dtdRoot=tree.getRoot();
//            dtdRoot.print(System.out);
            File localFile=new File(inputFN);

            if(dtdRoot.isXml()){
                 reader=new XmlReader(localFile, dtdRoot);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.