Bold for Delphi turns a UML model into a running application. These pages explain the parts it is built from. They apply to Delphi and to Lazarus / Free Pascal alike unless a page says otherwise.
flowchart TB
subgraph Model["Domain Model"]
UML[UML Classes]
CodeGen[Code Generator]
BusinessClasses[BusinessClasses.pas]
end
subgraph Runtime["Runtime"]
ObjectSpace[Object Space]
OCL[OCL Queries]
Derived[Derived Attributes]
Subscriptions[Subscription System]
Logging[Logging System]
end
subgraph Data["Data Layer"]
Persistence[Persistence Layer]
DB[(Database)]
end
UML --> CodeGen
CodeGen --> BusinessClasses
BusinessClasses --> ObjectSpace
ObjectSpace --> OCL
ObjectSpace --> Subscriptions
OCL --> Derived
Subscriptions --> Derived
ObjectSpace --> Persistence
Persistence --> DB
click ObjectSpace href "object-space/" "Object Space documentation"
click OCL href "ocl/" "OCL documentation"
click Derived href "derived-attributes/" "Derived Attributes documentation"
click Subscriptions href "subscriptions/" "Subscriptions documentation"
click Logging href "logging/" "Logging documentation"
click Persistence href "persistence/" "Persistence documentation"
click DB href "persistence/" "Database persistence documentation"
| Concept | Description | Learn More |
|---|---|---|
| Object space | The in-memory graph of domain objects, managed by TBoldSystem |
Object Space |
| OCL | The query language for navigating and filtering objects | OCL Queries |
| Derived attributes | Members whose value Bold computes from other values, in OCL or in code | Derived Attributes |
| Persistence | Object-relational mapping to a SQL database, or storage in an XML file | Persistence |
| Subscriptions | The observer mechanism that keeps derived values and the UI current | Subscriptions |
| Logging | A simple file log, a log with levels and sinks, and a progress log | Logging |
- Model: create the UML model with classes, attributes and associations, in the model editor of the Delphi IDE
or in the standalone model editor (
Tools/ModelEditor). - Generate: Bold generates the Object Pascal business classes from the model.
- Develop: write the business logic in the generated classes.
- Run: objects live in the object space and are saved to the database.
- React: subscriptions recompute derived values and update the Bold-aware UI.