public boolean isMatch(
     Integer sentEdiInterchangeId, Integer uspsInternationalCandidateRouteMessageId) {
   return JwUtility.isEqual(getSentEdiInterchangeId(), sentEdiInterchangeId)
       && JwUtility.isEqual(
           getUspsInternationalCandidateRouteMessageId(),
           uspsInternationalCandidateRouteMessageId);
 }
 public boolean isSame(AcSentEdiInterchangeUspsInternationalCandidateRouteMessage e) {
   if (!JwUtility.isEqual(getSentEdiInterchangeId(), e.getSentEdiInterchangeId())) return false;
   if (!JwUtility.isEqual(
       getUspsInternationalCandidateRouteMessageId(),
       e.getUspsInternationalCandidateRouteMessageId())) return false;
   return isSameIgnoringKey(e);
 }
 public boolean isSameIgnoringKey(AcUspsDomesticSkeletonRouteOffer e) {
   if (!JwUtility.isEqual(getUspsDomesticSkeletonRouteId(), e.getUspsDomesticSkeletonRouteId()))
     return false;
   if (!JwUtility.isEqual(getFrequency(), e.getFrequency())) return false;
   if (!JwUtility.isEqual(getCapacity(), e.getCapacity())) return false;
   return true;
 }
Esempio n. 4
0
 public boolean isSameIgnoringKey(AcSqlResultsVo e) {
   if (!JwUtility.isEqual(getRawSql(), e.getRawSql())) return false;
   if (!JwUtility.isEqual(getExpandedSql(), e.getExpandedSql())) return false;
   if (!JwUtility.isEqual(getUpdateCount(), e.getUpdateCount())) return false;
   if (!JwUtility.isEqual(getErrorMessage(), e.getErrorMessage())) return false;
   if (!JwUtility.isEqual(getElapsedTime(), e.getElapsedTime())) return false;
   return true;
 }
