public class JobType extends BaseMetadata implements Serializable
JobType
definition. A JobType
is conceptually the highest level class among job metadata objects. It can be used to define the common characteristics for all the jobs that belong to a particular type.
This class represents all the metadata attributes for a JobType
definition.
Modifier and Type | Class and Description |
---|---|
static class |
JobType.ExecutionType
Enum of the basic execution types.
|
Constructor and Description |
---|
JobType(String name, JobType.ExecutionType executionType)
Constructor that creates a skeleton instance.
|
JobType(String name, String description, JobType.ExecutionType executionType, ParameterList parameters)
Constructor to create a complete instance that can be used immediately upon creation.
|
JobType(String name, String displayNameKey, String descriptionKey, JobType.ExecutionType executionType, ParameterList parameters, String[] resourceBundleIDs)
Constructor to create a complete instance that can be used immediately upon creation and associate the instance with a set of resource bundles.
|
Modifier and Type | Method and Description |
---|---|
JobType |
clone(String newName) |
int |
compareWithParams(Object obj)
Compares an object for equality with this
JobType object. |
boolean |
equals(Object obj)
Compares an object for equality with this
JobType object. |
BaseMetadataType |
getBaseMetadataType()
Gets the intended type of this metadata.
|
JobType.ExecutionType |
getExecutionType()
Gets the basic execution type of this
JobType definition. |
ParameterList |
getParameters()
Gets the parameters defined for this
JobType definition. |
void |
setParameters(ParameterList params)
Sets the parameters of this
JobType definition. |
getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getMetadataObjectId, getName, getResourceBundles, hashCode, setDescription, setDescriptionKey, setDisplayName, setDisplayNameKey, setResourceBundles, toString, validate
public JobType(String name, JobType.ExecutionType executionType)
name
- the unique name for this JobType definition. The name is also used as the default display name unless otherwise specifically set.executionType
- the basic execution type of this JobTypepublic JobType(String name, String description, JobType.ExecutionType executionType, ParameterList parameters)
name
- the unique name for this JobType definition. The name is also used as the default display name unless otherwise specifically set.description
- an optional description for this JobTypeexecutionType
- the basic execution type of this JobTypeparameters
- the parameters that describe the detailed attributes of this definition.public JobType(String name, String displayNameKey, String descriptionKey, JobType.ExecutionType executionType, ParameterList parameters, String[] resourceBundleIDs)
name
- the unique name for this JobType definition. The name is also used as the default display name unless otherwise specifically set.displayNameKey
- the resource bundle key for the display name. Optional.descriptionKey
- the resource bundle key for the description. Optional.executionType
- the basic execution type of this JobTypeparameters
- the parameters that describe the detailed attributes of this definition.resourceBundleIDs
- an array of resource bundle ids.public JobType.ExecutionType getExecutionType()
JobType
definition.public ParameterList getParameters()
JobType
definition.public void setParameters(ParameterList params)
JobType
definition.params
- the parameters to be used for this definitionpublic boolean equals(Object obj)
JobType
object.
At present, the comparision checks the object is an instance of JobType
and the execution type matches.
public int compareWithParams(Object obj)
JobType
object.obj
- object to compare.public BaseMetadataType getBaseMetadataType()
BaseMetadata
getBaseMetadataType
in class BaseMetadata
public JobType clone(String newName)
clone
in class BaseMetadata