Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Relation Class Reference

#include <cRelation.h>

Inheritance diagram for Relation:

Inheritance graph
[legend]
Collaboration diagram for Relation:

Collaboration graph
[legend]
List of all members.

Public Methods

 Relation (const char *a_left_class_name, const char *a_right_class_name, const char *a_table_name, class Connection *a_database_connection, const char *a_left_column_name=NULL, const char *a_right_column_name=NULL)
virtual ~Relation ()
Relation & Connection (class Connection *DbConn)
virtual bool InsertCouple (class RefBase &left, class RefBase &right)=0
virtual bool InsertCouple (class Object &left, class RefBase &right)
virtual bool InsertCouple (class RefBase &left, class Object &right)
virtual bool InsertCouple (class Object &left, class Object &right)
virtual bool DeleteCouple (RefBase &left, RefBase &right)=0
virtual bool DeleteCouple (class Object &left, class RefBase &right)
virtual bool DeleteCouple (class RefBase &left, class Object &right)
virtual bool DeleteCouple (class Object &left, class Object &right)
virtual bool LDeleteAll (class RefBase &right)=0
virtual bool LDeleteAll (class Object &right)
virtual bool DeleteLeft (class RefBase &right)
virtual bool DeleteLeft (class Object &right)
virtual bool RDeleteAll (class RefBase &left)=0
virtual bool RDeleteAll (class Object &left)
virtual bool DeleteRight (class RefBase &left)
virtual bool DeleteRight (class Object &left)
virtual bool WriteDDL (ofstream &S, class Database &Db)=0
virtual bool LExists (const class RefBase &right, const class QueRefProto &query=EQUERY)
virtual bool LExists (const class Object &right, const class QueRefProto &query=EQUERY)
virtual bool RExists (const class RefBase &left, const class QueRefProto &query=EQUERY)
virtual bool RExists (const class Object &left, const class QueRefProto &query=EQUERY)
virtual bool ExistsCouple (const class RefBase &left, const class RefBase &right)=0
virtual bool ExistsCouple (const class Object &left, const class RefBase &right)
virtual bool ExistsCouple (const class RefBase &left, const class Object &right)
virtual bool ExistsCouple (const class Object &left, const class Object &right)

Protected Methods

virtual class ResultBase_LGetAll (ResultBase *rb, const class RefBase &right, const class QueRefProto &query=EQUERY)=0
virtual ResultBase_RGetAll (ResultBase *rb, const class RefBase &left, const class QueRefProto &query=EQUERY)=0
virtual const char * _TableName () const
virtual ResultBase_LGetAll (ResultBase *rb, const class QueRefProto &qL, const class QueRefProto &qR)=0
virtual ResultBase_RGetAll (ResultBase *rb, const class QueRefProto &qL, const class QueRefProto &qR)=0

Protected Attributes

Connection_databaseConnection
const char * _leftClassName
char * _leftColumnName
const char * _rightClassName
char * _tableName
char * _rightColumnName

Private Attributes

friend ChainedRelationBase

Constructor & Destructor Documentation

Relation::Relation const char *    a_left_class_name,
const char *    a_right_class_name,
const char *    a_table_name,
class Connection   a_database_connection,
const char *    a_left_column_name = NULL,
const char *    a_right_column_name = NULL
 

Definition at line 27 of file cRelation.cpp.

References _databaseConnection, _leftClassName, _leftColumnName, _rightClassName, _rightColumnName, _tableName, and StrCpy().

Relation::~Relation   [virtual]
 

Definition at line 44 of file cRelation.cpp.

References _leftColumnName, _rightColumnName, _tableName, and StrFree().


Member Function Documentation

virtual ResultBase* Relation::_LGetAll ResultBase   rb,
const class QueRefProto   qL,
const class QueRefProto   qR
[protected, pure virtual]
 

Implemented in ChainedRelationBase, OneToOneRelation< L, R >, OneToManyRelation< L, R >, ManyToOneRelation< L, R >, and ManyToManyRelation< L, R >.

