Interface query - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

Finds and queries are both driven by an interface: for example, find all objects that instantiate ISPFDocumentVersion (plus some extra criteria, such as name, in the case of a quick find).

The code uses the interface to find tables in the database to be queried. A general interface, like ISPFDocumentRevision, is found in too many domain groups, as it is instantiated by many class definitions. These class definitions are stored in many different domains in multiple domain groups, and each domain group relates to a different set of tables in the database.

For optimal performance, use the most specific interface possible. For example, use a primary interface, such as ISPFDesignDocRevision, which is realized by only one class definition and therefore appears in only one domain.

A domain, through its relationship to one domain group, maps to one set of tables in the database.