Record classifier overview

The capabilities of the Record classifier are made available when you code a Record type, which contains a set of fields.

Here is an example:
Record CarPolicy {}
   thePolicyID STRING; 
   theCarCount NumberOfCars;
   theDriverCount NumberofDrivers;
end
The following code shows a record declaration with data assignments:
myCarPolicy CarPolicy;
myCarPolicy.thePolicyID = "ABC123";
myCarPolicy.theCarCount = 2;
myCarPolicy.theDriverCount = 2;
The next table lists the stereotypes that are available for a Record type.
Stereotype Purpose
none specified To handle data in memory instead of than interacting with an external technology such as a database management system.
Entity To mark a type that has fields to be persisted in a database or other data store. In version 1.0, you can indicate a relationship among types that have the Entity stereotype.

This stereotype applies to ExternalType, Handler, and Record types.

Exception To make data available to a function that is invoked automatically in response to a runtime error. Such a function is called an exception handler.