Пример #1
0
 private boolean isDeletedSFDataObject(DataObject obj) { // salesforce
   Collection<String> deletedSFDataObjects = this.cfg.getDeletedSFDataObjects();
   for (String name : deletedSFDataObjects) {
     String src = StringUtils.classNameToSrcFilePath(obj.getJavaType());
     if (src.equals(name)) {
       return true;
     }
   }
   return false;
 }
Пример #2
0
  /**
   * Return true if the underlying service needs to be re-generated, false otherwise.
   *
   * @param srcLastModified The last time the service src was modified, in milliseconds since the
   *     epoch.
   * @return true if service is up to date, false if it needs to be re-generated.
   */
  public boolean isUpToDate(long srcLastModified) {
    if (srcLastModified == 0) {
      return false;
    }

    com.wavemaker.tools.io.File f =
        this.configuration
            .getOutputDirectory()
            .getFile(StringUtils.classNameToSrcFilePath(getClassName()));
    if (!f.exists()) {
      return false;
    }
    return srcLastModified <= f.getLastModified();
  }