com.esri.arcgis.geodatabase
Interface IRelationship

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AttributedRelationship, IRelationshipProxy, Relationship, SimpleRelationship

public interface IRelationship
extends java.io.Serializable

Provides access to members that return information about the relationship.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Remarks

The IRelationship interface provides read-only information about a relationship. It is most useful with attributed relationships, since it can form a bridge between the attribute information, which is in row form, and the related objects.

When dealing with relationships you will normally use the IRelationshipClass interface, rather than IRelationship.

The SimpleRelationship object represents a pair of related geodatabase objects or features. There are no attribute values associated with the relationship.

You should not cocreate a simple relationship. Instead use IRelationshipClass::CreateRelationship.

The AttributedRelationship object is a kind of row that represents a pair of related objects or features with extra information about the pairing. The extra information is stored in the row.

You should not co-create an attributed relationship. Instead use IRelationshipClass::CreateRelationship.

See Also:
IRelationshipClass, IObject

Method Summary
 IObject getDestinationObject()
          The destination object.
 IObject getOriginObject()
          The origin object.
 IRelationshipClass getRelationshipClass()
          The relationship class to which this relationship belongs.
 

Method Detail

getRelationshipClass

public IRelationshipClass getRelationshipClass()
                                        throws java.io.IOException,
                                               AutomationException
The relationship class to which this relationship belongs.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geodatabase.IRelationshipClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOriginObject

public IObject getOriginObject()
                        throws java.io.IOException,
                               AutomationException
The origin object.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geodatabase.IObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDestinationObject

public IObject getDestinationObject()
                             throws java.io.IOException,
                                    AutomationException
The destination object.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geodatabase.IObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.