Package com.founder.fix.fixflow.core.exception

Examples of com.founder.fix.fixflow.core.exception.FixFlowDbException


    if (saveStatement.equals("saveEventSubscriptionEntity")) {
      EventSubscriptionPersistence eventSubscriptionPersistence = new EventSubscriptionPersistence(connection);
      try {
        eventSubscriptionPersistence.saveEventSubscriptionEntity((EventSubscriptionEntity) persistentObject);
      } catch (Exception e) {
        throw new FixFlowDbException("事件订阅持久化出错! 错误信息:  " + e.getMessage(), e);
      }
    }

   
View Full Code Here


      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);
            persistentObject.persistentInit(resultMap, (Map) object);
            persistentObject.setAdd(false);
            returnList.add(persistentObject);
          }
          scriptLanguageMgmt.setVariable("parameter", parameterOld);
          return returnList;

        } else {
          throw new FixFlowDbException("resultMap: " + resultMap + "中的 mappingType为空!");
        }

      }

    }
View Full Code Here

      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) {
            List listObj = (List) returnObjList;
            if (listObj.size() == 1 && listObj.get(0) instanceof Map) {

              persistentObject.persistentInit(resultMap, (Map) listObj.get(0));
              persistentObject.setAdd(false);
              scriptLanguageMgmt.setVariable("parameter", parameterOld);
              return persistentObject;
            }

          } else {
            if (returnObjList instanceof Map) {
              persistentObject.persistentInit(resultMap, (Map) returnObjList);
              scriptLanguageMgmt.setVariable("parameter", parameterOld);
              return persistentObject;
            }
          }

          scriptLanguageMgmt.setVariable("parameter", parameterOld);
          return persistentObject;

        } else {
          throw new FixFlowDbException("resultMap: " + resultMap + "中的 mappingType为空!");
        }

      }

    }
View Full Code Here

          if (connectionobj != null) {
            connectionobj.rollBackConnection();
          }
        } catch (Exception e) {
          e.printStackTrace();
          throw new FixFlowDbException(e.toString(), e);
        }
      }
    }
  }
View Full Code Here

              connectionobj.rollBackConnection();

            }
          } catch (Exception e) {
            e.printStackTrace();
            throw new FixFlowDbException(e.toString(), e);
          }
          break;
        }
      }
    }
View Full Code Here

          if (connectionobj != null) {
            connectionobj.commitConnection();
          }
        } catch (Exception e) {
          e.printStackTrace();
          throw new FixFlowDbException(e.toString(), e);
        }
      }
    }
  }
View Full Code Here

              connectionobj.commitConnection();

            }
          } catch (Exception e) {
            e.printStackTrace();
            throw new FixFlowDbException(e.toString(), e);
          }
          break;
        }
      }
    }
View Full Code Here

          if (connectionobj != null) {
            connectionobj.colseConnection();
          }
        } catch (Exception e) {
          e.printStackTrace();
          throw new FixFlowDbException(e.toString(), e);
        }
      }
    }
  }
View Full Code Here

              connectionobj.colseConnection();

            }
          } catch (Exception e) {
            e.printStackTrace();
            throw new FixFlowDbException(e.toString(), e);
          }
          break;
        }
      }
    }
View Full Code Here

            if (connectionobj != null) {
              connectionobj.colseConnection();
            }
          } catch (Exception e) {
            e.printStackTrace();
            throw new FixFlowDbException(e.toString(), e);
          }
        }
      }
    }
    if (threadLocalContext) {
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.exception.FixFlowDbException

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.