// 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());
}
}