company logo

context class

A context class allows defining specific behavior for a database, complex data type or property. Within a context class event handler functions (triggers) can be implemented, which allow handling different types of data events caused by state transitions.

A context class can be linked to one or more data types or properties. Special context classes are database and object space context class, which are linked to the database or to an object space within the database.

Besides reacting on events, context classes implement specific context related behavior. Thus, the behavior of children in a person context may differ slightly from the more general behavior of the person, which each child represents. Moreover, context classes allow defining behavior for attributes or references (property context).

Generalisations:  C++ class

Related topics