Record classifier overview

The capabilities of the Record classifier are made available when you code a Record part, 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 part.
Stereotype Purpose
none specified To handle data in memory instead of than interacting with an external technology such as a database management system.
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.
SQLRecord To access a relational database.