Package com.founder.fix.bpmn2extensions.sqlmappingconfig

Examples of com.founder.fix.bpmn2extensions.sqlmappingconfig.DataBaseTable


      }

      for (Object ele : document.getRootElement().elements("dataBaseTable")) {
        Element element = (Element) ele;

        DataBaseTable dataBaseTable = SqlmappingconfigFactory.eINSTANCE.createDataBaseTable();
        dataBaseTable.setTableId(element.attributeValue("tableId"));
        dataBaseTable.setTableName(element.attributeValue("tableName"));
        dataBaseTable.setTableValue(element.attributeValue("tableValue"));
        dataBaseTable.setArchiveTable(element.attributeValue("archiveTable"));
        //dataBaseTable.setMappingType(element.attributeValue("mappingType"));

        for (Object eleNew : element.elements("column")) {
          Element columnElement = (Element) eleNew;
          Column column = SqlmappingconfigFactory.eINSTANCE.createColumn();
          column.setColumn(columnElement.attributeValue("column"));
          column.setName(columnElement.attributeValue("name"));
          column.setJdbcType(columnElement.attributeValue("jdbcType"));
          //column.setProperty(columnElement.attributeValue("property"));
          //column.setSimpleKey(columnElement.attributeValue("property"));

          dataBaseTable.getColumn().add(column);
          columnMap.put(dataBaseTable.getTableId()+"_"+column.getColumn(), column);
        }

        dataBaseTables.put(dataBaseTable.getTableId(), dataBaseTable);

      }
     

      for (Object ele : document.getRootElement().elements("resultMap")) {
View Full Code Here


   
  }
 
  public Map<String,Column> getColumnMap(String tableId) {
    Map<String, Column> columnMapObj=new HashMap<String, Column>();
    DataBaseTable dataBaseTable=dataBaseTables.get(tableId);
    if(dataBaseTable!=null){
      for (Column column : dataBaseTable.getColumn()) {
        columnMapObj.put(column.getColumn(), column);
      }
    }
   
    return columnMapObj;
View Full Code Here

TOP

Related Classes of com.founder.fix.bpmn2extensions.sqlmappingconfig.DataBaseTable

Copyright © 2018 www.massapicom. 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.