Package com.ufis_as.ufisapp.server.oldflightdata.entities

Examples of com.ufis_as.ufisapp.server.oldflightdata.entities.EntDbAfttab


      query.setParameter("vial", "%" + dbAfttab.getVial() + "%");
    }
    query.setParameter("scheduleType", 'S');
    query.setParameter("operateType", 'O');

    EntDbAfttab flight = null;
    try {
      List<EntDbAfttab> list = query.getResultList();
      if (list != null && list.size() > 0) {
        flight = list.get(0);
      }
View Full Code Here


    query.setParameter("flno", flno);
    query.setParameter("stoa", stoa);
    query.setParameter("adid", 'A');
    query.setParameter("des3", HpEKConstants.EK_HOPO);
    // query.setParameter("uldFtyp", HpEKConstants.ULD_FTYP);
    EntDbAfttab res = null;

    try {
      res = (EntDbAfttab) query.getSingleResult();
    } catch (NoResultException e) {
      LOG.debug("AftRecord flno <{}> not found", flno);
View Full Code Here

    query.setParameter("flno", flno);
    query.setParameter("stod", stod);
    query.setParameter("adid", 'D');
    query.setParameter("org3", HpEKConstants.EK_HOPO);
    // query.setParameter("uldFtyp", HpEKConstants.ULD_FTYP);
    EntDbAfttab res = null;
    try {
      res = (EntDbAfttab) query.getSingleResult();
    } catch (NoResultException e) {
      LOG.debug("AftRecord flno <{}> not found", flno);
    } catch (NonUniqueResultException nur) {
View Full Code Here

    Query query = em.createNamedQuery("EntDbAfttab.findForEKArr");
    query.setParameter("flno", flno);
    query.setParameter("stoa", stoa);
    query.setParameter("adid", 'A');
    query.setParameter("des3", HpEKConstants.EK_HOPO);
    EntDbAfttab res = null;

    try {
      res = (EntDbAfttab) query.getSingleResult();
    } catch (NoResultException e) {
      LOG.debug("AftRecord flno <{}> not found", flno);
View Full Code Here

    Query query = em.createNamedQuery("EntDbAfttab.findForEKDept");
    query.setParameter("flno", flno);
    query.setParameter("stod", stod);
    query.setParameter("adid", 'D');
    query.setParameter("org3", HpEKConstants.EK_HOPO);
    EntDbAfttab res = null;

    try {
      res = (EntDbAfttab) query.getSingleResult();
    } catch (NoResultException e) {
      LOG.debug("AftRecord flno <{}> not found", flno);
View Full Code Here

    query.setParameter("flno", flno);
    query.setParameter("flda", flda);
    query.setParameter("org3", HpEKConstants.EK_HOPO);

    List<EntDbAfttab> resultList = null;
    EntDbAfttab result = null;
    try {
      resultList = query.getResultList();

      // check for destCode
      for (EntDbAfttab obj : resultList) {
View Full Code Here

    query.setParameter("flno", flno);
    query.setParameter("flut", flut);
    query.setParameter("org3", HpEKConstants.EK_HOPO);

    List<EntDbAfttab> resultList = null;
    EntDbAfttab result = null;
    try {
      resultList = query.getResultList();

      // check for destCode
      for (EntDbAfttab obj : resultList) {
View Full Code Here

  @Override
  public EntDbAfttab findFlightForConx(BigDecimal urno) {
    Query query = em.createNamedQuery("EntDbAfttab.findForEKConx");
    query.setParameter("urno", urno);
    // query.setParameter("adid", adid);
    EntDbAfttab res = null;
    try {
      res = (EntDbAfttab) query.getSingleResult();

    } catch (NoResultException e) {
      LOG.debug("AftRecord urno <{}> not found", urno);
View Full Code Here

  @Override
  public EntDbAfttab findFlightForConxByUrno(long urno) {
    Query query = em.createNamedQuery("EntDbAfttab.findForEKConxByUrno");
    query.setParameter("urno", new BigDecimal(urno));
    EntDbAfttab res = null;
    try {
      res = (EntDbAfttab) query.getSingleResult();
      if (res != null)
        LOG.debug("Flight is found URNO : <{}>", urno);
    } catch (NoResultException e) {
View Full Code Here

    query.setParameter("flut", flut);
    query.setParameter("flno", flno);
    if (!isRegnNull)
      query.setParameter("regn", regn);
    query.setParameter("org3", HpEKConstants.EK_HOPO);
    EntDbAfttab res = null;
    try {
      res = (EntDbAfttab) query.getSingleResult();
      if (res != null)
        LOG.debug("Dept Flight URNO : <{}> RKEY: <{}>", res.getUrno(),
            res.getRkey());
    } catch (NoResultException e) {
      LOG.debug("AftRecord flight <{}> not found", flno);
    } catch (NonUniqueResultException nur) {
      LOG.error("AftRecord flight <{}> not found. {}", flno,
          nur.getMessage());
View Full Code Here

TOP

Related Classes of com.ufis_as.ufisapp.server.oldflightdata.entities.EntDbAfttab

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.