virtual class ResultBase* Relation::_LGetAll ResultBase   rb,
const class RefBase   right,
const class QueRefProto   query = EQUERY
[protected, pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

virtual ResultBase* Relation::_RGetAll ResultBase   rb,
const class QueRefProto   qL,
const class QueRefProto   qR
[protected, pure virtual]
 

Implemented in ChainedRelationBase, OneToOneRelation< L, R >, OneToManyRelation< L, R >, ManyToOneRelation< L, R >, and ManyToManyRelation< L, R >.

virtual ResultBase* Relation::_RGetAll ResultBase   rb,
const class RefBase   left,
const class QueRefProto   query = EQUERY
[protected, pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

virtual const char* Relation::_TableName   const [inline, protected, virtual]
 

Reimplemented in ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

Definition at line 125 of file cRelation.h.

Referenced by ChainedRelation< L, R >::ChainedRelation(), and ChainedRelation< L, R >::operator=().

Relation& Relation::Connection class Connection *    DbConn [inline]
 

Definition at line 59 of file cRelation.h.

bool Relation::DeleteCouple class Object   left,
class Object   right
[virtual]
 

Definition at line 81 of file cRelation.cpp.

References DeleteCouple().

bool Relation::DeleteCouple class RefBase   left,
class Object   right
[virtual]
 

Definition at line 75 of file cRelation.cpp.

References DeleteCouple().

bool Relation::DeleteCouple class Object   left,
class RefBase   right
[virtual]
 

Definition at line 69 of file cRelation.cpp.

References DeleteCouple().

virtual bool Relation::DeleteCouple RefBase   left,
RefBase   right
[pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

Referenced by DeleteCouple().

virtual bool Relation::DeleteLeft class Object   right [inline, virtual]
 

Definition at line 77 of file cRelation.h.

virtual bool Relation::DeleteLeft class RefBase   right [inline, virtual]
 

Definition at line 76 of file cRelation.h.

virtual bool Relation::DeleteRight class Object   left [inline, virtual]
 

Definition at line 84 of file cRelation.h.

virtual bool Relation::DeleteRight class RefBase   left [inline, virtual]
 

Definition at line 83 of file cRelation.h.

bool Relation::ExistsCouple const class Object   left,
const class Object   right
[virtual]
 

Definition at line 180 of file cRelation.cpp.

References ExistsCouple().

bool Relation::ExistsCouple const class RefBase   left,
const class Object   right
[virtual]
 

Definition at line 175 of file cRelation.cpp.

References ExistsCouple().

bool Relation::ExistsCouple const class Object   left,
const class RefBase   right
[virtual]
 

Definition at line 170 of file cRelation.cpp.

References ExistsCouple().

virtual bool Relation::ExistsCouple const class RefBase   left,
const class RefBase   right
[pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

Referenced by ExistsCouple().

bool Relation::InsertCouple class Object   left,
class Object   right
[virtual]
 

Definition at line 62 of file cRelation.cpp.

References InsertCouple().

bool Relation::InsertCouple class RefBase   left,
class Object   right
[virtual]
 

Definition at line 56 of file cRelation.cpp.

References InsertCouple().

bool Relation::InsertCouple class Object   left,
class RefBase   right
[virtual]
 

Definition at line 50 of file cRelation.cpp.

References InsertCouple().

virtual bool Relation::InsertCouple class RefBase   left,
class RefBase   right
[pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

Referenced by InsertCouple().

bool Relation::LDeleteAll class Object   right [virtual]
 

Definition at line 88 of file cRelation.cpp.

References LDeleteAll().

virtual bool Relation::LDeleteAll class RefBase   right [pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

Referenced by LDeleteAll(), and RDeleteAll().

bool Relation::LExists const class Object   right,
const class QueRefProto   query = EQUERY
[virtual]
 

Definition at line 126 of file cRelation.cpp.

bool Relation::LExists const class RefBase   right,
const class QueRefProto   query = EQUERY
[virtual]
 

Definition at line 100 of file cRelation.cpp.

References ResultBase::Close(), and ResultBase::First().

bool Relation::RDeleteAll class Object   left [virtual]
 

Definition at line 94 of file cRelation.cpp.

References LDeleteAll().

virtual bool Relation::RDeleteAll class RefBase   left [pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

bool Relation::RExists const class Object   left,
const class QueRefProto   query = EQUERY
[virtual]
 

Definition at line 161 of file cRelation.cpp.

bool Relation::RExists const class RefBase   left,
const class QueRefProto   query = EQUERY
[virtual]
 

Definition at line 135 of file cRelation.cpp.

References ResultBase::Close(), and ResultBase::First().

virtual bool Relation::WriteDDL ofstream &    S,
class Database   Db
[pure virtual]
 

Implemented in ChainedRelationBase, ManyToManyRelationBase, ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.


Member Data Documentation

class Connection* Relation::_databaseConnection [protected]
 

Definition at line 38 of file cRelation.h.

Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), OneToOneRelationBase::DeleteCouple(), OneToManyRelationBase::DeleteCouple(), ManyToOneRelationBase::DeleteCouple(), ManyToManyRelationBase::DeleteCouple(), ChainedRelationBase::ExistsCouple(), ChainedRelation< L, R >::operator-(), ManyToManyRelation< L, R >::operator-(), ManyToOneRelation< L, R >::operator-(), OneToManyRelation< L, R >::operator-(), OneToOneRelation< L, R >::operator-(), ChainedRelation< L, R >::operator=(), ManyToManyRelation< L, R >::operator=(), ManyToOneRelation< L, R >::operator=(), OneToManyRelation< L, R >::operator=(), OneToOneRelation< L, R >::operator=(), and Relation().

const char* Relation::_leftClassName [protected]
 

Definition at line 41 of file cRelation.h.

Referenced by ChainedRelationBase::_Init(), ManyToOneRelationBase::_TableName(), ChainedRelation< L, R >::ChainedRelation(), OneToOneRelationBase::DeleteCouple(), ManyToOneRelationBase::DeleteCouple(), ChainedRelationBase::ExistsCouple(), ManyToManyRelationBase::ManyToManyRelationBase(), ManyToOneRelationBase::ManyToOneRelationBase(), OneToManyRelationBase::OneToManyRelationBase(), ChainedRelation< L, R >::operator=(), ManyToManyRelation< L, R >::operator=(), ManyToOneRelation< L, R >::operator=(), OneToManyRelation< L, R >::operator=(), OneToOneRelation< L, R >::operator=(), and Relation().

char* Relation::_leftColumnName [protected]
 

Definition at line 42 of file cRelation.h.

Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), OneToOneRelationBase::DeleteCouple(), OneToManyRelationBase::DeleteCouple(), ManyToManyRelationBase::DeleteCouple(), ChainedRelationBase::ExistsCouple(), ManyToManyRelationBase::ManyToManyRelationBase(), ManyToOneRelationBase::ManyToOneRelationBase(), OneToManyRelationBase::OneToManyRelationBase(), OneToOneRelationBase::OneToOneRelationBase(), ChainedRelation< L, R >::operator-(), ManyToManyRelation< L, R >::operator-(), ManyToOneRelation< L, R >::operator-(), OneToManyRelation< L, R >::operator-(), OneToOneRelation< L, R >::operator-(), ChainedRelation< L, R >::operator=(), ManyToManyRelation< L, R >::operator=(), ManyToOneRelation< L, R >::operator=(), OneToManyRelation< L, R >::operator=(), OneToOneRelation< L, R >::operator=(), Relation(), and ~Relation().

const char* Relation::_rightClassName [protected]
 

Definition at line 43 of file cRelation.h.

Referenced by ChainedRelationBase::_Init(), OneToOneRelationBase::_TableName(), OneToManyRelationBase::_TableName(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), OneToOneRelationBase::DeleteCouple(), OneToManyRelationBase::DeleteCouple(), ChainedRelationBase::ExistsCouple(), ManyToManyRelationBase::ManyToManyRelationBase(), ManyToOneRelationBase::ManyToOneRelationBase(), OneToManyRelationBase::OneToManyRelationBase(), ChainedRelation< L, R >::operator=(), ManyToManyRelation< L, R >::operator=(), ManyToOneRelation< L, R >::operator=(), OneToManyRelation< L, R >::operator=(), OneToOneRelation< L, R >::operator=(), and Relation().

char* Relation::_rightColumnName [protected]
 

Definition at line 45 of file cRelation.h.

Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), OneToOneRelationBase::DeleteCouple(), ManyToOneRelationBase::DeleteCouple(), ManyToManyRelationBase::DeleteCouple(), ChainedRelationBase::ExistsCouple(), ManyToManyRelationBase::ManyToManyRelationBase(), ManyToOneRelationBase::ManyToOneRelationBase(), OneToManyRelationBase::OneToManyRelationBase(), OneToOneRelationBase::OneToOneRelationBase(), ChainedRelation< L, R >::operator-(), ManyToManyRelation< L, R >::operator-(), ManyToOneRelation< L, R >::operator-(), OneToManyRelation< L, R >::operator-(), OneToOneRelation< L, R >::operator-(), ChainedRelation< L, R >::operator=(), ManyToManyRelation< L, R >::operator=(), ManyToOneRelation< L, R >::operator=(), OneToManyRelation< L, R >::operator=(), OneToOneRelation< L, R >::operator=(), Relation(), and ~Relation().

char* Relation::_tableName [protected]
 

Definition at line 44 of file cRelation.h.

Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), ManyToManyRelationBase::DeleteCouple(), ChainedRelationBase::ExistsCouple(), ManyToManyRelationBase::ManyToManyRelationBase(), ManyToOneRelationBase::ManyToOneRelationBase(), OneToManyRelationBase::OneToManyRelationBase(), OneToOneRelationBase::OneToOneRelationBase(), ChainedRelation< L, R >::operator-(), ManyToManyRelation< L, R >::operator-(), ManyToOneRelation< L, R >::operator-(), OneToManyRelation< L, R >::operator-(), OneToOneRelation< L, R >::operator-(), ChainedRelation< L, R >::operator=(), ManyToManyRelation< L, R >::operator=(), ManyToOneRelation< L, R >::operator=(), OneToManyRelation< L, R >::operator=(), OneToOneRelation< L, R >::operator=(), Relation(), and ~Relation().

friend Relation::ChainedRelationBase [private]
 

Definition at line 34 of file cRelation.h.


The documentation for this class was generated from the following files:
Generated on Sun Jul 14 20:53:32 2002 for POLiTe by doxygen1.2.16