getInstanceId()

Retrieves the relationship instance ID of the relationship in which the Participant instance is participating.

Syntax

int getInstanceId()
 

Return values

Returns an integer representing the instance ID of the relationship instance in which this Participant instance is participating. If the Participant instance is not a member of a relationship instance, this method returns the constant, INVALID_INSTANCE_ID.

Exceptions

RelationshipRuntimeException - See "Handling exceptions".

See also

setInstanceId(), Creating relationship definitions, "Transforming with a submap"

Copyright IBM Corp. 1997, 2003