com.ibm.tws.objects.model
Class JobHeader

java.lang.Object
  extended bycom.ibm.tws.objects.model.FlowNodeHeader
      extended bycom.ibm.tws.objects.model.JobHeader
All Implemented Interfaces:
java.io.Serializable, TWSHeader

public class JobHeader
extends FlowNodeHeader

This subclass of FlowNodeHeader hosts the attributes to be shown by TWS external interfaces when listing jobs in addition to those already hosted by the FlowNodeHeader class.

See Also:
Job, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.tws.objects.model.FlowNodeHeader
DEFAULT_PRIORITY
 
Constructor Summary
JobHeader()
          Creates an empty JobHeader.
JobHeader(Identifier jobId)
          Creates a JobHeader with the specified identifier.
JobHeader(Identifier jobId, JobKey jobKey)
          Creates a JobHeader with the specified identifier and key.
JobHeader(JobKey jobKey)
          Creates a JobHeader with the specified key.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this JobHeader object are equal to those of the given one.
 JobStreamKey getJobStreamKey()
          Returns the key of the job stream that includes this job.
 LockData getLockData()
          Returns null, since this object has no lock data.
 ModifyData getModifyData()
          Returns null, since this object has no modification data.
 int hashCode()
          Returns a hash code for this JobHeader object.
 void setJobStreamKey(JobStreamKey jstKey)
          Sets the key of the job stream that includes this job.
 java.lang.String toString()
          Returns a string representation of this JobHeader object.
 
Methods inherited from class com.ibm.tws.objects.model.FlowNodeHeader
getDescription, getId, getKey, getName, getObjectKey, getPriority, getTimeZone, setDescription, setId, setKey, setName, setPriority, setTimeZone
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

JobHeader

public JobHeader()
Creates an empty JobHeader.


JobHeader

public JobHeader(Identifier jobId)
Creates a JobHeader with the specified identifier.

Parameters:
jobId - The job identifier.

JobHeader

public JobHeader(JobKey jobKey)
Creates a JobHeader with the specified key.

Parameters:
jobKey - The job key.

JobHeader

public JobHeader(Identifier jobId,
                 JobKey jobKey)
Creates a JobHeader with the specified identifier and key.

Parameters:
jobId - The job identifier.
jobKey - The job key.
Method Detail

getJobStreamKey

public JobStreamKey getJobStreamKey()
Returns the key of the job stream that includes this job.

Returns:
The key of the job stream that includes this job.

getModifyData

public ModifyData getModifyData()
Returns null, since this object has no modification data.

Returns:
Null, since this object has no modification data.

getLockData

public LockData getLockData()
Returns null, since this object has no lock data.

Returns:
Null, since this object has no lock data.

setJobStreamKey

public void setJobStreamKey(JobStreamKey jstKey)
Sets the key of the job stream that includes this job.

Parameters:
jstKey - The key of the job stream that includes this job.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this JobHeader object are equal to those of the given one.

Overrides:
equals in class FlowNodeHeader
Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this JobHeader object.

Overrides:
hashCode in class FlowNodeHeader
Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this JobHeader object.

Overrides:
toString in class FlowNodeHeader
Returns:
A text string including all JobHeader fields.


Copyright © 2005 IBM All Rights Reserved.