Package com.founder.fix.bpmn2extensions.sqlmappingconfig

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


    if (rule instanceof Select) {
      Select select = (Select) rule;
      String resultMapSelect = select.getResultMap();
      if (StringUtil.isNotEmpty(resultMapSelect)) {
        ResultMap resultMap = processEngineConfiguration.getResultMap(resultMapSelect);

        if (resultMap == null) {
          throw new FixFlowDbException("resultMap " + resultMapSelect + " 未找到!");
        }

        String mappingType = resultMap.getType();
        if (StringUtil.isNotEmpty(mappingType)) {
          List<Object> returnList = new ArrayList<Object>();

          for (Object object : returnObjList) {
            AbstractPersistentObject persistentObject = (AbstractPersistentObject) ReflectUtil.instantiate(mappingType);
View Full Code Here


    }
    if (rule instanceof Select) {
      Select select = (Select) rule;
      String resultMapSelect = select.getResultMap();
      if (StringUtil.isNotEmpty(resultMapSelect)) {
        ResultMap resultMap = processEngineConfiguration.getResultMap(resultMapSelect);

        if (resultMap == null) {
          throw new FixFlowDbException("resultMap " + resultMap + " 未找到!");
        }

        String mappingType = resultMap.getType();
        if (StringUtil.isNotEmpty(mappingType)) {

          AbstractPersistentObject persistentObject = (AbstractPersistentObject) ReflectUtil.instantiate(mappingType);

          if (returnObjList instanceof List) {
View Full Code Here

     

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

        ResultMap resultMap = SqlmappingconfigFactory.eINSTANCE.createResultMap();
        resultMap.setId(element.attributeValue("id"));
        resultMap.setName(element.attributeValue("name"));
        resultMap.setType(element.attributeValue("type"));
       
        for (Object eleNew : element.elements("result")) {
          Element resultMappingElement = (Element) eleNew;
          Result result = SqlmappingconfigFactory.eINSTANCE.createResult();
          result.setColumn(resultMappingElement.attributeValue("column"));
          result.setName(resultMappingElement.attributeValue("name"));
          result.setJdbcType(resultMappingElement.attributeValue("jdbcType"));
          result.setProperty(resultMappingElement.attributeValue("property"));
          //result.setSimpleKey(columnMappingElement.attributeValue("property"));

          resultMap.getResult().add(result);
          //columnMappingMap.put(dataBaseTable.getTableId()+"_"+columnMapping.getColumn(), columnMapping);
        }

        resultMaps.put(resultMap.getId(), resultMap);

      }

      for (Object ele : document.getRootElement().elements("insert")) {
        Element element = (Element) ele;
View Full Code Here

  public void testTaskInstanceEntityMapping() throws Exception {
   
   
    Map<String, Object> dataMap=getDataMap();

    ResultMap resultMap = processEngineConfiguration.getResultMap("taskResultMap");
   
   
   
   
    AbstractPersistentObject<TaskInstanceEntity> persistentObject = (AbstractPersistentObject<TaskInstanceEntity>) ReflectUtil.instantiate(resultMap.getType());
    persistentObject.persistentInit(resultMap,dataMap);
   
    TaskInstanceEntity task=(TaskInstanceEntity)persistentObject;

   
View Full Code Here

TOP

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

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.