The capabilities of the Record classifier are made available when you code a Record part, which contains a set of fields.
Record CarPolicy {}
thePolicyID STRING;
theCarCount NumberOfCars;
theDriverCount NumberofDrivers;
end
myCarPolicy CarPolicy; myCarPolicy.thePolicyID = "ABC123"; myCarPolicy.theCarCount = 2; myCarPolicy.theDriverCount = 2;
| 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. |