#include <oofrel.h>
Collaboration diagram for dbRelationship:

Simple relationships just use dbRelationship as a functor. In cases like M:N relationships we need to create a named dbRelationship to call additional specification methods like linkMNvia();
Public Member Functions | |
| dbRelationship (dbRelRefBase &, dbRelRefBase &) | |
| dbRelationship (dbRelRefBase *, dbRelRefBase *) | |
| dbRelationship (dbRelRefBase &, dbRelRefBase &, dbField &, dbField &) | |
| dbRelationship (dbRelRefBase *, dbRelRefBase *, dbField *, dbField *) | |
| void | linkMNvia (dbRelRefBase &, dbRelRefBase &) |
| Finish specifying an M:N relationship by pointing out from middle table to both sides. | |
| void | linkMNvia (dbRelRefBase *, dbRelRefBase *) |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Finish specifying an M:N relationship by pointing out from middle table to both sides. Assumes a pair of 1:N relationships have been created from the left and right tables to the middle table which maps the M:N. We can create an M:N link directly between the left and right tables usng a dbRelationship but need to not only specify the end-points but also the middle via linkMNvia(). |
1.3.5