com.ibm.tws.objects.plan
Class JobDefinitionInPlanKey

java.lang.Object
  extended bycom.ibm.tws.objects.plan.JobDefinitionInPlanKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class JobDefinitionInPlanKey
extends java.lang.Object
implements TWSKey

This object represents a job definition in plan external key, including fields used to identify a job definition in TWS external interfaces. Since a job definition is identified by its name and by a referenced workstation, this class includes a name attribute and a reference to a WorkstationInPlanKey object.

See Also:
JobDefinition, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
JobDefinitionInPlanKey()
          Creates an empty JobDefinitionInPlanKey.
JobDefinitionInPlanKey(java.lang.String jobDefinitionName, WorkstationInPlanKey wksKey)
          Creates a JobDefinitionInPlanKey with the specified name and workstation key.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this JobDefinitionInPlanKey object are equal to those of the given one.
 java.lang.String getName()
          Returns the job definition name.
 WorkstationInPlanKey getWorkstationKey()
          Returns the key of the workstation referenced by this job definition.
 int hashCode()
          Returns a hash code for this JobDefinitionInPlanKey object.
 void setName(java.lang.String value)
          Sets the job definition name.
 void setWorkstationKey(WorkstationInPlanKey wksKey)
          Sets the key of the workstation referenced by this job definition.
 java.lang.String toString()
          Returns a string representation of this JobDefinitionInPlanKey.
 
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

JobDefinitionInPlanKey

public JobDefinitionInPlanKey()
Creates an empty JobDefinitionInPlanKey.


JobDefinitionInPlanKey

public JobDefinitionInPlanKey(java.lang.String jobDefinitionName,
                              WorkstationInPlanKey wksKey)
Creates a JobDefinitionInPlanKey with the specified name and workstation key.

Parameters:
jobDefinitionName - The job definition name.
wksKey - The key of the workstation referenced by this job definition.
Method Detail

getName

public java.lang.String getName()
Returns the job definition name.

Specified by:
getName in interface TWSKey
Returns:
The job definition name.

getWorkstationKey

public WorkstationInPlanKey getWorkstationKey()
Returns the key of the workstation referenced by this job definition.

Returns:
The key of the workstation referenced by this job definition.

setName

public void setName(java.lang.String value)
Sets the job definition name.

Parameters:
value - The job definition name.

setWorkstationKey

public void setWorkstationKey(WorkstationInPlanKey wksKey)
Sets the key of the workstation referenced by this job definition.

Parameters:
wksKey - The key of the workstation referenced by this job definition.

equals

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

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 JobDefinitionInPlanKey object.

Returns:
The object's hash code.

toString

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

Returns:
A text string including all JobDefinitionInPlanKey fields.


Copyright © 2005 IBM All Rights Reserved.