Class OutputFileSpec

java.lang.Object
com.sas.lsaf.execution.job.OutputFileSpec
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JobPublishCheckin

public class OutputFileSpec extends Object implements Serializable
The class that represents the information about the method to check in outputs that are generated from a job submission. The default is not to version new files. The default version type is MAJOR.
See Also:
  • Constructor Details

    • OutputFileSpec

      public OutputFileSpec()
      The default constructor.
    • OutputFileSpec

      public OutputFileSpec(boolean enableVersioningForNewFiles)
      The constructor.
      Parameters:
      enableVersioningForNewFiles - Indicates whether to version new files.
    • OutputFileSpec

      public OutputFileSpec(boolean enableVersioningForNewFiles, VersionType versionType)
      The constructor.
      Parameters:
      enableVersioningForNewFiles - Indicates whether to version new files.
      versionType - Specifies the method to generate the next version.
    • OutputFileSpec

      public OutputFileSpec(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion)
      The constructor.
      Parameters:
      enableVersioningForNewFiles - Indicates whether to version new files.
      versionType - Specifies the method to generate the next version.
      customVersion - The version, if the version type is CUSTOM.
  • Method Details

    • isEnableVersioningForNewFiles

      public boolean isEnableVersioningForNewFiles()
      Sets whether new files are versioned when created.
      Returns:
      True, if new files are versioned when created.
    • setEnableVersioningForNewFiles

      public void setEnableVersioningForNewFiles(boolean enableVersioningForNewFiles)
      Indicates whether new files are versioned when they are created.
      Parameters:
      enableVersioningForNewFiles - Indicates whether new files are versioned when created.
    • getVersionType

      public VersionType getVersionType()
      Gets the method to generate the next version.
      Returns:
      The method.
    • setVersionType

      public void setVersionType(VersionType versionType)
      Sets the method to generate the next version.
      Parameters:
      versionType - The method.
    • getCustomVersion

      public String getCustomVersion()
      Gets the version when the version type is CUSTOM.
      Returns:
      The version.
    • setCustomVersion

      public void setCustomVersion(String customVersion)
      Sets the version when the version type is CUSTOM.
      Parameters:
      customVersion - The version.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object