Package com.ufis_as.ek_if.connection

Examples of com.ufis_as.ek_if.connection.EntDbFltConnectSummary


              }
             
             
              // Find FLT_CONNECT_SUMMARY by id_arr_flight and id_dep_flight
              UfisASCommands cmd =  UfisASCommands.URT;
              EntDbFltConnectSummary data = null;
              EntDbFltConnectSummary fltConx = fltConnectSummaryBean.findExisting(idArrFlight, idDepFlight);
              if (fltConx == null) {
                data = new EntDbFltConnectSummary();
                cmd =  UfisASCommands.IRT;
                data = new EntDbFltConnectSummary();
                data.setIdArrFlight(idArrFlight);
                data.setIdDepFlight(idDepFlight);
                data.setCreatedDate(HpUfisCalendar.getCurrentUTCTime());
                data.setCreatedUser(HpEKConstants.FLT_CONX_SOURCE);
                // 2013-11-05 added by JGO - Default connection status
View Full Code Here


        critical = 1;
      } else {
        status = "X"; // No Connection
      }
     
      EntDbFltConnectSummary fltConxSummary = null;
      fltConxSummary = clsDlFltConxSummaryBean.findExisting(arrUrno, depUrno);
      if (fltConxSummary == null) {
        fltConxSummary = new EntDbFltConnectSummary();
        fltConxSummary.setCreatedDate(HpUfisCalendar
            .getCurrentUTCTime());
        fltConxSummary.setCreatedUser(HpEKConstants.PAX_ALERT_SOURCE);
        // 2013-11-04 added by JGO - default decision
        fltConxSummary.setConxDecBag(HpUfisAppConstants.CONX_DEC_NODC);
        fltConxSummary.setConxDecPax(HpUfisAppConstants.CONX_DEC_NODC);
        fltConxSummary.setConxDecUld(HpUfisAppConstants.CONX_DEC_NODC);
      } else {
        cmd = UfisASCommands.URT.name();
        fltConxSummary.setUpdatedDate(HpUfisCalendar.getCurrentUTCTime());
        fltConxSummary.setUpdatedUser(HpEKConstants.PAX_ALERT_SOURCE);
      }

      fltConxSummary.setIdArrFlight(arrUrno);
      fltConxSummary.setIdDepFlight(depUrno);
      fltConxSummary.setConxTime(new BigDecimal(timeDiff));
      fltConxSummary.setConxStatPax(status);
      // 2013-11-05 added by JGO - Adding status for bag and uld as well
      fltConxSummary.setConxStatBag(status);
      fltConxSummary.setConxStatUld(status);
      EntDbFltConnectSummary entity = clsDlFltConxSummaryBean.merge(fltConxSummary);

      if (entity != null) {
        // call method to send NOTIFY message
        sendNotifyMsg(entity, cmd);
        LOG.info("Afttab msg has been processed. ArrURNO: <{}>  DepURNO: <{}>",
View Full Code Here

        }
        return entity;
    }
   
    public EntDbFltConnectSummary findExisting(BigDecimal idArrFlight, BigDecimal idDepFlight){
      EntDbFltConnectSummary ent = null;
      try{
        Query query = _em.createNamedQuery("EntDbFltConnectSummary.findExisting");
        query.setParameter("idArrFlight", idArrFlight);
        query.setParameter("idDepFlight", idDepFlight);
        List<EntDbFltConnectSummary> resultList = query.getResultList();
View Full Code Here

                status = HpUfisAppConstants.CONX_STAT_NOCONNX;
              }
             
              UfisASCommands cmd =  UfisASCommands.URT;
              // find flight connect summary record
              EntDbFltConnectSummary entity = null;
              start = System.currentTimeMillis();
              EntDbFltConnectSummary fltConxSummary = clsDlFltConxSummaryBean.findExisting(idArrFlight, idDepFlight);
              LOG.debug("Search Record from Flt_Connect_Summary used: {}", (System.currentTimeMillis() - start));
              if (fltConxSummary == null) {
                cmd =  UfisASCommands.IRT;
                entity = new EntDbFltConnectSummary();
                entity.setIdArrFlight(idArrFlight);
                entity.setIdDepFlight(idDepFlight);
                entity.setCreatedDate(HpUfisCalendar.getCurrentUTCTime());
                entity.setCreatedUser(HpEKConstants.FLT_CONX_SOURCE);
                // 2013-11-04 added by JGO - default decision
View Full Code Here

TOP

Related Classes of com.ufis_as.ek_if.connection.EntDbFltConnectSummary

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.