Ispecs

Ispecs (ispec-stereotyped classes) represent an entity in the business world, such as a customer, product, or vendor.

Ispecs have inherent behavior related to:

In a Standard mode model, for an Ispec, the standard methods that can be added using the Add menu are Construct, Prepare, and Main. However, if you want to add a user-defined method, you could do so by using the Add New Item dialog box.

Also note that, in a Standard mode model, if an Ispec does not have a presentation defined (PresentationType=None) then it is not valid to use the standard methods of Construct, Prepare, and Main, and therefore these methods will not appear on the Add menu.

Persistent ispecs with at least one attribute that has the Is Key property set to true also have an inherent Maint built-in attribute.

The default window is Members.

Ispec Usage

Ispecs can belong to one of the following categories:

Depending upon usage type, ispecs might also have additional inherent characteristics. These characteristics vary accordingly with the addition and removal of persistent attributes and/or user interfaces.

Refer to Ispec Properties for properties applicable to ispecs.

Persistence

Database Persistence

The typical usage of this property is to define columns in a database table. When you set IsPersistent on one or more attributes within an Ispec or a Class with no stereotype to True, it would mean that a database table is created representing the class and that all IsPersistent attributes will become columns within that database table. For example,

Ispec: Customer

Customer_Id IsPersistent = True

Name IsPersistent = True

Address IsPersistent = True

This example results in a database table called “Customer” with columns “Customer_Id”, “Name” and “Address” being created. Note that the Customer element itself does NOT have IsPersistent = True.

Session Persistence

For attributes that are members of a Segment class, setting IsPersistent to True would mean that they are session persistent. This means that these values are retained for the duration of a user session. They will not be initialized during the ispec runtime cycle, but will retain any values assigned to them. These can be used to pass data from one ispec transaction to another within a single user session.

This can apply to both primitive and non-primitive attributes. Typically, these attributes will retain the values for the duration of a single user session. When the user signs off and later starts a new session these attributes are initialized at the start of the new session. However, if you set the “Preserve Session Data” Windows configuration property, then the value of these session persistent attributes carries over from one session to the next (by the same user).

The following table shows the session persistence support information for MCP and Windows® Runtime:

Session Attribute Type

MCP Runtime

Windows® Runtime

 

Primitive

Supported

Supported

 

<Group> Stereotyped Class

Supported

Supported

 

All Other Classes

Unsupported

Supported