#include <tRelation.h>
Inheritance diagram for ChainedRelation< L, R >:
Public Methods | |
ChainedRelation (const char *a_table_name, class Connection *a_database_connection, const char *a_left_column_name=NULL, const char *a_right_column_name=NULL, const char *a_inner_columns=NULL, const int a_relnum=1, const int a_qnum=0, const class Query &a_left_query=EQUERY, const class Query &a_right_query=EQUERY) | |
ChainedRelation (const OneToOneRelation< L, R > &X) | |
ChainedRelation< L, R > & | operator= (const OneToOneRelation< L, R > &X) |
ChainedRelation (const OneToManyRelation< L, R > &X) | |
ChainedRelation< L, R > & | operator= (const OneToManyRelation< L, R > &X) |
ChainedRelation (const ManyToOneRelation< L, R > &X) | |
ChainedRelation< L, R > & | operator= (const ManyToOneRelation< L, R > &X) |
ChainedRelation (const ManyToManyRelation< L, R > &X) | |
ChainedRelation< L, R > & | operator= (const ManyToManyRelation< L, R > &X) |
ChainedRelation (const ChainedRelation< L, R > &X) | |
ChainedRelation (Proto< L > &X, Proto< R > &Y) | |
ChainedRelation (const ChainedRelationBase &X, const ChainedRelationBase &Y) | |
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) |
ChainedRelation< R, L > | operator- () const |
ChainedRelation< L, R > & | operator= (const ChainedRelation< 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) |
Relation & | Connection (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 | |
virtual class ResultBase * | _LGetAll (ResultBase *rb, const class RefBase &right, const class QueRefProto &query=ALL) |
virtual ResultBase * | _LGetAll (ResultBase *rb, const class QueRefProto &qL, const class QueRefProto &qR) |
virtual ResultBase * | _RGetAll (ResultBase *rb, const class RefBase &left, const class QueRefProto &query=ALL) |
virtual ResultBase * | _RGetAll (ResultBase *rb, const class QueRefProto &qL, const class QueRefProto &qR) |
void | _Init (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, const char *a_right_column_name, const char *a_inner_columns, const int a_relnum, const int a_qnum, const class Query &a_left_query, const class Query &a_right_query) |
virtual const char * | _TableName () const |
Protected Attributes | |
char * | _inner_columns |
int | _relnum |
int | _qnum |
Query | _left_query |
Query | _right_query |
Connection * | _databaseConnection |
const char * | _leftClassName |
char * | _leftColumnName |
const char * | _rightClassName |
char * | _tableName |
char * | _rightColumnName |
Friends | |
class | OneToOneRelation< L, R > |
class | OneToManyRelation< L, R > |
class | ManyToOneRelation< L, R > |
class | ManyToManyRelation< L, R > |
ChainedRelation< L, R > | operator * (const QueRefProto &Q, const OneToOneRelation< L, R > &X) |
ChainedRelation< L, R > | operator * (const OneToOneRelation< L, R > &X, const QueRefProto &Q) |
ChainedRelation< L, R > | operator * (const QueRefProto &Q, const OneToManyRelation< L, R > &X) |
ChainedRelation< L, R > | operator * (const OneToManyRelation< L, R > &X, const QueRefProto &Q) |
ChainedRelation< L, R > | operator * (const QueRefProto &Q, const ManyToOneRelation< L, R > &X) |
ChainedRelation< L, R > | operator * (const ManyToOneRelation< L, R > &X, const QueRefProto &Q) |
ChainedRelation< L, R > | operator * (const QueRefProto &Q, const ManyToManyRelation< L, R > &X) |
ChainedRelation< L, R > | operator * (const ManyToManyRelation< L, R > &X, const QueRefProto &Q) |
ChainedRelation< L, R > | operator * (const QueRefProto &Q, const ChainedRelation< L, R > &X) |
ChainedRelation< L, R > | operator * (const ChainedRelation< L, R > &X, const QueRefProto &Q) |
|
Definition at line 474 of file tRelation.h. |
|
Definition at line 500 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and Relation::_TableName(). |
|
Definition at line 505 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and Relation::_TableName(). |
|
Definition at line 510 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and Relation::_TableName(). |
|
Definition at line 515 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and Relation::_TableName(). |
|
|
Definition at line 526 of file tRelation.h. |
|
Definition at line 532 of file tRelation.h. |
|
Definition at line 416 of file cChainedRelationBase.cpp. References Relation::_databaseConnection, ChainedRelationBase::_inner_columns, Relation::_leftClassName, Relation::_leftColumnName, ChainedRelationBase::_qnum, ChainedRelationBase::_relnum, Relation::_rightClassName, Relation::_rightColumnName, Relation::_tableName, AliasR(), StrCat(), StrCpy(), StrFree(), StrPrefixCut(), and StrSplit(). Referenced by ChainedRelation< L, R >::ChainedRelation(), and ChainedRelation< L, R >::operator=(). |
|
Implements Relation. Definition at line 493 of file cChainedRelationBase.cpp. References Query::_order_by, ProtoBase::_RealiasT(), ProtoBase::_TranslateToSql(), Query::And(), ProtoBase::FullFrom(), ProtoBase::FullWhere(), ProtoBase::KeySelect(), StrAnd(), StrAndOnly(), StrCat(), StrCpy(), StrFree(), and StrMergeLists(). |
|
Implements Relation. Definition at line 282 of file cChainedRelationBase.cpp. References RefBase::_KeyValues(), Query::_order_by, ProtoBase::_RealiasT(), Query::And(), ObjRef::IsTransient(), ProtoBase::KeySelect(), StrAnd(), StrCat(), StrCpy(), StrFree(), and StrMergeLists(). Referenced by ChainedRelation< L, R >::LGetAll(). |
|
Implements Relation. Definition at line 572 of file cChainedRelationBase.cpp. References Query::_order_by, ProtoBase::_RealiasT(), ProtoBase::_TranslateToSql(), Query::And(), ProtoBase::FullFrom(), ProtoBase::FullWhere(), ProtoBase::KeySelect(), StrAnd(), StrAndOnly(), StrCat(), StrCpy(), StrFree(), and StrMergeLists(). |
|
Implements Relation. Definition at line 220 of file cChainedRelationBase.cpp. References RefBase::_KeyValues(), Query::_order_by, ProtoBase::_RealiasT(), Query::And(), ObjRef::IsTransient(), ProtoBase::KeySelect(), StrAnd(), StrCat(), StrCpy(), StrFree(), and StrMergeLists(). Referenced by ChainedRelation< L, R >::RGetAll(). |
|
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=(). |
|
Definition at line 59 of file cRelation.h. |
|
Definition at line 81 of file cRelation.cpp. References Relation::DeleteCouple(). |
|
Definition at line 75 of file cRelation.cpp. References Relation::DeleteCouple(). |
|
Definition at line 69 of file cRelation.cpp. References Relation::DeleteCouple(). |
|
Implements Relation. Definition at line 77 of file cChainedRelationBase.h. |
|
Definition at line 77 of file cRelation.h. |
|
Definition at line 76 of file cRelation.h. |
|
Definition at line 84 of file cRelation.h. |
|
Definition at line 83 of file cRelation.h. |
|
Definition at line 180 of file cRelation.cpp. References Relation::ExistsCouple(). |
|
Definition at line 175 of file cRelation.cpp. References Relation::ExistsCouple(). |
|
Definition at line 170 of file cRelation.cpp. References Relation::ExistsCouple(). |
|
Implements Relation. Definition at line 345 of file cChainedRelationBase.cpp. References Relation::_databaseConnection, Connection::_Execute(), Connection::_FetchNext(), ChainedRelationBase::_inner_columns, RefBase::_KeyValues(), Relation::_leftClassName, Relation::_leftColumnName, Connection::_Open(), Connection::_PreFetchBind(), Connection::_Prepare(), ProtoBase::_RealiasT(), Relation::_rightClassName, Relation::_rightColumnName, Relation::_tableName, ObjRef::IsTransient(), StrAndOnly(), StrCat(), StrClause(), StrCpy(), StrFree(), and StrMergeLists(). |
|
Definition at line 62 of file cRelation.cpp. References Relation::InsertCouple(). |
|
Definition at line 56 of file cRelation.cpp. References Relation::InsertCouple(). |
|
Definition at line 50 of file cRelation.cpp. References Relation::InsertCouple(). |
|
Implements Relation. Definition at line 74 of file cChainedRelationBase.h. |
|
Definition at line 88 of file cRelation.cpp. References Relation::LDeleteAll(). |
|
Implements Relation. Definition at line 80 of file cChainedRelationBase.h. |
|
Definition at line 126 of file cRelation.cpp. |
|
Definition at line 100 of file cRelation.cpp. References ResultBase::Close(), and ResultBase::First(). |
|
Definition at line 555 of file tRelation.h. References ChainedRelationBase::_LGetAll(). |
|
Definition at line 539 of file tRelation.h. References ChainedRelationBase::_LGetAll(). Referenced by Left(). |
|
Definition at line 571 of file tRelation.h. References Relation::_databaseConnection, Relation::_leftColumnName, Relation::_rightColumnName, and Relation::_tableName. |
|
|
Definition at line 517 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and Relation::_TableName(). |
|
Definition at line 512 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and ManyToOneRelationBase::_TableName(). |
|
Definition at line 507 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and OneToManyRelationBase::_TableName(). |
|
Definition at line 502 of file tRelation.h. References Relation::_databaseConnection, ChainedRelationBase::_Init(), Relation::_leftClassName, Relation::_leftColumnName, Relation::_rightClassName, Relation::_rightColumnName, and OneToOneRelationBase::_TableName(). |
|
Definition at line 94 of file cRelation.cpp. References Relation::LDeleteAll(). |
|
Implements Relation. Definition at line 83 of file cChainedRelationBase.h. |
|
Definition at line 161 of file cRelation.cpp. |
|
Definition at line 135 of file cRelation.cpp. References ResultBase::Close(), and ResultBase::First(). |
|
Definition at line 563 of file tRelation.h. References ChainedRelationBase::_RGetAll(). |
|
Definition at line 547 of file tRelation.h. References ChainedRelationBase::_RGetAll(). Referenced by Right(). |
|
Implements Relation. Definition at line 649 of file cChainedRelationBase.cpp. |
|
Definition at line 470 of file tRelation.h. |
|
Definition at line 469 of file tRelation.h. |
|
Definition at line 468 of file tRelation.h. |
|
Definition at line 467 of file tRelation.h. |
|
Definition at line 624 of file tRelation.h. |
|
Definition at line 623 of file tRelation.h. |
|
Definition at line 622 of file tRelation.h. |
|
Definition at line 621 of file tRelation.h. |
|
Definition at line 620 of file tRelation.h. |
|
Definition at line 619 of file tRelation.h. |
|
Definition at line 618 of file tRelation.h. |
|
Definition at line 617 of file tRelation.h. |
|
Definition at line 616 of file tRelation.h. |
|
Definition at line 615 of file tRelation.h. |
|
|
Definition at line 35 of file cChainedRelationBase.h. Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), ChainedRelationBase::ExistsCouple(), and ChainedRelation< L, R >::operator=(). |
|
Definition at line 41 of file cChainedRelationBase.h. Referenced by ChainedRelation< L, R >::ChainedRelation(), operator *(), and ChainedRelation< L, R >::operator=(). |
|
|
|
Definition at line 39 of file cChainedRelationBase.h. Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), and ChainedRelation< L, R >::operator=(). |
|
Definition at line 37 of file cChainedRelationBase.h. Referenced by ChainedRelationBase::_Init(), ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), and ChainedRelation< L, R >::operator=(). |
|
Definition at line 42 of file cChainedRelationBase.h. Referenced by ChainedRelation< L, R >::ChainedRelation(), ChainedRelationBase::ChainedRelationBase(), operator *(), and ChainedRelation< L, R >::operator=(). |
|
|
|