Next: , Previous: Data model objects, Up: The data model


2.3 Object types

Each object stored in a data model should pertain to some object type. The data model know about several object types: entities, relationships, etc. The data model implementation should be scalable enough to manage any arbitrary number of object types.

Any object type should provide the following information in order to be registered into a data model:

A data structure that describes the object type
A data structure containing the specific data for any object of that type
For example, an entity object type should manage an entity name, attributes, documentation, etc.
Callbacks to be called on:
Object creation
void *create_object_callback ()
Object destruction
destroy_object_callback (void *)
Storing object data
store_data_callback (void *)
Retrieving object data
void *retrieve_data_callback ()
Data Model Objects

Figure 2.4: Object types