Examples of CROM_ext


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

        root.addType(CROM.CROM_t_Root);
        Segment seg=text.getSegment();
        CROM flat_node=new CROM(root, true, seg.getName(), -1, CromType.CROM_t_Text);
        flat_node.addType(CROM.CROM_t_Collection);
        if(text.getDelimiter()!=null || text.getStringQualifier()!=null){
          CROM_ext ext=flat_node.getExtension();
          if(ext==null)ext=new CROM_Text();        
            if(text.getDelimiter()!=null)ext.setDelimiter(Utils.getDelimiterString(text));
            ext.setStrQual(text.getStringQualifier());
        }
        for(Field f:text.getSegment().fieldList){
          CROM field=new CROM(flat_node, false, f.fieldName, -1, CromType.CROM_t_Text);
          field.setValueType(f.dataType);
          field.addType(CROM.CROM_t_Attribute | CROM.CROM_t_Optional);
View Full Code Here

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

            CROM parent_crom=map.get(parent);
            CROM crom=new CROM(parent_crom, true, s.getName(), -1, CromType.CROM_t_Text);
            if(parent_crom==null){
              crom.addType(CROM.CROM_t_Root);
            }
            CROM_ext ext=crom.getExtension();
            String del=Utils.getDelimiterString(text);
            ext.setDelimiter(del);
            ext.setStrQual(text.getStringQualifier());
            Field identifier=s.findIdentField();
            if(identifier!=null && isFixedField){
              ext.setIdentPos(identifier.getBeginPosition());
              ext.setIdentLength(identifier.getLength());
            }
            if(root!=null && !bExtDefinedForRoot){
              ext=root.getExtension();
                ext.setDelimiter(del);
                ext.setStrQual(text.getStringQualifier());
                if(identifier!=null && isFixedField){
                  ext.setIdentPos(identifier.getBeginPosition());
                  ext.setIdentLength(identifier.getLength());
                }
                bExtDefinedForRoot=true;
            }
            map.put(s, crom);
            if(parent==null)root=crom;
            switch (s.getOccurenceID()) {
            case 1:
              crom.setOneToOneNode();
              break;
            case 2:
              crom.setAtLeastOneNode();
                break;
            case 3:
              crom.setOptionalNode();
                break;
            case 4:
              crom.setOuterJoin();
                break;
            }
            for (Field f : s.getFieldList()) {
                CROM field=new CROM(crom, false, f.fieldName, -1, CromType.CROM_t_Text);
              field.setValueType(f.dataType);
              if(f.equals(identifier)){
                  field.addType(CROM.CROM_t_Attribute);
              }
              else {
                field.addType(CROM.CROM_t_Attribute | CROM.CROM_t_Optional);
              }
              if(f.defaultValue!=null && f.defaultValue.length()>0){
                field.setDefaultValue(f.defaultValue);
                field.addType(CROM.CROM_t_HasDefault);
              }
              ext=field.getExtension();
              ext.setFormat(f.format);
              if(isFixedField){
                ext.setFieldPos((short)f.getBeginPosition());
                ext.setFieldLength((short)f.getLength());
              }
            }
        }
        MappingTreeStructure structure = new CromBasedMappingTreeStructure(root, new CROMHeader("Text"));
        if (callback != null) {
View Full Code Here

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

            attr=new CROM(node, isFolder, display, -1, CromType.CROM_t_DB);

            if(bIsOptional)attr.setOptionalNode();
            if(bIsPK)attr.setPrimaryKey();
            if(bIsUpdateKey)attr.setUpdateKey();
            CROM_ext ext=attr.getExtension();
            if(bIsFK){
              attr.setLinkKey();
              attr.setLinkToPrimaryKey(PRIMARY_KEY);
            }
            ext.setValueType(typeName.toString());
            ext.setDbColType(DbColType);
            ext.setDbColSize(DbColSize);
            ext.setDbDecimalDigits(DbDecimalDigits);
            ext.setDefaultValue(COLUMN_DEF);

          }
        }
      }
      CROM child_node=null;
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.