Esempio n. 5
0
 public boolean equals(Object o) {
   // AcSqlResultsVoBase and AcSqlResultsVoPk must match.
   if (!(o instanceof AcSqlResultsVoPkIF)) return false;
   AcSqlResultsVoPkIF e = (AcSqlResultsVoPkIF) o;
   if (!JwUtility.isEqual(getSchemaName(), e.getSchemaName())) return false;
   if (!JwUtility.isEqual(getIndex(), e.getIndex())) return false;
   return true;
 }
 public boolean isSame(AcUspsInternationalCgrWorkLegFlightConflictSummaryVo e) {
   if (!JwUtility.isEqual(getLegDepartureLocalTm(), e.getLegDepartureLocalTm())) return false;
   if (!JwUtility.isEqual(getLegArrivalLocalTm(), e.getLegArrivalLocalTm())) return false;
   if (!JwUtility.isEqual(getLegArrivalDayOffset(), e.getLegArrivalDayOffset())) return false;
   if (!JwUtility.isEqual(getLegStopCount(), e.getLegStopCount())) return false;
   if (!JwUtility.isEqual(getLegEquipment(), e.getLegEquipment())) return false;
   return isSameIgnoringKey(e);
 }
 public void format(JwIndentWriter w) throws IOException {
   w.write(
       JwUtility.format(
           "       Receptacle Scan Type: %s\n", _scanType != null ? _scanType.toString() : null));
   w.write(JwUtility.format("Receptacle Container Number: %s\n", _containerNumber));
   w.write(JwUtility.format("      Receptacle List Count: %s\n", _receptacleLists.size()));
   formatReceptacleLists(w);
 }
 public boolean equals(Object o) {
   // AcTravelPlanConfirmationEdiMessageBase and AcTravelPlanConfirmationEdiMessagePk must match.
   if (!(o instanceof AcTravelPlanConfirmationEdiMessagePkIF)) return false;
   AcTravelPlanConfirmationEdiMessagePkIF e = (AcTravelPlanConfirmationEdiMessagePkIF) o;
   if (!JwUtility.isEqual(getTravelPlanConfirmationId(), e.getTravelPlanConfirmationId()))
     return false;
   if (!JwUtility.isEqual(getReceivedEdiMessageId(), e.getReceivedEdiMessageId())) return false;
   return true;
 }
 public boolean equals(Object o) {
   // AcSentFileMessageVoBase and AcSentFileMessageVoPk must match.
   if (!(o instanceof AcSentFileMessageVoPkIF)) return false;
   AcSentFileMessageVoPkIF e = (AcSentFileMessageVoPkIF) o;
   if (!JwUtility.isEqual(getSentEdiInterchangeId(), e.getSentEdiInterchangeId())) return false;
   if (!JwUtility.isEqual(getSentMessageId(), e.getSentMessageId())) return false;
   if (!JwUtility.isEqual(getSentFileId(), e.getSentFileId())) return false;
   return true;
 }
 private void copyMissingLogs(
     JwList<String> missingFilenames, String targetPath, String sourcePath) {
   for (String e : missingFilenames) {
     String sourceFilename = JwUtility.joinPath(sourcePath, e);
     String targetFilename = JwUtility.joinPath(targetPath, e);
     File sourceFile = new File(sourceFilename);
     File targetFile = new File(targetFilename);
     JwUtility.copyFile(sourceFile, targetFile);
   }
 }
 public JwSqlUpdate composeUpdate(AcUploadDownloadFile e) {
   JwSqlUpdate st = createUpdate();
   st.setTable(TABLE);
   st.setValue(PATH, JwUtility.truncate(e.getPath(), PATH_MAX_LENGTH, true));
   st.setValue(FILE_NAME, JwUtility.truncate(e.getFileName(), FILE_NAME_MAX_LENGTH, true));
   st.setValue(DESCRIPTION, JwUtility.truncate(e.getDescription(), DESCRIPTION_MAX_LENGTH, true));
   st.setValue(CREATED_UTC_TS, e.getCreatedUtcTs());
   st.where().isEqual(ID, e.getId());
   return st;
 }
  private AcEdiUpuResdit11ReceptacleList _createReceptacleList() {
    if (_receptacleLists.size() >= MAX_RECEPTACLE_LISTS)
      JwUtility.error(
          "Attempted to create %s when already at capacity.  Max capacity %s",
          JwUtility.formatShortClassName(AcEdiUpuResdit11ReceptacleList.class),
          MAX_RECEPTACLE_LISTS);

    AcEdiUpuResdit11ReceptacleList x = new AcEdiUpuResdit11ReceptacleList();
    _receptacleLists.add(x);
    return x;
  }
 public boolean isMatch(
     JwTime legDepartureLocalTm,
     JwTime legArrivalLocalTm,
     Integer legArrivalDayOffset,
     Integer legStopCount,
     String legEquipment) {
   return JwUtility.isEqual(getLegDepartureLocalTm(), legDepartureLocalTm)
       && JwUtility.isEqual(getLegArrivalLocalTm(), legArrivalLocalTm)
       && JwUtility.isEqual(getLegArrivalDayOffset(), legArrivalDayOffset)
       && JwUtility.isEqual(getLegStopCount(), legStopCount)
       && JwUtility.isEqual(getLegEquipment(), legEquipment);
 }
 public boolean equals(Object o) {
   // AcUspsInternationalCgrWorkLegFlightConflictSummaryVoBase and
   // AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPk must match.
   if (!(o instanceof AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPkIF)) return false;
   AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPkIF e =
       (AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPkIF) o;
   if (!JwUtility.isEqual(getLegDepartureLocalTm(), e.getLegDepartureLocalTm())) return false;
   if (!JwUtility.isEqual(getLegArrivalLocalTm(), e.getLegArrivalLocalTm())) return false;
   if (!JwUtility.isEqual(getLegArrivalDayOffset(), e.getLegArrivalDayOffset())) return false;
   if (!JwUtility.isEqual(getLegStopCount(), e.getLegStopCount())) return false;
   if (!JwUtility.isEqual(getLegEquipment(), e.getLegEquipment())) return false;
   return true;
 }
 public boolean equals(Object o) {
   // AcSentEdiInterchangeUspsInternationalCandidateRouteMessageBase and
   // AcSentEdiInterchangeUspsInternationalCandidateRouteMessagePk must match.
   if (!(o instanceof AcSentEdiInterchangeUspsInternationalCandidateRouteMessagePkIF))
     return false;
   AcSentEdiInterchangeUspsInternationalCandidateRouteMessagePkIF e =
       (AcSentEdiInterchangeUspsInternationalCandidateRouteMessagePkIF) o;
   if (!JwUtility.isEqual(getSentEdiInterchangeId(), e.getSentEdiInterchangeId())) return false;
   if (!JwUtility.isEqual(
       getUspsInternationalCandidateRouteMessageId(),
       e.getUspsInternationalCandidateRouteMessageId())) return false;
   return true;
 }
 private void ftpMissingLogs(
     JwList<String> missingFilenames, String targetPath, String sourcePath) {
   JwFtpClient logFtpClient = null;
   try {
     logFtpClient = AcFtpClient.getLogFtpClient();
     for (String e : missingFilenames) {
       String sourceFilename = JwUtility.joinPath(sourcePath, e);
       String targetFilename = JwUtility.joinPath(targetPath, e);
       logFtpClient.put(targetFilename, sourceFilename);
     }
   } finally {
     if (logFtpClient != null) logFtpClient.close();
   }
 }
 public boolean equals(Object o) {
   // AcHomeBy2300SummaryVoBase and AcHomeBy2300SummaryVoPk must match.
   if (!(o instanceof AcHomeBy2300SummaryVoPkIF)) return false;
   AcHomeBy2300SummaryVoPkIF e = (AcHomeBy2300SummaryVoPkIF) o;
   if (!JwUtility.isEqual(getDueDt(), e.getDueDt())) return false;
   return true;
 }
 public boolean equals(Object o) {
   // AcUspsDomesticSkeletonRouteOfferBase and AcUspsDomesticSkeletonRouteOfferPk must match.
   if (!(o instanceof AcUspsDomesticSkeletonRouteOfferPkIF)) return false;
   AcUspsDomesticSkeletonRouteOfferPkIF e = (AcUspsDomesticSkeletonRouteOfferPkIF) o;
   if (!JwUtility.isEqual(getId(), e.getId())) return false;
   return true;
 }
 public Object validateValue(String key, String value) {
   for (String e : getOptions()) {
     if (JwUtility.isEqual(e, value)) return value;
   }
   error("Property %s: Value (%s) is not valid: %s.", key, value, getPossibleMatchString());
   return null;
 }
