public JwList<AcUploadDownloadFile> getAllById(Collection<Integer> ids) {
   JwList<AcUploadDownloadFile> v = new JwList<AcUploadDownloadFile>();
   for (Integer id : ids) {
     JwSqlSelect st = getSelect();
     st.where().isEqual(ALIAS, ID, id);
     v.addAll(composeList(st));
   }
   return v;
 }
 private void addToAllByGlobalCoTerminusIdMap(AcGlobalCoTerminusAirport e) {
   Integer key = e.getGlobalCoTerminusId();
   JwList<AcGlobalCoTerminusAirport> v = _allByGlobalCoTerminusIdMap.get(key);
   if (v == null) {
     v = new JwList<AcGlobalCoTerminusAirport>();
     _allByGlobalCoTerminusIdMap.put(key, v);
   }
   v.add(e);
 }
 public JwList<AcGlobalAuditLog> getAllById(Collection<Integer> ids) {
   JwList<AcGlobalAuditLog> v = new JwList<AcGlobalAuditLog>();
   for (Integer id : ids) {
     JwSqlSelect st = getSelect();
     st.where().isEqual(ALIAS, ID, id);
     v.addAll(composeList(st));
   }
   return v;
 }
 public void insertAll(
     JwList<AcScheduledFlightUpload> v,
     boolean insertIds,
     boolean generateIds,
     String onDupColumn) {
   JwList<JwList<AcScheduledFlightUpload>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcScheduledFlightUpload> g : groups)
     _insertAll(g, insertIds, generateIds, onDupColumn);
 }
 public void applyRateValueDisputeCodes() {
   StringBuilder sb = new StringBuilder();
   Iterator<String> i = _rvdTypes.iterator();
   while (i.hasNext()) {
     String e = i.next();
     sb.append(e);
     if (i.hasNext()) sb.append(",");
   }
   setFreeText(RVD_PREFIX + sb.toString());
 }
Example #6
0
 public String getName() {
   StringBuilder sb = new StringBuilder();
   sb.append('[');
   Iterator<AcEdiSegmentFinderIF> i = _list.iterator();
   if (i.hasNext()) {
     sb.append(i.next().getName());
     while (i.hasNext()) sb.append(", ").append(i.next().getName());
   }
   sb.append(']');
   return sb.toString();
 }
 public JwList<AcGlobalCoTerminusAirport> getAllByGlobalCoTerminusId(Integer globalCoTerminusId) {
   lock();
   try {
     Integer key = globalCoTerminusId;
     JwList<AcGlobalCoTerminusAirport> v = getAllByGlobalCoTerminusIdMap().get(key);
     if (v == null) return JwList.createEmpty();
     return v;
   } finally {
     unlock();
   }
 }
 public void insertAll(
     JwList<AcGlobalAuditLog> v, boolean insertIds, boolean generateIds, String onDupColumn) {
   JwList<JwList<AcGlobalAuditLog>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcGlobalAuditLog> g : groups) _insertAll(g, insertIds, generateIds, onDupColumn);
 }
 public void insertAllOnDuplicateKeyUpdateColumnNoChange(
     JwList<AcDomesticCandidateRouteTmp> v, String onDupColumn) {
   JwList<JwList<AcDomesticCandidateRouteTmp>> groups =
       v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcDomesticCandidateRouteTmp> g : groups) _insertAll(g, onDupColumn);
 }
 private void loadAllAvailableList() {
   Collection<AcGlobalTimeZone> v = getMap().values();
   _allAvailableList = new JwList<AcGlobalTimeZone>();
   for (AcGlobalTimeZone e : v) if (e.isAvailable()) _allAvailableList.add(e);
   _allAvailableList.setReadOnly();
 }
 public void insertAllOnDuplicateKeyUpdateColumnNoChange(
     JwList<AcMobileProfile> v, String onDupColumn) {
   JwList<JwList<AcMobileProfile>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcMobileProfile> g : groups) _insertAll(g, onDupColumn);
 }
 public void insertAll(
     JwList<AcUploadDownloadFile> v, boolean insertIds, boolean generateIds, String onDupColumn) {
   JwList<JwList<AcUploadDownloadFile>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcUploadDownloadFile> g : groups)
     _insertAll(g, insertIds, generateIds, onDupColumn);
 }
 public void addLineHaulDollarDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_LINE_HAUL_DOLLAR);
 }
 private void loadAllAvailableList() {
   Collection<AcGlobalCoTerminusAirport> v = getMap().values();
   _allAvailableList = new JwList<AcGlobalCoTerminusAirport>();
   for (AcGlobalCoTerminusAirport e : v) if (e.isAvailable()) _allAvailableList.add(e);
   _allAvailableList.setReadOnly();
 }
 private void setAllByGlobalCoTerminusIdMapReadOnly() {
   for (JwList<AcGlobalCoTerminusAirport> v : _allByGlobalCoTerminusIdMap.values())
     v.setReadOnly();
 }
 public JwSqlInsert _checkAndComposeInsert(AcGlobalAuditLog e) {
   JwList<AcGlobalAuditLog> v;
   v = new JwList<AcGlobalAuditLog>();
   v.add(e);
   return _checkAndComposeInsert(v, false);
 }
 public JwSqlInsert _checkAndComposeInsert(AcScheduledFlightUpload e) {
   JwList<AcScheduledFlightUpload> v;
   v = new JwList<AcScheduledFlightUpload>();
   v.add(e);
   return _checkAndComposeInsert(v, false);
 }
 public void addLineHaulSdrRateDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_LINE_HAUL_SDR);
 }
