|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.plan.ResourceHolderInPlan
The ResourceHolderInPlan object, represents a link between a ResourceInPlan object and the FlowNodeInPlan object that depends on it. The link is obtained either through the JobInPlanKey reference (if the holder is a Job) or through the JobStreamInPlanKey reference (if the holder is a Job Stream). Obviously one and only one of the two references is present for each instance of this class. This is an output only class.
The following syntax validation constraints must be met on Resource objects:
jobStreamKey | If present, reference to an existing job stream |
If not present jobKey is specified. | |
Read Only. | |
jobKey | If present, reference to an existing job |
If not present jobStreamKey is specified. | |
Read Only. | |
quantity | Read Only. |
jobStreamInternalName | Read Only. |
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
ResourceHolderInPlan()
Creates an empty ResourceHolderInPlan. |
|
ResourceHolderInPlan(Identifier id,
JobInPlanKey key)
Constructor |
|
ResourceHolderInPlan(Identifier id,
JobStreamInPlanKey key)
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this ResourceHolderInPlan object are equal to those of the given one. |
Identifier |
getId()
Returns the Identifier either of the Job Stream (if the holder is a Job Stream) or of the Job (if the holder is a Job). |
Identifier |
getJobId()
Returns the Job Identifier |
JobInPlanKey |
getJobKey()
Returns the Job Key |
Identifier |
getJobStreamId()
Returns the Job Stream Identifier |
java.lang.String |
getJobStreamInternalName()
Returns the job stream internal name For Internal Use Only. |
JobStreamInPlanKey |
getJobStreamKey()
Returns the Job Stream Key |
int |
getQuantity()
Returns the quantity held by the holder |
int |
hashCode()
Returns a hash code for this ResourceHolderInPlan object. |
void |
setJobId(Identifier identifier)
Sets the Job Identifier For Internal Use Only. |
void |
setJobKey(JobInPlanKey key)
Sets the Job key For Internal use only. |
void |
setJobStreamId(Identifier identifier)
Sets the Job Stream Identifier. |
void |
setJobStreamInternalName(java.lang.String string)
Sets the job stream internal name For Internal use only. |
void |
setJobStreamKey(JobStreamInPlanKey key)
Sets the Job Stream Key For Internal use only. |
void |
setQuantity(int i)
Sets the quantity used bu holder. |
java.lang.String |
toString()
Returns a string representation of this ResourceHolderInPlan. |
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 ResourceHolderInPlan()
public ResourceHolderInPlan(Identifier id, JobStreamInPlanKey key)
id
- The Job Stream Identifierkey
- The Job Stream keypublic ResourceHolderInPlan(Identifier id, JobInPlanKey key)
id
- The Job Identifierkey
- The Job keyMethod Detail |
public Identifier getId()
getId
in interface TWSLink
TWSLink.getId()
public boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
public Identifier getJobId()
public JobInPlanKey getJobKey()
public Identifier getJobStreamId()
public JobStreamInPlanKey getJobStreamKey()
public int getQuantity()
public void setJobId(Identifier identifier)
identifier
- the Job Identifierpublic void setJobKey(JobInPlanKey key)
key
- the Job keypublic void setJobStreamId(Identifier identifier)
identifier
- the Job Stream Identifierpublic void setJobStreamKey(JobStreamInPlanKey key)
key
- the Job Stream Keypublic void setQuantity(int i)
i
- the quantity used bu holderpublic java.lang.String getJobStreamInternalName()
public void setJobStreamInternalName(java.lang.String string)
string
- the job stream internal name
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |