// send notification
ufisTopicProducer.sendNotification(true, UfisASCommands.URT,
String.valueOf(entDbLoadPax.getIdFlight()), oldEntDbLoadPax, entDbLoadPax);
// update load_pax_connect
EntDbLoadPaxConn entDbLoadPaxConn = _paxConBean
.findByIdLoadPax(entDbLoadPax.getUuid());
if (entDbLoadPaxConn != null
&& idFlight != entDbLoadPaxConn.getIdFlight()) {
EntDbLoadPaxConn oldEntDbLoadPaxConn = (EntDbLoadPaxConn)SerializationUtils.clone(entDbLoadPaxConn);
entDbLoadPaxConn.setIdFlight(idFlight);
entDbLoadPaxConn
.set_updateUser(HpEKConstants.MACS_PAX_DATA_SOURCE);
entDbLoadPaxConn.set_updatedDate(HpUfisCalendar
.getCurrentUTCTime());
// _paxConBean.Update(entDbLoadPaxConn);
// send notification
ufisTopicProducer.sendNotification(true, UfisASCommands.URT,
String.valueOf(entDbLoadPaxConn.getIdFlight()), oldEntDbLoadPaxConn, entDbLoadPaxConn);
}
// update load_bag
List<EntDbLoadBag> loadBagList = dlLoadBagUpdateLocal
.getBagMoveDetailsByIdLoadPax(entDbLoadPax
.getUuid());
Iterator<EntDbLoadBag> loadBagListIt = loadBagList
.iterator();
while (loadBagListIt.hasNext()) {
EntDbLoadBag entDbLoadBag = loadBagListIt.next();
if (idFlight != entDbLoadBag.getIdFlight()) {
EntDbLoadBag oldEntDbLoadBag = (EntDbLoadBag)SerializationUtils.clone(entDbLoadBag);
entDbLoadBag.setIdFlight(idFlight);
entDbLoadBag
.setUpdatedUser(HpEKConstants.MACS_PAX_DATA_SOURCE);
entDbLoadBag.setUpdatedDate(HpUfisCalendar
.getCurrentUTCTime());
// send notification
ufisTopicProducer.sendNotification(true, UfisASCommands.URT,
String.valueOf(entDbLoadBag.getIdFlight()), oldEntDbLoadBag, entDbLoadBag);
}
}
// update serviceReques
List<EntDbServiceRequest> serviceRequestList = _dlPaxServiceRequestBean
.findByidLoadPax(entDbLoadPax.getUuid());
Iterator<EntDbServiceRequest> serviceRequestListIt = serviceRequestList
.iterator();
while (serviceRequestListIt.hasNext()) {
EntDbServiceRequest entDbServiceRequest = serviceRequestListIt
.next();
if (entDbServiceRequest.getIdFlight() != idFlight) {
EntDbServiceRequest oldEntDbServiceRequest = (EntDbServiceRequest)SerializationUtils.clone(entDbServiceRequest);
entDbServiceRequest.setIdFlight(idFlight);
entDbServiceRequest
.set_updateUser(HpEKConstants.MACS_PAX_DATA_SOURCE);
entDbServiceRequest
.set_updatedDate(HpUfisCalendar
.getCurrentUTCTime());
// send notification
ufisTopicProducer.sendNotification(true, UfisASCommands.URT,
String.valueOf(entDbServiceRequest.getIdFlight()), oldEntDbServiceRequest, entDbServiceRequest);
}
}
}
}
// update id_conx_flight for load_pax_conn table
if (entDbFlightIdMapping.getFltNumber() != null
&& entDbFlightIdMapping.getFltDateLocal() != null) {
List<EntDbLoadPaxConn> entDbLoadPaxConnList = _paxConBean
.findByFlnoFltDate(
entDbFlightIdMapping.getFltNumber(),
entDbFlightIdMapping.getFltDateLocal());
Iterator<EntDbLoadPaxConn> entDbLoadPaxConnListIt = entDbLoadPaxConnList
.iterator();
while (entDbLoadPaxConnListIt.hasNext()) {
EntDbLoadPaxConn entDbLoadPaxConn = entDbLoadPaxConnListIt
.next();
if (entDbFlightIdMapping.getIdFlight() != null
&& entDbLoadPaxConn.getIdConxFlight() != entDbFlightIdMapping
.getIdFlight().intValue()) {
EntDbLoadPaxConn oldEntDbLoadPaxConn = (EntDbLoadPaxConn)SerializationUtils.clone(entDbLoadPaxConn);
entDbLoadPaxConn
.setIdConxFlight(entDbFlightIdMapping
.getIdFlight().intValue());
entDbLoadPaxConn