Package com.sas.lsaf.execution.job
Class OutputFileSpec
java.lang.Object
com.sas.lsaf.execution.job.OutputFileSpec
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JobPublishCheckin
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 Summary
ConstructorsConstructorDescriptionThe default constructor.OutputFileSpec(boolean enableVersioningForNewFiles) The constructor.OutputFileSpec(boolean enableVersioningForNewFiles, VersionType versionType) The constructor.OutputFileSpec(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the version when the version type isCUSTOM.Gets the method to generate the next version.inthashCode()booleanSets whether new files are versioned when created.voidsetCustomVersion(String customVersion) Sets the version when the version type isCUSTOM.voidsetEnableVersioningForNewFiles(boolean enableVersioningForNewFiles) Indicates whether new files are versioned when they are created.voidsetVersionType(VersionType versionType) Sets the method to generate the next version.toString()
-
Constructor Details
-
OutputFileSpec
public OutputFileSpec()The default constructor. -
OutputFileSpec
public OutputFileSpec(boolean enableVersioningForNewFiles) The constructor.- Parameters:
enableVersioningForNewFiles- Indicates whether to version new files.
-
OutputFileSpec
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 isCUSTOM.
-
-
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
Gets the method to generate the next version.- Returns:
- The method.
-
setVersionType
Sets the method to generate the next version.- Parameters:
versionType- The method.
-
getCustomVersion
Gets the version when the version type isCUSTOM.- Returns:
- The version.
-
setCustomVersion
Sets the version when the version type isCUSTOM.- Parameters:
customVersion- The version.
-
hashCode
public int hashCode() -
equals
-
toString
-