Package com.ufis_as.ek_if.lido.entities

Examples of com.ufis_as.ek_if.lido.entities.EntDbApttab


        List<EntDbApttab> aptList = clsEntStartUpInitSingleton.getCacheApt();
        //to decide input icao and iata are correct checking with MD table APTTAB
        boolean flag = false;
        if (aptList != null) {
          for (int i = 0; i < aptList.size(); i++) {
            EntDbApttab entity = aptList.get(i);
            if (icao.equals(entity.getApc4())) {
                flag = true;
                break;
            }
          }
        }
View Full Code Here


    if (masterDataOn) {

      if (mdApttabOn) {
        List<Object> apttabs = findAll(EntDbApttab.class);
        for (Iterator<Object> it = apttabs.iterator(); it.hasNext();) {
          EntDbApttab record = (EntDbApttab) it.next();
          _cacheApt.add(record);
        }
        LOG.info("Basic data APTTAB No of Records = {}",
            _cacheApt.size());
      }
      /*
       * List<Object> acttabs = findAll(EntDbActtab.class); for
       * (Iterator<Object> it = acttabs.iterator(); it.hasNext();) {
       * EntDbActtab record = (EntDbActtab) it.next();
       * _cacheAct.add(record); }
       * LOG.info("Basic data ACTTAB No of Records = {}",
       * _cacheAct.size()); List<Object> alttabs =
       * findAll(EntDbAlttab.class); for (Iterator<Object> it =
       * alttabs.iterator(); it.hasNext();) { EntDbAlttab record =
       * (EntDbAlttab) it.next(); _cacheAlt.add(record); }
       * LOG.info("Basic data ALTTAB No of Records = {}",
       * _cacheAlt.size()); List<Object> nattabs =
       * findAll(EntDbNattab.class); for (Iterator<Object> it =
       * nattabs.iterator(); it.hasNext();) { EntDbNattab record =
       * (EntDbNattab) it.next(); _cacheNat.add(record); }
       * LOG.info("Basic data NATTAB No of Records = {}",
       * _cacheNat.size()); List<Object> psttabs =
       * findAll(EntDbPsttab.class); for (Iterator<Object> it =
       * psttabs.iterator(); it.hasNext();) { EntDbPsttab record =
       * (EntDbPsttab) it.next(); _cachePst.add(record); }
       * LOG.info("Basic data PSTTAB No of Records = {}",
       * _cachePst.size()); List<Object> blttabs =
       * findAll(EntDbBlttab.class); for (Iterator<Object> it =
       * blttabs.iterator(); it.hasNext();) { EntDbBlttab record =
       * (EntDbBlttab) it.next(); _cacheBlt.add(record); }
       * LOG.info("Basic data BLTTAB No of Records = {}",
       * _cacheBlt.size()); List<Object> gattabs =
       * findAll(EntDbGattab.class); for (Iterator<Object> it =
       * gattabs.iterator(); it.hasNext();) { EntDbGattab record =
       * (EntDbGattab) it.next(); _cacheGat.add(record); }
       * LOG.info("Basic data GATTAB No of Records = {}",
       * _cacheGat.size()); List<Object> sgmtabs =
       * findAll(EntDbSgmtab.class); for (Iterator<Object> it =
       * sgmtabs.iterator(); it.hasNext();) { EntDbSgmtab record =
       * (EntDbSgmtab) it.next(); _cacheSgm.add(record); }
       * LOG.info("Basic data SGMTAB No of Records = {}",
       * _cacheSgm.size());
       */
      if (mdUldItemTypeOn) {
        List<Object> uldItemType = findAll(EntDbMdUldItemType.class);
        for (Iterator<Object> it = uldItemType.iterator(); it.hasNext();) {
          EntDbMdUldItemType record = (EntDbMdUldItemType) it.next();
          UldItemTypeList.add(record);
        }
        LOG.info("Basic data Uld Item Type of Records = {}",
            UldItemTypeList.size());
      }
      if (mdUldLocOn) {
        List<Object> uldLoc = findAll(EntDbMdUldLoc.class);
        for (Iterator<Object> it = uldLoc.iterator(); it.hasNext();) {
          EntDbMdUldLoc record = (EntDbMdUldLoc) it.next();
          UldLocList.add(record);
        }
        LOG.info("Basic data Uld Location of Records = {}",
            UldLocList.size());
      }
      if (mdUldPosOn) {
        List<Object> uldPos = findAll(EntDbMdUldPos.class);
        for (Iterator<Object> it = uldPos.iterator(); it.hasNext();) {
          EntDbMdUldPos record = (EntDbMdUldPos) it.next();
          UldPosList.add(record);
        }
        LOG.info("Basic data Uld Position of Records = {}",
            UldPosList.size());
      }
      if (mdUldScanActOn) {
        List<Object> uldScanAct = findAll(EntDbMdUldScanAct.class);
        for (Iterator<Object> it = uldScanAct.iterator(); it.hasNext();) {
          EntDbMdUldScanAct record = (EntDbMdUldScanAct) it.next();
          UldScanActList.add(record);
        }
        LOG.info("Basic data Uld Scan Act of Records = {}",
            UldScanActList.size());
      }
      if (mdUldSubTypeOn) {
        List<Object> uldSubtype = findAll(EntDbMdUldSubType.class);
        for (Iterator<Object> it = uldSubtype.iterator(); it.hasNext();) {
          EntDbMdUldSubType record = (EntDbMdUldSubType) it.next();
          UldSubtypeList.add(record);
        }
        LOG.info("Basic data Uld Sub Type of Records = {}",
            UldSubtypeList.size());
      }
      if (mdUldTypeOn) {
        List<Object> uldType = findAll(EntDbMdUldType.class);
        for (Iterator<Object> it = uldType.iterator(); it.hasNext();) {
          EntDbMdUldType record = (EntDbMdUldType) it.next();
          UldTypeList.add(record);
        }
        LOG.info("Basic data Uld Type of Records = {}",
            UldTypeList.size());

        // //////////////////////////////////
        /*



         * List<String> colsToSelect = new ArrayList<>();

         * colsToSelect.add("id"); colsToSelect.add("uldTypeCode");
         *

         * Map<String, String> whereClause = new HashMap<String,
         * String>(); whereClause.put("idHopo", "DXB");
         *

         * List<Object> result =
         * findAllByColumnList(EntDbMdUldType.class, colsToSelect,
         * whereClause);
         * LOG.info("&&&&&&&&&&&&&&&&&&&&&&&& Size of Result : "
         * +result.size()); //Map<String, String> res = new
         * HashMap<String, String>(); for (Iterator<Object> it =
         * result.iterator(); it.hasNext();) { LOG.debug("ID "+
         * res.+" TypeCode "+ record.getUldTypeCode() + "TypeDesc "+
         * record.getUldTypeDesc()); UldTypeList.add(record); }
         */


      }
      if (mdLoungeCodeOn) {
        List<Object> LoungeCode = findAll(EntDbMdLoungeCode.class);
        for (Iterator<Object> it = LoungeCode.iterator(); it.hasNext();) {
          EntDbMdLoungeCode record = (EntDbMdLoungeCode) it.next();
          LoungeCodeList.add(record);
        }
        LOG.info("Basic data Lounge Code of Records = {}",
            LoungeCodeList.size());
      }
      if (mdGateTypeOn) {
        List<Object> gateType = findAll(EntDbMdGateType.class);
        for (Iterator<Object> it = gateType.iterator(); it.hasNext();) {
          EntDbMdGateType record = (EntDbMdGateType) it.next();
          GateTypeList.add(record);
        }
        LOG.info("Basic data gate type of Records = {}",
            GateTypeList.size());
      }
      if (mdStaffTypeOn) {
        List<Object> staffType = findAll(EntDbMdStaffType.class);
        for (Iterator<Object> it = staffType.iterator(); it.hasNext();) {
          EntDbMdStaffType record = (EntDbMdStaffType) it.next();
          StaffTypeList.add(record);
        }
        LOG.info("Basic data staff type of Records = {}",
            StaffTypeList.size());
      }
      // For BELT
      if (mdBagHandleLocOn) {
        List<Object> bagHandleLoc = findAll(EntDbMdBagHandleLoc.class);
        for (Iterator<Object> it = bagHandleLoc.iterator(); it
            .hasNext();) {
          EntDbMdBagHandleLoc record = (EntDbMdBagHandleLoc) it
              .next();


          mdBagHandleLocList.add(record);
        }
        LOG.info("Master data Bag Handle Location of Records = {}",
            mdBagHandleLocList.size());
      }
      if (mdBagReconLocOn) {
        List<Object> bagReconLoc = findAll(EntDbMdBagReconLoc.class);
        for (Iterator<Object> it = bagReconLoc.iterator(); it.hasNext();) {
          EntDbMdBagReconLoc record = (EntDbMdBagReconLoc) it.next();
          mdBagReconLocList.add(record);
        }
        LOG.info("Master data Bag Recon Location of Records = {}",
            mdBagReconLocList.size());
      }
      if (mdBagActionOn) {
        List<Object> bagActionList = findAll(EntDbMdBagAction.class);
        for (Iterator<Object> it = bagActionList.iterator(); it
            .hasNext();) {

          EntDbMdBagAction record = (EntDbMdBagAction) it.next();
          mdBagActionList.add(record);
        }
        LOG.info("Master data Bag Action of Records = {}",
            mdBagActionList.size());
      }
      if (mdBagTypeOn) {
        List<Object> bagTypeList = findAll(EntDbMdBagType.class);
        for (Iterator<Object> it = bagTypeList.iterator(); it.hasNext();) {
          EntDbMdBagType record = (EntDbMdBagType) it.next();
          mdBagTypeList.add(record);
        }
        LOG.info("Master data Bag Types Records = {}",
            mdBagTypeList.size());
      }
      if (mdBagClassifyOn) {
        List<Object> bagClassifyList = findAll(EntDbMdBagClassify.class);
        for (Iterator<Object> it = bagClassifyList.iterator(); it
            .hasNext();) {

          EntDbMdBagClassify record = (EntDbMdBagClassify) it.next();
          mdBagClassifyList.add(record);
        }
        LOG.info("Master data Bag Classify Records = {}",
            mdBagClassifyList.size());
      }
      if (mdEquipLocOn) {
        List<Object> euipLocList = findAll(EntDbMdEquipLoc.class);
        for (Iterator<Object> it = euipLocList.iterator(); it.hasNext();) {
          EntDbMdEquipLoc record = (EntDbMdEquipLoc) it.next();
          if (!HpUfisUtils.isNullOrEmptyStr(record.getEquipArea())) {
            mdEquipLocList.add(record.getEquipArea().toUpperCase());
          }
        }
        LOG.info("Master data Equip Loc Records = {}",
            mdEquipLocList.size());
      }
      if (mdEquipOn) {
        List<Object> equipList = findAll(EntDbMdEquip.class);
        for (Iterator<Object> it = equipList.iterator(); it.hasNext();) {
          EntDbMdEquip record = (EntDbMdEquip) it.next();
          if (!HpUfisUtils.isNullOrEmptyStr(record.getEquipNum())) {
            mdEquipList.add(record.getEquipNum().toUpperCase());
          }
        }
        LOG.info("Master data Equip Records = {}", mdEquipList.size());
      }
    }
View Full Code Here

TOP

Related Classes of com.ufis_as.ek_if.lido.entities.EntDbApttab

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.