public class JobDefinition extends BaseMetadata implements Serializable
JobType definition.
The name of a JobDefinition is unique in the metadata repository. Once a JobDefinition is created with a given type, its name and JobType cannot be changed.
JobType,
Serialized Form| Constructor and Description |
|---|
JobDefinition(String name,
MetadataObjectId jobType)
Constructs a skeletal JobDefinition with name and JobType.
|
JobDefinition(String name,
MetadataObjectId jobType,
String description,
ParameterList parameters)
Constructs a JobDefinition with the given parameters.
|
JobDefinition(String name,
MetadataObjectId jobType,
String displayNameKey,
String descriptionKey,
ParameterList parameters,
String[] resourceBundleIDs)
Constructs a fully populated JobDefinition.
|
| Modifier and Type | Method and Description |
|---|---|
JobDefinition |
clone(String newName) |
int |
compareWithParams(Object obj)
Compares an object for equality with this
JobDefinition object. |
boolean |
equals(Object obj)
Compares an object for equality with this JobDefinition object.
|
BaseMetadataType |
getBaseMetadataType()
Gets the intended type of this metadata.
|
MetadataObjectId |
getJobType()
The metadata identifier of the JobType associated with this
JobDefinition instance.
|
ParameterList |
getParameters()
The parameters defined for this JobDefinition.
|
void |
setParameters(ParameterList params)
Sets the parameters for this JobDefinition.
|
void |
validate(JobType jobType)
Validates this JobDefinition.
|
getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getMetadataObjectId, getName, getResourceBundles, hashCode, setDescription, setDescriptionKey, setDisplayName, setDisplayNameKey, setResourceBundles, toString, validatepublic JobDefinition(String name, MetadataObjectId jobType)
name - the name for the JobDefinition. The name is also
used as the default display name unless otherwise specifically set.jobType - the identifier for the JobType definition for
this JobDefinition object.public JobDefinition(String name, MetadataObjectId jobType, String description, ParameterList parameters)
name - the name for the JobDefinition. The name is also
used as the default display name unless otherwise specifically set.jobType - the JobType for this JobDefinition.description - an optional description to be associated.parameters - all the parameters defined for this JobDefinition.public JobDefinition(String name, MetadataObjectId jobType, String displayNameKey, String descriptionKey, ParameterList parameters, String[] resourceBundleIDs)
name - the name for the JobDefinition. The name is also
used as the default display name unless otherwise specifically set.jobType - the JobType for this JobDefinition.displayNameKey - the resource bundle key for the display name.
Optional.descriptionKey - the resource bundle key for the description.
Optional.parameters - all the parameters defined for this JobDefinition.resourceBundleIDs - an array of resource bundle id. Optional.public MetadataObjectId getJobType()
public ParameterList getParameters()
public void setParameters(ParameterList params)
params - a ParameterList containing the parameters.public void validate(JobType jobType) throws ValidationException
jobType - the JobType to use for validation. This should
represent the same JobType associated with this JobDefinition.ValidationException - if validation fails.public boolean equals(Object obj)
public int compareWithParams(Object obj)
JobDefinition object.obj - object to compare.public BaseMetadataType getBaseMetadataType()
BaseMetadatagetBaseMetadataType in class BaseMetadatapublic JobDefinition clone(String newName)
clone in class BaseMetadata