Defining an Interface View

Meta Data Services Programming

Meta Data Services Programming

Defining an Interface View

You can direct the repository engine to create an interface-oriented view for an interface definition object. The generated view includes all properties, including those that are available by way of inheritance, implication, or derivation. It also includes all many-to-one relationships on those interfaces, representing each one as a foreign key.

Interface views are useful for abstract interfaces that are further specialized by other interfaces or that are implemented by different classes. For example, suppose that IStudent and IEmployee both inherit from IPerson. Assume that IStudent and IEmployee are implemented by classes, but that no class exists for IPerson. By generating a view for IPerson, you can include instances of both IStudent and IEmployee using one view.

To create an interface view, use IViewInterfaceDef. For more information about properties and flags that you can specify, see Defining Views in an Information Model and IViewInterfaceDef Interface.

See Also

Defining a Class View

Defining a Junction Table View

RTblIfaceDefs SQL Tables