public void loadAll() { JwMap<AcUspsDomesticSupplyCircuityPkIF, AcUspsDomesticSupplyCircuity> m = getUspsDomesticSupplyCircuityMap(); JwList<AcUspsDomesticSupplyCircuity> v = getAllFromDb(); for (AcUspsDomesticSupplyCircuity e : v) m.put(e, e); setAllLoaded(true); }
public static JwMap<Integer, AcUspsDomesticSkeletonRouteOffer> toIdMap( Collection<AcUspsDomesticSkeletonRouteOffer> v) { JwMap<Integer, AcUspsDomesticSkeletonRouteOffer> m = new JwMap<Integer, AcUspsDomesticSkeletonRouteOffer>(); for (AcUspsDomesticSkeletonRouteOffer e : v) m.put(e.getId(), e); return m; }
private void fillDatabaseAliases(JwSet<Integer> aliasIds) { JwList<AcBatchAlias> v = _access.getBatchAliasDb().getBatchAliasesBefore(_batch.getStartUtcTs(), aliasIds); for (AcBatchAlias e : v) { Integer id = e.getAliasId(); if (isAliasLoaded(id)) continue; _aliases.put(id, e); // if ( id == DEBUG_ALIAS_ID ) // { // debug( // "x", // "Alias " // + e.getAliasId() // + " batch " // + e.getBatchId() // + " group " // + e.getGroupCode()); // Thread.dumpStack(); // } if (e.hasGroupCode()) { // debug("1","Alias "+ e.getAliasId()+ " batch "+ e.getBatchId()+ " group "+ // e.getGroupCode()); addBatchGroup(_batchGroups, e.getBatchId(), e.getGroupCode()); } } }
public static JwMap<Integer, AcDomesticCandidateRouteOffer> toIdMap( Collection<AcDomesticCandidateRouteOffer> v) { JwMap<Integer, AcDomesticCandidateRouteOffer> m = new JwMap<Integer, AcDomesticCandidateRouteOffer>(); for (AcDomesticCandidateRouteOffer e : v) m.put(e.getId(), e); return m; }
public void loadAll() { JwMap<AcUspsInternationalRouteStatusPkIF, AcUspsInternationalRouteStatus> m = getUspsInternationalRouteStatusMap(); JwList<AcUspsInternationalRouteStatus> v = getAllFromDb(); for (AcUspsInternationalRouteStatus e : v) m.put(e, e); setAllLoaded(true); }
protected AcConsignment getConsignment(Integer id) { AcConsignment c = _consignmentMap.get(id); if (c == null) { c = _access.getConsignmentDb().getConsignment(id); _consignmentMap.put(id, c); } return c; }
private AcAirport getAirport(JwMap<String, AcAirport> airportCache, String code) { AcAirport e = airportCache.get(code); if (e == null) { e = getAccess().getAirportDb().getAirport(code); airportCache.put(code, e); } return e; }
private void fillMissingNests(JwSet<Integer> nestIds) { for (Integer id : nestIds) { if (isNestLoaded(id)) continue; AcBatchNest e = new AcBatchNest(getAccountCode()); e.setNestId(id); _nests.put(id, e); } }
private void fillMissingFlights(JwSet<Integer> flightIds) { for (Integer id : flightIds) { if (isFlightLoaded(id)) continue; AcBatchFlight e = new AcBatchFlight(getAccountCode()); e.setFlightId(id); _flights.put(id, e); } }
public AcUploadDownloadFile getUploadDownloadFile(AcUploadDownloadFilePkIF pk) { JwMap<AcUploadDownloadFilePkIF, AcUploadDownloadFile> m = getUploadDownloadFileMap(); AcUploadDownloadFile e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getUploadDownloadFileFromDb(pk); m.put(pk, e); } return e; }
public AcInclusionOperator getInclusionOperator(AcInclusionOperatorPkIF pk) { JwMap<AcInclusionOperatorPkIF, AcInclusionOperator> m = getInclusionOperatorMap(); AcInclusionOperator e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getInclusionOperatorFromDb(pk); m.put(pk, e); } return e; }
public AcEquipment getEquipment(AcEquipmentPkIF pk) { JwMap<AcEquipmentPkIF, AcEquipment> m = getEquipmentMap(); AcEquipment e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getEquipmentFromDb(pk); m.put(pk, e); } return e; }
public AcGlobalLanguage getGlobalLanguage(AcGlobalLanguagePkIF pk) { JwMap<AcGlobalLanguagePkIF, AcGlobalLanguage> m = getGlobalLanguageMap(); AcGlobalLanguage e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getGlobalLanguageFromDb(pk); m.put(pk, e); } return e; }
public AcMonitorAlert getMonitorAlert(AcMonitorAlertPkIF pk) { JwMap<AcMonitorAlertPkIF, AcMonitorAlert> m = getMonitorAlertMap(); AcMonitorAlert e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getMonitorAlertFromDb(pk); m.put(pk, e); } return e; }
public AcUspsInternationalRouteStatus getUspsInternationalRouteStatus( AcUspsInternationalRouteStatusPkIF pk) { JwMap<AcUspsInternationalRouteStatusPkIF, AcUspsInternationalRouteStatus> m = getUspsInternationalRouteStatusMap(); AcUspsInternationalRouteStatus e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getUspsInternationalRouteStatusFromDb(pk); m.put(pk, e); } return e; }
public AcUspsDomesticSupplyCircuity getUspsDomesticSupplyCircuity( AcUspsDomesticSupplyCircuityPkIF pk) { JwMap<AcUspsDomesticSupplyCircuityPkIF, AcUspsDomesticSupplyCircuity> m = getUspsDomesticSupplyCircuityMap(); AcUspsDomesticSupplyCircuity e = m.get(pk); if (isAllLoaded()) return e; if (e == null) { if (isSingleLoad() && m.containsKey(pk)) return null; e = getUspsDomesticSupplyCircuityFromDb(pk); m.put(pk, e); } return e; }
private void fillDatabaseItems(JwSet<Integer> itemIds) { JwList<AcBatchItem> v = _access.getBatchItemDb().getBatchItemsBefore(_batch.getStartUtcTs(), itemIds); for (AcBatchItem e : v) { Integer id = e.getItemId(); if (isItemLoaded(id)) continue; _items.put(id, e); if (e.hasGroupCode()) { // debug("1","Item "+ e.getItemId()+ " batch "+ e.getBatchId()+ " group "+ // e.getGroupCode()); addBatchGroup(_batchGroups, e.getBatchId(), e.getGroupCode()); } } }
private void fillMissingItems(JwSet<Integer> itemIds) { for (Integer id : itemIds) { if (isItemLoaded(id)) continue; AcBatchItem e = new AcBatchItem(getAccountCode()); e.setItemId(id); // if ( e.hasItemId(DEBUG_ITEM_ID) ) // { // debug("x","Item "+ e.getItemId()+ " batch "+ e.getBatchId()+ " group "+ // e.getGroupCode()); // Thread.dumpStack(); // } _items.put(id, e); } }
private void fillDatabaseFlights(JwSet<Integer> flightIds) { JwList<AcBatchFlight> v = _access.getBatchFlightDb().getBatchFlightsBefore(_batch.getStartUtcTs(), flightIds); for (AcBatchFlight e : v) { Integer id = e.getFlightId(); if (isFlightLoaded(id)) continue; _flights.put(id, e); if (e.hasGroupCode()) { // debug("1","Flight "+ e.getFlightId()+ " batch "+ e.getBatchId()+ " group "+ // e.getGroupCode()); addBatchGroup(_batchGroups, e.getBatchId(), e.getGroupCode()); } } }
private void fillMissingAliases(JwSet<Integer> aliasIds) { for (Integer id : aliasIds) { if (isAliasLoaded(id)) continue; AcBatchAlias e = new AcBatchAlias(getAccountCode()); e.setAliasId(id); _aliases.put(id, e); // if ( id == DEBUG_ALIAS_ID ) // { // debug( // "x", // "Alias " // + e.getAliasId() // + " batch " // + e.getBatchId() // + " group " // + e.getGroupCode()); // Thread.dumpStack(); // } } }
protected AcCn46ActualConveyanceModel getModel( AcItem i, AcUpuTag upuTag, String offloadingAirport, boolean splitOnDispatchDestination) { AcFlight f = getDepartingFlight(i.getId()); AcResult last = getLastHandledAction(i.getId()); _dummy.clear(); _dummy.setTypeFromTag(upuTag); if (splitOnDispatchDestination) _dummy.setDispatchDestination(upuTag.getDestinationDispatchImpcCode()); if (last != null) { AcAirport a = getAirport(last.getAirportCode()); _dummy.setLastHandledAirport(last.getAirportCode()); _dummy.setGeneratedTz(a.getTimeZone()); } _dummy.setOriginAdministration(i.getUpuShortPostName()); _dummy.setAirportOfOffloading(offloadingAirport); if (f != null) { _dummy.setAirportOfLoading(f.getOriginAirportCode()); _dummy.setFlightCarrierCode(f.getOperatorCarrierCode()); _dummy.setFlightNumber(f.getOperatorNumber()); _dummy.setFlightNumberDisplayLabel(f.getOperatorNumberDisplayLabel()); _dummy.setDepartureDt( f.hasActualDepartureLocalTs() ? f.getActualDepartureLocalTs().getDate() : f.getScheduledDepartureLocalDt()); } String key = _dummy.getHashKey(); AcCn46ActualConveyanceModel model = _models.get(key); if (model == null) { model = _dummy.getCopy(); model.setCarrierCode(AcUtility.getAccountCarrierName(_access.getAccountCode())); model.setGeneratedTs(_nowUtcTs); model.setNote("** Note: This document was generated out of VelocityMail **"); _models.put(key, model); } return model; }
public void loadAll() { JwMap<AcEquipmentPkIF, AcEquipment> m = getEquipmentMap(); JwList<AcEquipment> v = getAllFromDb(); for (AcEquipment e : v) m.put(e, e); setAllLoaded(true); }
public void loadAll() { JwMap<AcUploadDownloadFilePkIF, AcUploadDownloadFile> m = getUploadDownloadFileMap(); JwList<AcUploadDownloadFile> v = getAllFromDb(); for (AcUploadDownloadFile e : v) m.put(e, e); setAllLoaded(true); }
public void loadAll() { JwMap<AcGlobalLanguagePkIF, AcGlobalLanguage> m = getGlobalLanguageMap(); JwList<AcGlobalLanguage> v = getAllFromDb(); for (AcGlobalLanguage e : v) m.put(e, e); setAllLoaded(true); }
public void loadAll() { JwMap<AcMonitorAlertPkIF, AcMonitorAlert> m = getMonitorAlertMap(); JwList<AcMonitorAlert> v = getAllFromDb(); for (AcMonitorAlert e : v) m.put(e, e); setAllLoaded(true); }
public void loadAll() { JwMap<AcInclusionOperatorPkIF, AcInclusionOperator> m = getInclusionOperatorMap(); JwList<AcInclusionOperator> v = getAllFromDb(); for (AcInclusionOperator e : v) m.put(e, e); setAllLoaded(true); }