ArcObjects Library Reference  (GeoDatabase)    

IRelQueryTableName Interface

Provides access to members that define a relationship query table name.

Product Availability

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

Members

Description
Read/write property DoNotPushJoinToDB Indicates if the join is processed on the client.
Read/write property ForwardDirection Indicates if the originPrimaryClass of the RelationshipClass is the SourceTable.
Read/write property LeftOuterJoin Indicates if the type of join will be a left outer join.
Read/write property RelationshipClassName The name object for the RelationshipClass that defines the RelQueryTable.
Read/write property SrcQueryFilter A QueryFilter applied to a cursor opened from the RelQueryTable.
Read/write property SrcSelectionSet A SelectionSet applied to a cursor opened from the RelQueryTable.
Read/write property TargetColumns The destination dataset columns available in a cursor opened from the RelTableTable.

CoClasses that implement IRelQueryTableName

CoClasses and Classes Description
RelQueryTableName A name class that represents a RelQueryTable.

Remarks

The IRelQueryTableName interface contains properties that correspond to the parameters used with the IRelQueryTableFactory::Open method.

The following code shows how to create a new RelQueryTable from a RelQueryTableName object. The function takes a MemoryRelationshipClassName object. To find how to create a MemoryRelationshipClassName, see the help for IMemoryRelationshipClassName.

The IDataset::FullName method can be used on an existing RelQueryTable object to get a corresponding RelQueryTableName object.

See the IName interface topic for more information on Name objects in general.

[C#]

    public IRelQueryTable CreateJoin(IMemoryRelationshipClassName memoryRelationshipClassName)
    {
        IRelQueryTableName relQueryTableName = new RelQueryTableNameClass();
        relQueryTableName.RelationshipClassName = (ESRI.ArcGIS.esriSystem.IName)memoryRelationshipClassName;
        relQueryTableName.ForwardDirection = true;
        relQueryTableName.DoNotPushJoinToDB = true;
        relQueryTableName.TargetColumns = "";
        relQueryTableName.LeftOuterJoin = true;
        relQueryTableName.SrcQueryFilter = null;
        relQueryTableName.SrcSelectionSet = null;
        ESRI.ArcGIS.esriSystem.IName name = (ESRI.ArcGIS.esriSystem.IName)relQueryTableName;
        return (IRelQueryTable)name.Open();
    }

[Visual Basic 6.0]
Private Function CreateJoin(pMemoryRelationshipClassName As IMemoryRelationshipClassName) As IRelQueryTable
  Dim pRelQueryTableName As IRelQueryTableName
  Set pRelQueryTableName = New RelQueryTableName
  With pRelQueryTableName
    Set .RelationshipClassName = pMemoryRelationshipClassName
    .ForwardDirection = True
    .DoNotPushJoinToDB = True
    .TargetColumns = ""
    .LeftOuterJoin = True
    Set .SrcQueryFilter = Nothing
    Set .SrcSelectionSet = Nothing
  End With
  Dim pName As IName
  Set pName = pRelQueryTableName
  Set CreateJoin = pName.Open
End Function

See Also

IRelQueryTableFactory Interface | IName Interface

 


Feedback Send feedback on this page