Esempio n. 20
0
 public String getTypeName() {
   if (hasType(TYPE_GENERAL)) return NAME_GENERAL;
   if (hasType(TYPE_EXCEPTION)) return NAME_EXCEPTION;
   if (hasType(TYPE_UNSUPPORTED)) return NAME_UNSUPPORTED;
   if (hasType(TYPE_UNRESOLVED_DELEGATE)) return NAME_UNRESOLVED_DELEGATE;
   if (hasType(TYPE_UNRESOLVED_ALIAS)) return NAME_UNRESOLVED_ALIAS;
   return JwUtility.format("Unknown(%s)", getType());
 }
  public JwGeographicCoordinate getValue(ScServletData data) {
    int degrees;
    int minutes;
    double seconds;

    Double d = _degrees.getValue(data);
    if (d == null) return null;
    if (isDecimal(d)) {
      if (_minutes.hasValue(data) && !JwUtility.isEqual(_minutes.getValue(data).doubleValue(), 0.0))
        return null;
      if (_seconds.hasValue(data) && !JwUtility.isEqual(_seconds.getValue(data).doubleValue(), 0.0))
        return null;

      degrees = (int) d.doubleValue();

      d = d - degrees;
      d = d * 60;
      minutes = (int) d.doubleValue();

      d = d - minutes;
      seconds = d * 60;
    } else {
      degrees = (int) d.doubleValue();
      d = _minutes.getValue(data);
      if (d == null) return null;
      if (isDecimal(d)) {
        if (_seconds.hasValue(data)
            && !JwUtility.isEqual(_seconds.getValue(data).doubleValue(), 0.0)) return null;

        minutes = (int) d.doubleValue();

        d = d - minutes;
        seconds = d * 60;
      } else {
        minutes = (int) d.doubleValue();
        d = _seconds.getValue(data);
        if (d == null) return null;
        seconds = d;
      }
    }

    String direction = _direction.getSelectedString();
    if (JwUtility.isEmpty(direction)) return null;
    return new JwGeographicCoordinate(degrees, minutes, seconds, direction, null, null);
  }
  public JwSqlInsert _checkAndComposeInsert(JwList<AcUploadDownloadFile> v, boolean insertIds) {
    for (AcUploadDownloadFile e : v) {
      defaultUpdateCount(e);
      e.validate();
      verifyNoMatching(e);
    }

    JwSqlInsert st = createInsert();
    st.setTable(TABLE);
    populateInsertColumns(st, insertIds);

    for (AcUploadDownloadFile e : v) {
      st.startNewRow();
      if (insertIds) st.addIntegerValue(e.getId());
      st.addStringValue(JwUtility.truncate(e.getPath(), PATH_MAX_LENGTH, true));
      st.addStringValue(JwUtility.truncate(e.getFileName(), FILE_NAME_MAX_LENGTH, true));
      st.addStringValue(JwUtility.truncate(e.getDescription(), DESCRIPTION_MAX_LENGTH, true));
      st.addTimestampValue(e.getCreatedUtcTs());
    }
    return st;
  }
 public boolean isSame(AcGb0901MarketPayComponentSummary e) {
   if (!JwUtility.isEqual(getFirstResultUtcDt(), e.getFirstResultUtcDt())) return false;
   if (!JwUtility.isEqual(getCarrierOrigin(), e.getCarrierOrigin())) return false;
   if (!JwUtility.isEqual(getCarrierDestination(), e.getCarrierDestination())) return false;
   if (!JwUtility.isEqual(getContractedParty(), e.getContractedParty())) return false;
   if (!JwUtility.isEqual(getSubcontractedCarriers(), e.getSubcontractedCarriers())) return false;
   if (!JwUtility.isEqual(getCarrierOperated(), e.getCarrierOperated())) return false;
   return isSameIgnoringKey(e);
 }
 public boolean equals(Object o) {
   // AcGb0901MarketPayComponentSummaryBase and AcGb0901MarketPayComponentSummaryPk must match.
   if (!(o instanceof AcGb0901MarketPayComponentSummaryPkIF)) return false;
   AcGb0901MarketPayComponentSummaryPkIF e = (AcGb0901MarketPayComponentSummaryPkIF) o;
   if (!JwUtility.isEqual(getFirstResultUtcDt(), e.getFirstResultUtcDt())) return false;
   if (!JwUtility.isEqual(getCarrierOrigin(), e.getCarrierOrigin())) return false;
   if (!JwUtility.isEqual(getCarrierDestination(), e.getCarrierDestination())) return false;
   if (!JwUtility.isEqual(getContractedParty(), e.getContractedParty())) return false;
   if (!JwUtility.isEqual(getSubcontractedCarriers(), e.getSubcontractedCarriers())) return false;
   if (!JwUtility.isEqual(getCarrierOperated(), e.getCarrierOperated())) return false;
   return true;
 }
 public boolean isMatch(
     JwDate firstResultUtcDt,
     String carrierOrigin,
     String carrierDestination,
     String contractedParty,
     String subcontractedCarriers,
     Boolean carrierOperated) {
   return JwUtility.isEqual(getFirstResultUtcDt(), firstResultUtcDt)
       && JwUtility.isEqual(getCarrierOrigin(), carrierOrigin)
       && JwUtility.isEqual(getCarrierDestination(), carrierDestination)
       && JwUtility.isEqual(getContractedParty(), contractedParty)
       && JwUtility.isEqual(getSubcontractedCarriers(), subcontractedCarriers)
       && JwUtility.isEqual(getCarrierOperated(), carrierOperated);
 }
 public JwList<AcDomesticCandidateRouteTmp> getAllWhere(String whereClause, Integer rowLimit) {
   JwSqlSelect st = getSelect();
   if (JwUtility.hasValue(whereClause)) st.where().setCondition(whereClause);
   return composeList(st, rowLimit);
 }
 public boolean hasUspsDomesticSkeletonRouteId(Integer e) {
   return JwUtility.isEqual(_uspsDomesticSkeletonRouteId, e);
 }
 public boolean hasId(Integer e) {
   return JwUtility.isEqual(_id, e);
 }
 public boolean isMatch(Integer id) {
   return JwUtility.isEqual(getId(), id);
 }
 public boolean matchesUspsDomesticSkeletonRouteId(Integer uspsDomesticSkeletonRouteId) {
   if (JwUtility.isNotEqual(_uspsDomesticSkeletonRouteId, uspsDomesticSkeletonRouteId))
     return false;
   return true;
 }