コード例 #1
0
  @Override
  public Long getValue(JwSqlResultSet rs, int column, Long def) {
    long i = rs._getLong(column);
    if (rs.wasNull()) return def;

    return new Long(i);
  }
コード例 #2
0
  @Override
  public String getValue(JwSqlResultSet rs, int column, String def) {
    String s = rs._getString(column);
    if (rs.wasNull()) return def;

    s = JwUtility.trimTrailing(s);
    return s;
  }
コード例 #3
0
 public AcUploadDownloadFile read(JwSqlResultSet rs) {
   AcUploadDownloadFile e;
   e = getAccess().newUploadDownloadFile();
   e.setId(rs.getInteger());
   e.setPath(rs.getString());
   e.setFileName(rs.getString());
   e.setDescription(rs.getString());
   e.setCreatedUtcTs(rs.getTimestamp());
   return e;
 }
コード例 #4
0
  public static AcDomesticNominatedRouteSummaryVo readNominatedRouteSummaryVo(JwSqlResultSet rs) {
    JwDate blockBeginUtcDt = rs.getDate();
    JwDate blockEndUtcDt = rs.getDate();
    JwTimestamp minCreatedUtcTs = rs.getTimestamp();
    Integer countNew = rs.getInteger();

    AcDomesticNominatedRouteSummaryVo vo = new AcDomesticNominatedRouteSummaryVo();
    vo.setBlockBeginUtcDt(blockBeginUtcDt);
    vo.setBlockEndUtcDt(blockEndUtcDt);
    vo.setMinimumCreatedUtcTs(minCreatedUtcTs);
    vo.setUnhandledRoutesCount(countNew);
    return vo;
  }
コード例 #5
0
  public static AcDomesticCandidateRouteSummaryVo readSummaryVo(JwSqlResultSet rs) {
    JwDate blockBeginUtcDt = rs.getDate();
    JwDate blockEndUtcDt = rs.getDate();
    Integer count = rs.getInteger();
    String statuses = rs.getString();

    AcDomesticCandidateRouteSummaryVo vo = new AcDomesticCandidateRouteSummaryVo();
    vo.setBlockBeginUtcDt(blockBeginUtcDt);
    vo.setBlockEndUtcDt(blockEndUtcDt);
    vo.setCandidateRoutesCount(0);
    vo.setNominatedRoutesCount(count);
    vo.setNominatedRouteStatusDisplayLabelFromDelimitedString(statuses);
    vo.setRequestedRoutesCount(0);
    return vo;
  }
コード例 #6
0
 public AcDomesticCandidateRouteTmp read(JwSqlResultSet rs) {
   AcDomesticCandidateRouteTmp e;
   e = getAccess().newDomesticCandidateRouteTmp();
   e.setLogin(rs.getString());
   e.setCreatedUtcTs(rs.getTimestamp());
   e.setBlockBeginUtcDt(rs.getDate());
   e.setBlockEndUtcDt(rs.getDate());
   e.setRouteBeginUtcDt(rs.getDate());
   e.setRouteEndUtcDt(rs.getDate());
   e.setError(AcDomesticCandidateRouteErrorEnum.getFromCode(rs.getInteger()));
   return e;
 }
コード例 #7
0
 public AcGlobalAuditLog read(JwSqlResultSet rs) {
   AcGlobalAuditLog e;
   e = getAccess().newGlobalAuditLog();
   e.setId(rs.getInteger());
   e.setModifiedUtcTs(rs.getTimestamp());
   e.setUser(rs.getString());
   e.setType(rs.getInteger());
   e.setTypeName(rs.getString());
   e.setSubject1(rs.getString());
   e.setSubject2(rs.getString());
   e.setSubject3(rs.getString());
   e.setOldValue(rs.getString());
   e.setNewValue(rs.getString());
   return e;
 }
コード例 #8
0
 public AcMobileProfile read(JwSqlResultSet rs) {
   AcMobileProfile e;
   e = getAccess().newMobileProfile();
   e.setName(rs.getString());
   return e;
 }
コード例 #9
0
 public AcScheduledFlightUpload read(JwSqlResultSet rs) {
   AcScheduledFlightUpload e;
   e = getAccess().newScheduledFlightUpload();
   e.setId(rs.getInteger());
   e.setOperatorCarrierCode(rs.getString());
   e.setOperatorNumber(rs.getString());
   e.setRelationship(AcFlightRelationshipEnum.getFromCode(rs.getString()));
   e.setOriginAirportCode(rs.getString());
   e.setDestinationAirportCode(rs.getString());
   e.setDepartureLocalTm(rs.getTime());
   e.setArrivalLocalTm(rs.getTime());
   e.setDayOffset(rs.getInteger());
   e.setBoundingStartLocalDt(rs.getDate());
   e.setBoundingEndLocalDt(rs.getDate());
   e.setFrequency(rs.getDayFrequency());
   e.setEquipmentCode(rs.getString());
   e.setSource(AcScheduledFlightCalendarSourceEnum.getFromCode(rs.getString()));
   e.setAbsoluteSource(AcScheduledFlightCalendarAbsoluteSourceEnum.getFromCode(rs.getString()));
   e.setCancel(rs.getBoolean());
   e.setCreatedUtcTs(rs.getTimestamp());
   e.setSequence(rs.getInteger());
   return e;
 }