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

ManyToOneRelation< L, R > Class Template Reference

#include <tRelation.h>

Inheritance diagram for ManyToOneRelation< L, R >:

Inheritance graph
[legend]
Collaboration diagram for ManyToOneRelation< L, R >:

Collaboration graph
[legend]
List of all members.

Public Methods

 ManyToOneRelation (const char *a_table_name, class Connection *a_database_connection, const char *a_left_column_name=NULL, const char *a_right_column_name=NULL)
Result< L > * LGetAll (const class RefBase &right, const class QueRefProto &query=EQUERY)
Result< R > * RGetAll (const class RefBase &left, const class QueRefProto &query=EQUERY)
Result< L > * LGetAll (const class QueRefProto &qL, const class QueRefProto &qR)
Result< R > * RGetAll (const class QueRefProto &qL, const class QueRefProto &qR)
OneToManyRelation< R, L > operator- () const
ManyToOneRelation< L, R > & operator= (const ManyToOneRelation< L, R > &X)
virtual bool InsertCouple (RefBase &left, RefBase &right)
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)
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)
virtual bool LDeleteAll (class Object &right)
virtual bool RDeleteAll (class RefBase &left)
virtual bool RDeleteAll (class Object &left)
virtual bool WriteDDL (ofstream &S, class Database &Db)
virtual bool ExistsCouple (const class RefBase &left, const class RefBase &right)
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)
RelationConnection (class Connection *DbConn)
virtual bool DeleteLeft (class RefBase &right)
virtual bool DeleteLeft (class Object &right)
virtual bool DeleteRight (class RefBase &left)
virtual bool DeleteRight (class Object &left)
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)

Protected Methods

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

Protected Attributes

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

Friends

class ChainedRelation< L, R >

template<class L, class R>
class ManyToOneRelation< L, R >


Constructor & Destructor Documentation

template<class L, class R>
ManyToOneRelation< L, R >::ManyToOneRelation const char *    a_table_name,
class Connection   a_database_connection,
const char *    a_left_column_name = NULL,
const char *    a_right_column_name = NULL
[inline]
 

Definition at line 249 of file tRelation.h.


Member Function Documentation

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

Implements Relation.

Definition at line 362 of file cManyToOneRelationBase.cpp.

References RefBase::_KeyValues(), Query::_order_by, Query::And(), ProtoBase::ExecuteQuery(), StrCat(), StrCpy(), StrFree(), and StrSplit().

template<class L, class R>
ResultBase* ManyToOneRelation< L, R >::_LGetAll ResultBase   rb,
const class QueRefProto   qL,
const class QueRefProto   qR
[inline, protected, virtual]
 

Implements Relation.

Definition at line 322 of file tRelation.h.

Referenced by ManyToOneRelation< L, R >::LGetAll().

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

Implements Relation.

Definition at line 278 of file cManyToOneRelationBase.cpp.

References RefBase::_KeyValues(), Query::_order_by, Query::And(), ProtoBase::ExecuteQuery(), ProtoBase::From(), ProtoBase::KeySelect(), StrAnd(), StrCat(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().

template<class L, class R>
ResultBase* ManyToOneRelation< L, R >::_RGetAll ResultBase   rb,
const class QueRefProto   qL,
const class QueRefProto   qR
[inline, protected, virtual]
 

Implements Relation.

Definition at line 333 of file tRelation.h.

Referenced by ManyToOneRelation< L, R >::RGetAll().

const char * ManyToOneRelationBase::_TableName   const [protected, virtual, inherited]
 

Reimplemented from Relation.

Definition at line 495 of file cManyToOneRelationBase.cpp.

References Relation::_leftClassName.

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

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

Definition at line 59 of file cRelation.h.

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

Definition at line 81 of file cRelation.cpp.

References Relation::DeleteCouple().

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

Definition at line 75 of file cRelation.cpp.

References Relation::DeleteCouple().

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

Definition at line 69 of file cRelation.cpp.

References Relation::DeleteCouple().

bool ManyToOneRelationBase::DeleteCouple RefBase   left,
RefBase   right
[virtual, inherited]
 

Implements Relation.

Definition at line 123 of file cManyToOneRelationBase.cpp.

References Relation::_databaseConnection, RefBase::_KeyValues(), Relation::_leftClassName, Relation::_rightColumnName, Connection::_Sql(), ProtoBase::From(), ObjRef::IsTransient(), ProtoBase::KeySelect(), StrCat(), StrClause(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().

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

Definition at line 77 of file cRelation.h.

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

Definition at line 76 of file cRelation.h.

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

Definition at line 84 of file cRelation.h.

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

Definition at line 83 of file cRelation.h.

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

Definition at line 180 of file cRelation.cpp.

References Relation::ExistsCouple().

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

Definition at line 175 of file cRelation.cpp.

References Relation::ExistsCouple().

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

Definition at line 170 of file cRelation.cpp.

References Relation::ExistsCouple().

bool ManyToOneRelationBase::ExistsCouple const class RefBase   left,
const class RefBase   right
[virtual, inherited]
 

Implements Relation.

Definition at line 421 of file cManyToOneRelationBase.cpp.

References RefBase::_KeyValues(), ProtoBase::From(), ObjRef::IsTransient(), ProtoBase::KeySelect(), StrCat(), StrClause(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().

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

Definition at line 62 of file cRelation.cpp.

References Relation::InsertCouple().

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

Definition at line 56 of file cRelation.cpp.

References Relation::InsertCouple().

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

Definition at line 50 of file cRelation.cpp.

References Relation::InsertCouple().

bool ManyToOneRelationBase::InsertCouple RefBase   left,
RefBase   right
[virtual, inherited]
 

Implements Relation.

Definition at line 72 of file cManyToOneRelationBase.cpp.

References ProtoBase::From(), ProtoBase::KeySelect(), StrCat(), StrClause(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().

bool Relation::LDeleteAll class Object   right [virtual, inherited]
 

Definition at line 88 of file cRelation.cpp.

References Relation::LDeleteAll().

bool ManyToOneRelationBase::LDeleteAll class RefBase   right [virtual, inherited]
 

Implements Relation.

Definition at line 227 of file cManyToOneRelationBase.cpp.

References ProtoBase::From(), StrCat(), StrClause(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().

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

Definition at line 126 of file cRelation.cpp.

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

Definition at line 100 of file cRelation.cpp.

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

template<class L, class R>
Result<L>* ManyToOneRelation< L, R >::LGetAll const class QueRefProto   qL,
const class QueRefProto   qR
[inline]
 

Definition at line 281 of file tRelation.h.

References ManyToOneRelation< L, R >::_LGetAll().

template<class L, class R>
Result<L>* ManyToOneRelation< L, R >::LGetAll const class RefBase   right,
const class QueRefProto   query = EQUERY
[inline]
 

Definition at line 265 of file tRelation.h.

References ManyToOneRelation< L, R >::_LGetAll().

Referenced by Left().

template<class L, class R>
OneToManyRelation<R,L> ManyToOneRelation< L, R >::operator-   const [inline]
 

Definition at line 297 of file tRelation.h.

References Relation::_databaseConnection, Relation::_leftColumnName, Relation::_rightColumnName, and Relation::_tableName.

template<class L, class R>
ManyToOneRelation<L,R>& ManyToOneRelation< L, R >::operator= const ManyToOneRelation< L, R > &    X [inline]
 

Definition at line 307 of file tRelation.h.

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

bool Relation::RDeleteAll class Object   left [virtual, inherited]
 

Definition at line 94 of file cRelation.cpp.

References Relation::LDeleteAll().

bool ManyToOneRelationBase::RDeleteAll class RefBase   left [virtual, inherited]
 

Implements Relation.

Definition at line 176 of file cManyToOneRelationBase.cpp.

References ProtoBase::From(), ProtoBase::KeySelect(), StrCat(), StrClause(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().

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

Definition at line 161 of file cRelation.cpp.

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

Definition at line 135 of file cRelation.cpp.

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

template<class L, class R>
Result<R>* ManyToOneRelation< L, R >::RGetAll const class QueRefProto   qL,
const class QueRefProto   qR
[inline]
 

Definition at line 289 of file tRelation.h.

References ManyToOneRelation< L, R >::_RGetAll().

template<class L, class R>
Result<R>* ManyToOneRelation< L, R >::RGetAll const class RefBase   left,
const class QueRefProto   query = EQUERY
[inline]
 

Definition at line 273 of file tRelation.h.

References ManyToOneRelation< L, R >::_RGetAll().

Referenced by Right().

bool ManyToOneRelationBase::WriteDDL ofstream &    S,
class Database   Db
[virtual, inherited]
 

Implements Relation.

Definition at line 502 of file cManyToOneRelationBase.cpp.

References ProtoBase::From(), ProtoBase::KeySelect(), StrCat(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit().


Friends And Related Function Documentation

template<class L, class R>
friend class ChainedRelation< L, R > [friend]
 

Definition at line 246 of file tRelation.h.


Member Data Documentation

class Connection* Relation::_databaseConnection [protected, inherited]
 

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::Relation().

const char* Relation::_leftClassName [protected, inherited]
 

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::Relation().

char* Relation::_leftColumnName [protected, inherited]
 

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::Relation(), and Relation::~Relation().

const char* Relation::_rightClassName [protected, inherited]
 

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::Relation().

char* Relation::_rightColumnName [protected, inherited]
 

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::Relation(), and Relation::~Relation().

char* Relation::_tableName [protected, inherited]
 

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::Relation(), and Relation::~Relation().


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