public boolean isMatch(
     Integer sentEdiInterchangeId, Integer uspsInternationalCandidateRouteMessageId) {
   return JwUtility.isEqual(getSentEdiInterchangeId(), sentEdiInterchangeId)
       && JwUtility.isEqual(
           getUspsInternationalCandidateRouteMessageId(),
           uspsInternationalCandidateRouteMessageId);
 }
 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;
 }
 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 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);
 }
Ejemplo n.º 6
0
 /**
  * Print the string, right padded to the specified length. This also erases the previous string
  * (if any) that was printed using this method. It is important to use the name length each time
  * in order to clear the previous value printed.
  */
 public static void print(Object e, int n) {
   String s = "";
   if (e != null) s = e.toString();
   s = JwUtility.truncate(s, n);
   s = JwUtility.rightPad(s, n);
   System.out.print(s);
   System.out.print(JwUtility.repeat(BACKSPACE, n));
 }
 public boolean equals(Object o) {
   // AcUserAirportMobileDeviceCacheBase and AcUserAirportMobileDeviceCachePk must match.
   if (!(o instanceof AcUserAirportMobileDeviceCachePkIF)) return false;
   AcUserAirportMobileDeviceCachePkIF e = (AcUserAirportMobileDeviceCachePkIF) o;
   if (!JwUtility.isEqual(getLogin(), e.getLogin())) return false;
   if (!JwUtility.isEqual(getAirportCode(), e.getAirportCode())) return false;
   return true;
 }
Ejemplo n.º 8
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;
 }
Ejemplo n.º 9
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;
 }
Ejemplo n.º 10
0
 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;
 }
 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 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 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);
   }
 }
  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) {
   // 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;
 }
 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;
 }
 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) {
   // AcTravelPlanConfirmationContainerBase and AcTravelPlanConfirmationContainerPk must match.
   if (!(o instanceof AcTravelPlanConfirmationContainerPkIF)) return false;
   AcTravelPlanConfirmationContainerPkIF e = (AcTravelPlanConfirmationContainerPkIF) o;
   if (!JwUtility.isEqual(getId(), e.getId())) return false;
   return true;
 }
Ejemplo n.º 20
0
 public boolean equals(Object o) {
   // AcBatchStatisticBase and AcBatchStatisticPk must match.
   if (!(o instanceof AcBatchStatisticPkIF)) return false;
   AcBatchStatisticPkIF e = (AcBatchStatisticPkIF) o;
   if (!JwUtility.isEqual(getId(), e.getId())) return false;
   return true;
 }
Ejemplo n.º 21
0
 public boolean equals(Object o) {
   // AcCustodySummaryVoBase and AcCustodySummaryVoPk must match.
   if (!(o instanceof AcCustodySummaryVoPkIF)) return false;
   AcCustodySummaryVoPkIF e = (AcCustodySummaryVoPkIF) o;
   if (!JwUtility.isEqual(getHashKey(), e.getHashKey())) 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;
 }
Ejemplo n.º 23
0
 /** Print a line; the previous value (if any) is automatically cleared. */
 public void print(Object e) {
   String s = "";
   if (e != null) s = e.toString();
   System.out.print(JwUtility.repeat(BACKSPACE, _valueLength));
   System.out.print(s);
   _valueLength = s.length();
 }
Ejemplo n.º 24
0
 public void printOn(Writer out, JwTemplateConfigIF config, JwTemplateContextIF context) {
   try {
     out.write(_value);
   } catch (Exception ex) {
     JwUtility.throwRuntime(ex);
   }
 }
Ejemplo n.º 25
0
 public boolean equals(Object o) {
   // AcMobileProfileBase and AcMobileProfilePk must match.
   if (!(o instanceof AcMobileProfilePkIF)) return false;
   AcMobileProfilePkIF e = (AcMobileProfilePkIF) o;
   if (!JwUtility.isEqual(getName(), e.getName())) return false;
   return true;
 }
 public boolean equals(Object o) {
   // AcAccountInclusionOperatorVoBase and AcAccountInclusionOperatorVoPk must match.
   if (!(o instanceof AcAccountInclusionOperatorVoPkIF)) return false;
   AcAccountInclusionOperatorVoPkIF e = (AcAccountInclusionOperatorVoPkIF) o;
   if (!JwUtility.isEqual(getAccountCode(), e.getAccountCode())) return false;
   return true;
 }
 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;
 }
Ejemplo n.º 29
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 boolean equals(Object o) {
   // AcUspsInternationalCandidateRouteLegBase and AcUspsInternationalCandidateRouteLegPk must
   // match.
   if (!(o instanceof AcUspsInternationalCandidateRouteLegPkIF)) return false;
   AcUspsInternationalCandidateRouteLegPkIF e = (AcUspsInternationalCandidateRouteLegPkIF) o;
   if (!JwUtility.isEqual(getId(), e.getId())) return false;
   return true;
 }