Central Abstractions
Applications built with Circumflex ORM usually operate on following abstractions:
Record
— wraps a row in a database Table
or View
, encapsulates the database access and adds domain logic on that data;
Relation
— encapsulates database object (Table
or View
) for corresponding Record
and adds methods for querying, manipulating and validating its data;
Field
— corresponds to atomic data unit inside Record
or database column in Table
;
Association
— incapsulates Field
which links one type of Record
with another, this relationship is expressed by foreign keys in the database;
Query
— communicates with database either for data retrieval or data manipulation;
SchemaObject
— represents an abstract database object (such as trigger, index, constraint or stored procedure); tables and views are database objects, too.