コード例 #1
0
 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);
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 private JwList<AcScheduledFlightUploadErrorVo> fillErrors(JwList<AcScheduledFlightUpload> v) {
   JwList<AcScheduledFlightUploadErrorVo> r = new JwList<AcScheduledFlightUploadErrorVo>(v.size());
   // we need some sort of starting "date" - we don't care what it is or what timezone it uses
   JwDate date = AcGlobals.nowUtc().getDate().getCopy();
   JwMap<String, AcAirport> airportCache = new JwMap<String, AcAirport>();
   for (AcScheduledFlightUpload o : v) {
     AcScheduledFlightUploadErrorVo e = new AcScheduledFlightUploadErrorVo();
     e.setScheduledFlightUpload(o);
     validateDates(e);
     validateTimes(date, airportCache, e);
     r.add(e);
   }
   return r;
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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();
   }
 }
コード例 #7
0
 private void loadAllAvailableList() {
   Collection<AcGlobalTimeZone> v = getMap().values();
   _allAvailableList = new JwList<AcGlobalTimeZone>();
   for (AcGlobalTimeZone e : v) if (e.isAvailable()) _allAvailableList.add(e);
   _allAvailableList.setReadOnly();
 }
コード例 #8
0
 public JwSqlInsert _checkAndComposeInsert(AcMobileProfile e) {
   JwList<AcMobileProfile> v;
   v = new JwList<AcMobileProfile>();
   v.add(e);
   return _checkAndComposeInsert(v);
 }
コード例 #9
0
 public void insertAllOnDuplicateKeyUpdateColumnNoChange(
     JwList<AcMobileProfile> v, String onDupColumn) {
   JwList<JwList<AcMobileProfile>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcMobileProfile> g : groups) _insertAll(g, onDupColumn);
 }
コード例 #10
0
 public void insertAll(JwList<AcMobileProfile> v) {
   JwList<JwList<AcMobileProfile>> groups = v.splitByGroupSize(getBatchInsertGroupSize());
   String onDupColumn = null;
   for (JwList<AcMobileProfile> g : groups) _insertAll(g, onDupColumn);
 }
コード例 #11
0
 public JwSqlInsert _checkAndComposeInsert(AcGlobalAuditLog e) {
   JwList<AcGlobalAuditLog> v;
   v = new JwList<AcGlobalAuditLog>();
   v.add(e);
   return _checkAndComposeInsert(v, false);
 }
コード例 #12
0
 public JwSqlInsert _checkAndComposeInsert(AcUploadDownloadFile e) {
   JwList<AcUploadDownloadFile> v;
   v = new JwList<AcUploadDownloadFile>();
   v.add(e);
   return _checkAndComposeInsert(v, false);
 }
コード例 #13
0
 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);
 }
コード例 #14
0
 public void insertAllOnDuplicateKeyUpdateColumnNoChange(
     JwList<AcDomesticCandidateRouteTmp> v, String onDupColumn) {
   JwList<JwList<AcDomesticCandidateRouteTmp>> groups =
       v.splitByGroupSize(getBatchInsertGroupSize());
   for (JwList<AcDomesticCandidateRouteTmp> g : groups) _insertAll(g, onDupColumn);
 }
コード例 #15
0
 // collect ids in order given
 public static JwList<Integer> collectScheduledFlightCalendarIds(
     JwList<AcMultiSectorScheduledFlightLeg> v) {
   JwList<Integer> ids = new JwList<Integer>();
   for (AcMultiSectorScheduledFlightLeg e : v) ids.add(e.getScheduledFlightCalendarId());
   return ids;
 }
コード例 #16
0
 private void setAllByGlobalCoTerminusIdMapReadOnly() {
   for (JwList<AcGlobalCoTerminusAirport> v : _allByGlobalCoTerminusIdMap.values())
     v.setReadOnly();
 }
コード例 #17
0
 private void loadAllAvailableList() {
   Collection<AcGlobalCoTerminusAirport> v = getMap().values();
   _allAvailableList = new JwList<AcGlobalCoTerminusAirport>();
   for (AcGlobalCoTerminusAirport e : v) if (e.isAvailable()) _allAvailableList.add(e);
   _allAvailableList.setReadOnly();
 }
コード例 #18
0
 public void insertAll(JwList<AcDomesticCandidateRouteTmp> v) {
   JwList<JwList<AcDomesticCandidateRouteTmp>> groups =
       v.splitByGroupSize(getBatchInsertGroupSize());
   String onDupColumn = null;
   for (JwList<AcDomesticCandidateRouteTmp> g : groups) _insertAll(g, onDupColumn);
 }
コード例 #19
0
 public JwSqlInsert _checkAndComposeInsert(AcScheduledFlightUpload e) {
   JwList<AcScheduledFlightUpload> v;
   v = new JwList<AcScheduledFlightUpload>();
   v.add(e);
   return _checkAndComposeInsert(v, false);
 }
コード例 #20
0
 public JwSqlInsert _checkAndComposeInsert(AcDomesticCandidateRouteTmp e) {
   JwList<AcDomesticCandidateRouteTmp> v;
   v = new JwList<AcDomesticCandidateRouteTmp>();
   v.add(e);
   return _checkAndComposeInsert(v);
 }
コード例 #21
0
 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);
 }