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<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; }
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; }
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; }
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 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 JwSqlInsert _checkAndComposeInsert(AcMobileProfile e) { JwList<AcMobileProfile> v; v = new JwList<AcMobileProfile>(); v.add(e); return _checkAndComposeInsert(v); }
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<AcMobileProfile> v) { JwList<JwList<AcMobileProfile>> groups = v.splitByGroupSize(getBatchInsertGroupSize()); String onDupColumn = null; for (JwList<AcMobileProfile> g : groups) _insertAll(g, onDupColumn); }
public JwSqlInsert _checkAndComposeInsert(AcUploadDownloadFile e) { JwList<AcUploadDownloadFile> v; v = new JwList<AcUploadDownloadFile>(); v.add(e); return _checkAndComposeInsert(v, false); }
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<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); }
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 insertAll(JwList<AcDomesticCandidateRouteTmp> v) { JwList<JwList<AcDomesticCandidateRouteTmp>> groups = v.splitByGroupSize(getBatchInsertGroupSize()); String onDupColumn = null; for (JwList<AcDomesticCandidateRouteTmp> g : groups) _insertAll(g, onDupColumn); }
public JwSqlInsert _checkAndComposeInsert(AcScheduledFlightUpload e) { JwList<AcScheduledFlightUpload> v; v = new JwList<AcScheduledFlightUpload>(); v.add(e); return _checkAndComposeInsert(v, false); }
public JwSqlInsert _checkAndComposeInsert(AcDomesticCandidateRouteTmp e) { JwList<AcDomesticCandidateRouteTmp> v; v = new JwList<AcDomesticCandidateRouteTmp>(); v.add(e); return _checkAndComposeInsert(v); }
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); }