Package it.eng.spagobi.kpi.config.metadata

Examples of it.eng.spagobi.kpi.config.metadata.SbiKpiError


    logger.debug("IN");
    Session session = getSession();
    Transaction tx = null;
    Integer id = null;
    try {
      SbiKpiError sbiKpiError = toSbiKpiError(exception, modelInstanceId, resourceName, session);
      tx = session.beginTransaction();
      id = (Integer)session.save(sbiKpiError);
      updateSbiCommonInfo4Insert(sbiKpiError);
      tx.commit();
View Full Code Here


      List<SbiKpiError> list = (List<SbiKpiError>)session.createQuery("from SbiKpiError").list();

      if(list != null){

        for (Iterator iterator = list.iterator(); iterator.hasNext();) {
          SbiKpiError sbiKpiError = (SbiKpiError) iterator.next();
          if(kpiErrors == null) kpiErrors = new ArrayList<KpiError>();
          kpiErrors.add(toKpiError(sbiKpiError));         
        }

      }
View Full Code Here

    KpiError kpiError = null;
    Session session = getSession();
    Transaction tx = null;
    try {
      tx = session.beginTransaction();
      SbiKpiError sbiKpiError = (SbiKpiError)session.get(SbiKpiError.class, id);
      kpiError = toKpiError(sbiKpiError);
      tx.commit();

    } catch (HibernateException e) {
      if( tx != null && tx.isActive() ){
View Full Code Here

  }

  public SbiKpiError toSbiKpiError(DatasetException dsException, Integer modelInstanceId, String parameters, Session session){
    logger.debug("IN");

    SbiKpiError sbiKpiError = new SbiKpiError();

    sbiKpiError.setUserMessage(dsException.getUserMessage());
    sbiKpiError.setFullMessage(dsException.getFullMessage());

    SbiKpiModelInst sbiKpiModelInst = (SbiKpiModelInst)session.load(SbiKpiModelInst.class, modelInstanceId);
    sbiKpiError.setSbiKpiModelInst(sbiKpiModelInst);
    if(sbiKpiModelInst != null){
      sbiKpiError.setLabelModInst(sbiKpiModelInst.getLabel());
    }

    sbiKpiError.setTsDate(new Date());
    sbiKpiError.setParameters(parameters);

    logger.debug("OUT");
    return sbiKpiError;
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.kpi.config.metadata.SbiKpiError

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.