The capabilities of the Record classifier are made available when you code a Record type, 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. |
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. |