Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

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 Member Functions

 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 ()
RelationConnection (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 (std::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 Member Functions

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

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
 

Relation::~Relation  )  [virtual]
 


Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

bool Relation::LDeleteAll class Object right  )  [virtual]
 

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

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

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

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

bool Relation::RDeleteAll class Object left  )  [virtual]
 

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

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

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 RefBase left,
const class QueRefProto query = EQUERY
[protected, pure virtual]
 

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

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

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

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

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

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

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

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

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

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

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

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

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

Reimplemented in ManyToOneRelationBase, OneToManyRelationBase, and OneToOneRelationBase.

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 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 >.


Member Data Documentation

class Connection* Relation::_databaseConnection [protected]
 

const char* Relation::_leftClassName [protected]
 

char* Relation::_leftColumnName [protected]
 

const char* Relation::_rightClassName [protected]
 

char* Relation::_tableName [protected]
 

char* Relation::_rightColumnName [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 11 22:36:40 2004 for IOPC by Doxygen 1.3.6