Example #19
0
 public void add(AcEdiSegmentFinderIF x) {
   _list.add(x);
 }
 public void addTerminalHandlingSdrDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_TERMINAL_HANDLING_SDR);
 }
 public JwSqlInsert _checkAndComposeInsert(AcUploadDownloadFile e) {
   JwList<AcUploadDownloadFile> v;
   v = new JwList<AcUploadDownloadFile>();
   v.add(e);
   return _checkAndComposeInsert(v, false);
 }
 public void addSpecialPerKiloDollarDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_SPECIAL_PER_KILO_DOLLAR);
 }
 public void insertAll(JwList<AcMobileProfile> v) {
   JwList<JwList<AcMobileProfile>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   String onDupColumn = null;
   for (JwList<AcMobileProfile> g : groups) _insertAll(g, onDupColumn);
 }
 public void addSpecialPerKiloSdrRateDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_SPECIAL_PER_KILO_SDR);
 }
 public JwSqlInsert _checkAndComposeInsert(AcMobileProfile e) {
   JwList<AcMobileProfile> v;
   v = new JwList<AcMobileProfile>();
   v.add(e);
   return _checkAndComposeInsert(v);
 }
 public void addSpecialPerTripSdrDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_SPECIAL_PER_TRIP_SDR);
 }
 public void insertAll(JwList<AcDomesticCandidateRouteTmp> v) {
   JwList<JwList<AcDomesticCandidateRouteTmp>> groups =
       v.splitByGroupSize(getBatchInsertGroupSize());
   String onDupColumn = null;
   for (JwList<AcDomesticCandidateRouteTmp> g : groups) _insertAll(g, onDupColumn);
 }
 public void addContainerDollarRateDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_CONTAINER_DOLLAR);
 }
 public JwSqlInsert _checkAndComposeInsert(AcDomesticCandidateRouteTmp e) {
   JwList<AcDomesticCandidateRouteTmp> v;
   v = new JwList<AcDomesticCandidateRouteTmp>();
   v.add(e);
   return _checkAndComposeInsert(v);
 }
 public void addContainerSdrDispute() {
   _lazyCreateDisputeTypeList();
   _rvdTypes.add(RVD_CONTAINER_SDR);
 }