Skip to content

Latest commit

 

History

History
66 lines (55 loc) · 2.7 KB

index.md

File metadata and controls

66 lines (55 loc) · 2.7 KB

Core Concepts

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.

Concept Map

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"
Loading

Key Concepts

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

The Bold Workflow

  1. 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).
  2. Generate: Bold generates the Object Pascal business classes from the model.
  3. Develop: write the business logic in the generated classes.
  4. Run: objects live in the object space and are saved to the database.
  5. React: subscriptions recompute derived values and update the Bold-aware UI.