Previous Topic: ISCPersistenceUnit InterfaceNext Topic: ISCPropertyBag Interface


Property Bag Members for a Persistence Unit

The following table shows some property names and descriptions for property bag members of an existing persistence unit.

Note: A complete set of available properties is located in the appendix API Interfaces Reference.

Property Name

Type

Description

Locator

BSTR

Returns the location of the persistence unit, such as file name. Not available for models without a persistence location, such as new models that were never saved.

Disposition

BSTR

Returns the disposition of the persistence unit, such as read-only.

Persistence_Unit_Id

SC_MODELTYPEID

Retrieves an identifier for the persistence unit.

Model_Type

Long

Retrieves the type of the persistence unit, such as logical, logical-physical, and physical models.

Target_Server
Target_Server_Version
Target_Server_Minor_Version

Long

Retrieves the target database properties for physical and logical-physical models.

Active_Model

Boolean

TRUE if the persistence unit represents the current model and is active in the CA ERwin DM user interface. Not available for the API in standalone mode.

Hidden_Model

Boolean

TRUE if a model window with the persistence unit data is not visible in the CA ERwin DM user interface. Not available for the API in standalone mode.

Active_Subject_Area_and_Stored_Display

SAFEARRAY(BSTR)

Reports names of active Subject Area and Stored Display model objects. This indicates the Subject Area and Stored Display that CA ERwin DM shows on the screen. The returned value is a safe-array with two elements. The first element is a name for the active Subject Area and the second element is for the Stored Display.