|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.model.JobDefinition
This object, which acts as a base abstraction for job definitions, wraps a JobDefinitionHeader, which in turn wraps a JobDefinitionKey, including the reference to the workstation or workstation class on which the job definition can run. Separate classes are used to model specific attributes of job definitions in the TWS distributed and zOS environment.
DistJobDefinition
,
ZOSJobDefinition
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
JobDefinition()
Creates an empty JobDefinition. |
|
JobDefinition(JobDefinitionHeader jobDefinitionHeader)
Creates a JobDefinition with the specified header. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this JobDefinition object are equal to those of the given one. |
java.lang.String |
getDescription()
Returns the job definition description. |
Identifier |
getFlowTargetId()
Returns the identifier of the workstation or workstation class referenced by this job definition. |
FlowTargetKey |
getFlowTargetKey()
Returns the key of the workstation or workstation class referenced by this job definition. |
JobDefinitionHeader |
getHeader()
Returns the JobDefinitionHeader wrapped by this JobDefinition object. |
Identifier |
getId()
Returns the job definition identifier. |
JobDefinitionKey |
getKey()
Returns the JobDefinitionKey wrapped by this JobDefinition object. |
LockData |
getLockData()
Returns the job definition lock data. |
ModifyData |
getModifyData()
Returns the job definition modification data. |
java.lang.String |
getName()
Returns the job definition name. |
long |
getNormalElapsedTime()
Returns the normal elapsed time of a job run. |
TWSHeader |
getObjectHeader()
Returns the job definition header as a TWS header. |
TWSKey |
getObjectKey()
Returns the job definition key as a TWS key. |
java.lang.String |
getTaskType()
Returns the job definition task type. |
java.lang.String |
getUserLogin()
Returns the user login to be used for this job definition. |
int |
hashCode()
Returns a hash code for this JobDefinition object. |
boolean |
isCommand()
Returns true if the task is a command, false if it is a script. |
void |
setCommand(boolean value)
Sets the property used to decide if the task is a command or a script. |
void |
setDescription(java.lang.String value)
Sets the job definition description. |
void |
setFlowTargetId(Identifier identifier)
Sets the identifier of the workstation or workstation class referenced by this job definition. |
void |
setFlowTargetKey(FlowTargetKey trgKey)
Sets the key of the workstation or workstation class referenced by this job definition. |
void |
setHeader(JobDefinitionHeader jobDefinitionHeader)
Sets the JobDefinitionHeader to be wrapped by this JobDefinition object. |
void |
setId(Identifier identifier)
Sets the job definition identifier. |
void |
setKey(JobDefinitionKey jobDefinitionKey)
Sets the JobDefinitionKey to be wrapped by this JobDefinition object. |
void |
setLockData(LockData data)
Sets the job definition lock data. |
void |
setModifyData(ModifyData data)
Sets the job definition modification data. |
void |
setName(java.lang.String value)
Sets the job definition name. |
void |
setNormalElapsedTime(long value)
Sets the normal elapsed time of a job run. |
void |
setTaskType(java.lang.String value)
Sets the job definition task type. |
void |
setUserLogin(java.lang.String value)
Sets the user login to be used for this job definition. |
java.lang.String |
toString()
Returns a string representation of this JobDefinition object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public JobDefinition()
public JobDefinition(JobDefinitionHeader jobDefinitionHeader)
jobDefinitionHeader
- The job definition header.Method Detail |
public Identifier getId()
getId
in interface TWSObject
public TWSKey getObjectKey()
getObjectKey
in interface TWSObject
public TWSHeader getObjectHeader()
getObjectHeader
in interface TWSObject
public JobDefinitionKey getKey()
public JobDefinitionHeader getHeader()
public java.lang.String getName()
getName
in interface TWSObject
public FlowTargetKey getFlowTargetKey()
public java.lang.String getDescription()
public java.lang.String getTaskType()
public boolean isCommand()
public java.lang.String getUserLogin()
public ModifyData getModifyData()
getModifyData
in interface TWSObject
public LockData getLockData()
getLockData
in interface TWSObject
public Identifier getFlowTargetId()
public long getNormalElapsedTime()
public void setId(Identifier identifier)
identifier
- The job definition identifier.public void setKey(JobDefinitionKey jobDefinitionKey)
jobDefinitionKey
- The JobDefinitionKey to be wrapped by this JobDefinition object.public void setHeader(JobDefinitionHeader jobDefinitionHeader)
jobDefinitionHeader
- The JobDefinitionHeader to be wrapped by this JobDefinition object.public void setName(java.lang.String value)
value
- The job definition name.public void setFlowTargetKey(FlowTargetKey trgKey)
trgKey
- The key of the workstation or workstation class referenced by this job definition.public void setDescription(java.lang.String value)
value
- The job definition description.public void setTaskType(java.lang.String value)
value
- The job definition task type.public void setCommand(boolean value)
value
- True if the task is a command, false if it is a script.public void setUserLogin(java.lang.String value)
value
- The user login to be used for this job definition.public void setModifyData(ModifyData data)
data
- A ModifyData object.public void setLockData(LockData data)
data
- A LockData object.public void setFlowTargetId(Identifier identifier)
identifier
- The identifier of the workstation or workstation class referenced by this job definition.public void setNormalElapsedTime(long value)
value
- The normal elapsed time of a job run.public boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |