An attribute ID is used to carry attribute types (no values) around.
Definition attrid.h:20
The common base class of Nebula.
Definition refcounted.h:38
A Relation object describes a relation between 2 tables which are linked through a common attribute.
Definition relation.h:22
Ptr< Table > parentTable
Definition relation.h:43
const Attr::AttrId & GetChildColumnId() const
get child column id
Definition relation.h:102
Relation()
constructor
Definition relation.cc:16
Attr::AttrId parentColumnId
Definition relation.h:44
const Ptr< Table > & GetChildTable() const
get child table
Definition relation.h:93
void SetChild(const Ptr< Table > &table, const Attr::AttrId &columnId)
set child table and column id
Definition relation.h:82
Ptr< Table > childTable
Definition relation.h:45
Attr::AttrId childColumnId
Definition relation.h:46
virtual ~Relation()
destructor
Definition relation.cc:24
void SetParent(const Ptr< Table > &table, const Attr::AttrId &columnId)
set the parent table and column id
Definition relation.h:53
const Ptr< Table > & GetParentTable() const
get parent table
Definition relation.h:64
const Attr::AttrId & GetParentColumnId() const
get parent column id
Definition relation.h:73
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
#define n_assert(exp)
Definition debug.h:50