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

ProtoBase Class Reference

#include <cProtoBase.h>

Inheritance diagram for ProtoBase:

Inheritance graph
[legend]
Collaboration diagram for ProtoBase:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual char * _Where () const
virtual char * _OrderBy () const
virtual class ResultBaseExecuteQuery (const QueRefProto &Q, class Connection *DbCon, const int i, class ResultBase *QR)
bool operator== (class ProtoBase &_p)
bool operator!= (class ProtoBase &_p)
bool operator< (class ProtoBase &_p)
bool operator> (class ProtoBase &_p)
bool operator<= (class ProtoBase &_p)
bool operator>= (class ProtoBase &_p)
 ProtoBase ()
 ~ProtoBase ()
virtual bool IsObject ()
virtual bool IsImmutableObject ()
virtual bool IsDatabaseObject ()
virtual bool IsPersistentObject ()
virtual const char * ClassName ()=0
virtual const char * BaseClassName ()
virtual const char * RootClassName ()=0
virtual const char * ParentClassNames ()=0
virtual const char * Select ()
virtual const char * Into ()
virtual const char * From ()=0
virtual const char * Where ()
virtual const char * GroupBy ()
virtual const char * Having ()
virtual const char * OrderBy () const=0
virtual const char * FullSelect ()
virtual const char * FullFrom ()
virtual char * FullFrom (int k)
virtual const char * FullWhere ()
virtual char * FullWhere (int k)
virtual const char * KeySelect ()
virtual const char * KeyWhere ()
virtual const char * KeyFrom ()
virtual class ProtoBase * RootPrototype () const
virtual int ParentPrototypeCount ()
virtual class ProtoBase * ParentPrototype (const int i)
virtual int FullParentPrototypeCount ()
virtual class ProtoBase * FullParentPrototype (const int i)
virtual class ObjectNew () const=0
virtual class RefBaseNewRef ()=0
const char * ColumnTable (const char *const col)
bool ProtoBase::LockTable (class Connection *aDbCon, enum LockingStrategy aLockingStrategy=LS_Default, enum WaitingStrategy aWaitingStrategy=WS_Default)
bool WriteDDL (ofstream &S, class Database &Db)
char * ProtoBase::ColumnTypeDDL (int i, class Database &Db)
Query operator () const
Query operator (const QueRefProto &Q) const

Static Public Methods

void Register (class ProtoBase *_p, const char *const _n)
ProtoBase * Find (const char *const _n)

Public Attributes

Query operator &&const QueRefProto
&Q 
const

Protected Methods

virtual bool _KeyValues (char *&s)
virtual char * _KeyValues (const class Object &o)
virtual bool _ExportAttributes (const class Object &o)
virtual bool _ExportKeyAttributes (const class Object &o)
virtual bool _ExportKeyAttributes (const class RefBase &x)
virtual bool _ImportAttributes (class Object &o)
virtual bool _ImportKeyAttributes (class RefBase &x)
void _Initialise ()
void _InitialiseParentPrototype ()
void _InitialiseFullParentPrototype (class ProtoBase *_p)
void _InitialiseSqlVar ()
void _InitialiseSelect ()
void _InitialiseFullSelect ()
void _InitialiseKeySelect ()
void _InitialisePtrSelect ()
void _InitialiseInto ()
void _InitialiseFullFrom ()
void _InitialiseWhere ()
void _InitialiseFullWhere ()
void _InitialiseKeyWhere ()
void _InitialiseGroupBy ()
void _InitialiseHaving ()
void _InitialiseStmtSelect ()
void _InitialiseStmtInsert ()
void _InitialiseStmtDelete ()
void _InitialiseStmtUpdate ()
char * _StmtSelectPtr (const QueRefProto &Q, const int i)
char * _StmtSelectPtr (const char *const _where_clause, const char *const _order_by_clause, const char *const _select_clause, const char *const _from_clause, const int i)
bool _BindPtr (class Cursor *C)
ProtoBase * _PtrPrototype ()
virtual char * _RealiasT (char *&fragment, const char *table, const int i, const int j)
virtual char * _RealiasT (char *&fragment, const int i)
virtual void _MapKey (int i, const char *&attr, unsigned char Object::*&mem, const char *&col, char &type, unsigned int &len, bool &rw)=0
virtual void _Map (int i, const char *&attr, unsigned char Object::*&mem, const char *&col, char &type, unsigned int &len, bool &rw)=0
virtual const char * _ProtoTWhere ()=0
virtual const char * _ProtoTGroupBy ()=0
virtual const char * _ProtoTHaving ()=0
bool _InsertAll (class Object *target)
bool _Insert (class Connection *aDbConn)
bool _UpdateAll (class Object *target)
bool _Update (class Connection *aDbConn)
bool _DeleteAll (class RefBase *target)
bool _DeleteAll (class Object *target)
bool _Delete (class Connection *aDbConn)
bool ProtoBase::_Load (class Object &o)
char * _TranslateToSql (char *(&dst), const char *const src)
char * _TranslateToSql (char *(&src))
Query_TranslateToSql (class Query &Q)
ProtoBase * _gcs (ProtoBase &X)
virtual char * _Select () const
virtual char * _From () const

Static Protected Methods

void _ResetProcessed (ProtoBase *const _p)

Protected Attributes

ProtoBase * _left
ProtoBase * _right
ProtoBase * _next
bool _initialised
bool _processed
bool _isObject
bool _isImmutableObject
bool _isDatabaseObject
bool _isPersistentObject
bool _isRootClass
char * _condition
struct {
   int   KeyCount
   int   Count
   int   SpecCount
   void *   Arr
_sqlVars
ProtoBase * _rootPrototype
int _parentPrototypeCount
ProtoBase ** _parentPrototype
int _fullParentPrototypeCount
ProtoBase ** _fullParentPrototype
char * _select
char * _fullSelect
char * _keySelect
char * _ptrSelect
char * _into
char * _fullFrom
char * _where
char * _fullWhere
char * _keyWhere
char * _groupBy
char * _having
char * _stmtSelect
char * _stmtInsert
char * _stmtDelete
char * _stmtUpdate

Static Protected Attributes

ProtoBase * _root = NULL
ProtoBase * _first = NULL

Friends

class RefBase
class ClassRegister
class Object
class DatabaseObject
class ObjectBuffer
class ResultBase
class ChainedRelationBase

Constructor & Destructor Documentation

ProtoBase::ProtoBase   [inline]
 

Definition at line 187 of file cProtoBase.h.

References KeyCount.

ProtoBase::~ProtoBase  
 

Definition at line 1238 of file cProtoBase.cpp.

References _condition, _fullFrom, _fullParentPrototype, _fullSelect, _fullWhere, _into, _keySelect, _keyWhere, _parentPrototype, _ptrSelect, _select, _sqlVars, _stmtDelete, _stmtInsert, _stmtSelect, _stmtUpdate, _where, and StrFree().


Member Function Documentation

bool ProtoBase::_BindPtr class Cursor   C [protected]
 

Definition at line 1164 of file cProtoBase.cpp.

References _rootPrototype, _sqlVars, sqlVar::bufaddr, sqlVar::buflen, and sqlVar::buftype.

Referenced by ResultBase::Open().

bool ProtoBase::_Delete class Connection   aDbConn [protected]
 

Definition at line 1488 of file cProtoBase.cpp.

References _rootPrototype, _sqlVars, _stmtDelete, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, and sqlVar::varname.

Referenced by _DeleteAll().

bool ProtoBase::_DeleteAll class Object   target [protected]
 

Definition at line 1465 of file cProtoBase.cpp.

References _Delete(), _fullParentPrototype, _fullParentPrototypeCount, and _Initialise().

bool ProtoBase::_DeleteAll class RefBase   target [protected]
 

Definition at line 1442 of file cProtoBase.cpp.

References _Delete(), _fullParentPrototype, _fullParentPrototypeCount, and _Initialise().

Referenced by RefBase::Delete(), and Object::Delete().

bool ProtoBase::_ExportAttributes const class Object   o [protected, virtual]
 

Definition at line 75 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _Initialise(), _sqlVars, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, ClassName(), sqlVar::indic, sqlVar::member, StrExp(), TYPE_CHAR, TYPE_FLOAT, TYPE_INT, TYPE_PTR, TYPE_STRING, and TYPE_UNSIGNED.

bool ProtoBase::_ExportKeyAttributes const class RefBase   x [protected, virtual]
 

Definition at line 214 of file cProtoBase.cpp.

References _Initialise(), _rootPrototype, _sqlVars, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::indic, StrCpy(), StrDecode(), StrExp(), StrFree(), StrSplit(), TYPE_CHAR, TYPE_FLOAT, TYPE_INT, TYPE_STRING, and TYPE_UNSIGNED.

bool ProtoBase::_ExportKeyAttributes const class Object   o [protected, virtual]
 

Definition at line 157 of file cProtoBase.cpp.

References _Initialise(), _rootPrototype, _sqlVars, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::indic, sqlVar::member, StrExp(), TYPE_CHAR, TYPE_FLOAT, TYPE_INT, TYPE_STRING, and TYPE_UNSIGNED.

Referenced by _KeyValues(), Object::_Refresh(), Object::Delete(), and Object::Refresh().

virtual char* QueRefProto::_From   const [inline, protected, virtual, inherited]
 

Reimplemented in ComplexQuery.

Definition at line 51 of file cQueRefProto.h.

Referenced by _StmtSelectPtr().

ProtoBase * ProtoBase::_gcs ProtoBase &    X [protected]
 

Definition at line 74 of file cClassRegister.cpp.

References _first, and _next.

bool ProtoBase::_ImportAttributes class Object   o [protected, virtual]
 

Definition at line 269 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _Initialise(), _sqlVars, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::indic, sqlVar::member, StrCpy(), TYPE_CHAR, TYPE_FLOAT, TYPE_INT, TYPE_PTR, TYPE_STRING, and TYPE_UNSIGNED.

Referenced by ResultBase::Next().

bool ProtoBase::_ImportKeyAttributes class RefBase   x [protected, virtual]
 

Definition at line 393 of file cProtoBase.cpp.

References _Initialise(), and _KeyValues().

Referenced by ResultBase::Next().

void ProtoBase::_Initialise   [protected]
 

Definition at line 445 of file cProtoBase.cpp.

References _initialised, _InitialiseFullFrom(), _InitialiseFullParentPrototype(), _InitialiseFullSelect(), _InitialiseFullWhere(), _InitialiseGroupBy(), _InitialiseHaving(), _InitialiseInto(), _InitialiseKeySelect(), _InitialiseKeyWhere(), _InitialiseParentPrototype(), _InitialiseSelect(), _InitialiseSqlVar(), _InitialiseStmtDelete(), _InitialiseStmtInsert(), _InitialiseStmtSelect(), _InitialiseStmtUpdate(), _InitialiseWhere(), _isDatabaseObject, _isImmutableObject, _isObject, _isPersistentObject, _isRootClass, _parentPrototype, _parentPrototypeCount, _ResetProcessed(), _root, BaseClassName(), ClassName(), and StrCmp().

Referenced by _DeleteAll(), _ExportAttributes(), _ExportKeyAttributes(), _ImportAttributes(), _ImportKeyAttributes(), ClassRegister::_Initialise(), _RealiasT(), _StmtSelectPtr(), FullFrom(), FullParentPrototype(), FullWhere(), operator<(), and ParentPrototype().

void ProtoBase::_InitialiseFullFrom   [protected]
 

Definition at line 773 of file cProtoBase.cpp.

References _fullFrom, _fullParentPrototype, _fullParentPrototypeCount, From(), StrCat(), StrCpy(), and StrFree().

Referenced by _Initialise().

void ProtoBase::_InitialiseFullParentPrototype class ProtoBase *    _p [protected]
 

Definition at line 518 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _processed, Find(), ParentClassNames(), StrCpy(), StrFree(), and StrSplit().

Referenced by _Initialise().

void ProtoBase::_InitialiseFullSelect   [protected]
 

Definition at line 696 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _fullSelect, and StrCat().

Referenced by _Initialise().

void ProtoBase::_InitialiseFullWhere   [protected]
 

Definition at line 798 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _fullWhere, _sqlVars, sqlVar::colname, StrCat(), and StrCmp().

Referenced by _Initialise().

void ProtoBase::_InitialiseGroupBy   [protected]
 

Definition at line 840 of file cProtoBase.cpp.

References _groupBy, _isDatabaseObject, _isPersistentObject, _ProtoTGroupBy(), From(), StrCat(), StrCpy(), StrFree(), StrReplaceAll(), and THIS_TABLE.

Referenced by _Initialise().

void ProtoBase::_InitialiseHaving   [protected]
 

Definition at line 854 of file cProtoBase.cpp.

References _having, _isDatabaseObject, _isPersistentObject, _ProtoTHaving(), From(), StrCat(), StrCpy(), StrFree(), StrReplaceAll(), and THIS_TABLE.

Referenced by _Initialise().

void ProtoBase::_InitialiseInto   [protected]
 

Definition at line 735 of file cProtoBase.cpp.

References _into, _sqlVars, and StrCat().

Referenced by _Initialise().

void ProtoBase::_InitialiseKeySelect   [protected]
 

Definition at line 709 of file cProtoBase.cpp.

References _keySelect, _rootPrototype, _sqlVars, and StrCat().

Referenced by _Initialise().

void ProtoBase::_InitialiseKeyWhere   [protected]
 

Definition at line 825 of file cProtoBase.cpp.

References _keyWhere, _sqlVars, StrCat(), and sqlVar::varname.

Referenced by _Initialise().

void ProtoBase::_InitialiseParentPrototype   [protected]
 

Definition at line 500 of file cProtoBase.cpp.

References _parentPrototype, _parentPrototypeCount, Find(), ParentClassNames(), StrCpy(), StrFree(), and StrSplit().

Referenced by _Initialise().

void ProtoBase::_InitialisePtrSelect   [protected]
 

Definition at line 719 of file cProtoBase.cpp.

References _keySelect, _rootPrototype, _sqlVars, and StrCat().

void ProtoBase::_InitialiseSelect   [protected]
 

Definition at line 685 of file cProtoBase.cpp.

References _select, _sqlVars, and StrCat().

Referenced by _Initialise().

void ProtoBase::_InitialiseSqlVar   [protected]
 

Definition at line 543 of file cProtoBase.cpp.

References _isPersistentObject, _isRootClass, _Map(), _MapKey(), _sqlVars, sqlVar::atrname, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::colname, From(), sqlVar::indic, sqlVar::key, MAX_CLASS_NAME_LEN, sqlVar::member, MemberPtr, sqlVar::rw, StrCat(), StrCpy(), StrFree(), StrPrefixCut(), StrReplaceAll(), THIS_TABLE, TYPE_CHAR, TYPE_FLOAT, TYPE_INT, TYPE_PTR, TYPE_STRING, TYPE_UNKNOWN, TYPE_UNSIGNED, and sqlVar::varname.

Referenced by _Initialise().

void ProtoBase::_InitialiseStmtDelete   [protected]
 

Definition at line 957 of file cProtoBase.cpp.

References _keyWhere, _stmtDelete, From(), and StrCat().

Referenced by _Initialise().

void ProtoBase::_InitialiseStmtInsert   [protected]
 

Definition at line 896 of file cProtoBase.cpp.

References _isImmutableObject, _isObject, _sqlVars, _stmtInsert, sqlVar::colname, From(), sqlVar::rw, StrCat(), StrCpy(), StrFree(), StrPrefixCut(), and sqlVar::varname.

Referenced by _Initialise().

void ProtoBase::_InitialiseStmtSelect   [protected]
 

Definition at line 868 of file cProtoBase.cpp.

References _fullFrom, _fullSelect, _fullWhere, _groupBy, _having, _keyWhere, _rootPrototype, _stmtSelect, StrAnd(), StrCat(), StrClause(), StrCpy(), and StrFree().

Referenced by _Initialise().

void ProtoBase::_InitialiseStmtUpdate   [protected]
 

Definition at line 929 of file cProtoBase.cpp.

References _isImmutableObject, _isObject, _keyWhere, _sqlVars, _stmtUpdate, _where, sqlVar::colname, From(), sqlVar::rw, StrAnd(), StrCat(), StrClause(), StrCpy(), StrFree(), and sqlVar::varname.

Referenced by _Initialise().

void ProtoBase::_InitialiseWhere   [protected]
 

Definition at line 784 of file cProtoBase.cpp.

References _ProtoTWhere(), _where, From(), StrCat(), StrCpy(), StrFree(), StrReplaceAll(), and THIS_TABLE.

Referenced by _Initialise().

bool ProtoBase::_Insert class Connection   aDbConn [protected]
 

Definition at line 1317 of file cProtoBase.cpp.

References sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::indic, sqlVar::rw, and sqlVar::varname.

bool ProtoBase::_InsertAll class Object   target [protected]
 

Definition at line 1296 of file cProtoBase.cpp.

Referenced by DatabaseObject::BePersistent().

char * ProtoBase::_KeyValues const class Object   o [protected, virtual]
 

Definition at line 385 of file cProtoBase.cpp.

References _ExportKeyAttributes(), and _KeyValues().

bool ProtoBase::_KeyValues char *&    s [protected, virtual]
 

Definition at line 328 of file cProtoBase.cpp.

References sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, FloatToStr(), LongToStr(), StrCat(), StrCpy(), StrEncode(), StrFree(), TYPE_CHAR, TYPE_FLOAT, TYPE_INT, TYPE_STRING, TYPE_UNSIGNED, and ULongToStr().

Referenced by _ImportKeyAttributes(), _KeyValues(), and Object::_KeyValues().

virtual void ProtoBase::_Map int    i,
const char *&    attr,
unsigned char Object::*&    mem,
const char *&    col,
char &    type,
unsigned int &    len,
bool &    rw
[protected, pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseSqlVar().

virtual void ProtoBase::_MapKey int    i,
const char *&    attr,
unsigned char Object::*&    mem,
const char *&    col,
char &    type,
unsigned int &    len,
bool &    rw
[protected, pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseSqlVar().

virtual char* ProtoBase::_OrderBy   const [inline, virtual]
 

Implements QueRefProto.

Definition at line 171 of file cProtoBase.h.

References StrCpy().

virtual const char* ProtoBase::_ProtoTGroupBy   [protected, pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseGroupBy().

virtual const char* ProtoBase::_ProtoTHaving   [protected, pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseHaving().

virtual const char* ProtoBase::_ProtoTWhere   [protected, pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseWhere().

ProtoBase * ProtoBase::_PtrPrototype   [protected]
 

Definition at line 1201 of file cProtoBase.cpp.

Referenced by ResultBase::Next().

char * ProtoBase::_RealiasT char *&    fragment,
const int    i
[protected, virtual]
 

Definition at line 1656 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _Initialise(), _RealiasT(), and From().

char * ProtoBase::_RealiasT char *&    fragment,
const char *    table,
const int    i,
const int    j
[protected, virtual]
 

Definition at line 1638 of file cProtoBase.cpp.

References _Initialise(), AliasT(), StrCat(), StrCpy(), StrFree(), and StrReplaceAll().

Referenced by ChainedRelationBase::_LGetAll(), _RealiasT(), ChainedRelationBase::_RGetAll(), _StmtSelectPtr(), ChainedRelationBase::ChainedRelationBase(), and ChainedRelationBase::ExistsCouple().

void ProtoBase::_ResetProcessed ProtoBase *const    _p [static, protected]
 

Definition at line 399 of file cProtoBase.cpp.

References _left, _processed, and _right.

Referenced by _Initialise(), and ClassRegister::WriteDDL().

virtual char* QueRefProto::_Select   const [inline, protected, virtual, inherited]
 

Reimplemented in ComplexQuery.

Definition at line 49 of file cQueRefProto.h.

Referenced by _StmtSelectPtr().

char * ProtoBase::_StmtSelectPtr const char *const    _where_clause,
const char *const    _order_by_clause,
const char *const    _select_clause,
const char *const    _from_clause,
const int    i
[protected]
 

Definition at line 1003 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _groupBy, _having, _Initialise(), _RealiasT(), _rootPrototype, _sqlVars, _where, AliasT(), sqlVar::colname, From(), StrCat(), StrClause(), StrCpy(), StrFree(), and StrPrefixCut().

char * ProtoBase::_StmtSelectPtr const QueRefProto   Q,
const int    i
[protected]
 

Definition at line 965 of file cProtoBase.cpp.

References QueRefProto::_From(), _Initialise(), QueRefProto::_OrderBy(), _RealiasT(), QueRefProto::_Select(), QueRefProto::_Where(), and StrFree().

class Query & ProtoBase::_TranslateToSql class Query   Q [protected]
 

Definition at line 1853 of file cProtoBase.cpp.

char * ProtoBase::_TranslateToSql char *&    src [protected]
 

Definition at line 1843 of file cProtoBase.cpp.

References StrFree().

char * ProtoBase::_TranslateToSql char *&    dst,
const char *const    src
[protected]
 

Definition at line 1806 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _sqlVars, sqlVar::atrname, ClassName(), sqlVar::colname, StrCat(), StrCpy(), StrFree(), and StrReplaceAll().

Referenced by ChainedRelationBase::_LGetAll(), ChainedRelationBase::_RGetAll(), and ChainedRelationBase::ChainedRelationBase().

bool ProtoBase::_Update class Connection   aDbConn [protected]
 

Definition at line 1390 of file cProtoBase.cpp.

References sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::indic, sqlVar::rw, and sqlVar::varname.

bool ProtoBase::_UpdateAll class Object   target [protected]
 

Definition at line 1368 of file cProtoBase.cpp.

Referenced by Object::Update().

virtual char* ProtoBase::_Where   const [inline, virtual]
 

Implements QueRefProto.

Definition at line 170 of file cProtoBase.h.

References StrCpy().

virtual const char* ProtoBase::BaseClassName   [inline, virtual]
 

Reimplemented in Proto< T >.

Definition at line 230 of file cProtoBase.h.

Referenced by _Initialise().

virtual const char* ProtoBase::ClassName   [pure virtual]
 

Implemented in Proto< T >.

Referenced by _ExportAttributes(), _Initialise(), ClassRegister::_Invent(), and _TranslateToSql().

const char * ProtoBase::ColumnTable const char *const    col
 

Definition at line 1285 of file cProtoBase.cpp.

References StrCmpUp().

class ResultBase * ProtoBase::ExecuteQuery const QueRefProto   Q,
class Connection   DbCon,
const int    i,
class ResultBase   QR
[virtual]
 

Definition at line 412 of file cProtoBase.cpp.

References QueRefProto::ComplexQuery.

Referenced by OneToManyRelationBase::_LGetAll(), ManyToOneRelationBase::_LGetAll(), ManyToOneRelationBase::_RGetAll(), and Proto< T >::operator()().

class ProtoBase* ProtoBase::Find const char *const    _n [static]
 

Referenced by _InitialiseFullParentPrototype(), _InitialiseParentPrototype(), ClassRegister::Find(), ClassRegister::operator[](), and Proto< T >::Proto().

virtual const char* ProtoBase::From   [pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseFullFrom(), _InitialiseGroupBy(), _InitialiseHaving(), _InitialiseSqlVar(), _InitialiseStmtDelete(), _InitialiseStmtInsert(), _InitialiseStmtUpdate(), _InitialiseWhere(), OneToManyRelationBase::_LGetAll(), _RealiasT(), ManyToOneRelationBase::_RGetAll(), _StmtSelectPtr(), ChainedRelationBase::ChainedRelationBase(), OneToManyRelationBase::DeleteCouple(), ManyToOneRelationBase::DeleteCouple(), OneToManyRelationBase::ExistsCouple(), ManyToOneRelationBase::ExistsCouple(), FullFrom(), OneToOneRelationBase::InsertCouple(), OneToManyRelationBase::InsertCouple(), ManyToOneRelationBase::InsertCouple(), KeyFrom(), ManyToOneRelationBase::LDeleteAll(), Proto< T >::Proto(), ManyToOneRelationBase::RDeleteAll(), OneToOneRelationBase::WriteDDL(), OneToManyRelationBase::WriteDDL(), ManyToOneRelationBase::WriteDDL(), and ManyToManyRelationBase::WriteDDL().

char * ProtoBase::FullFrom int    k [virtual]
 

Definition at line 1745 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _Initialise(), AliasT(), From(), StrCat(), and StrFree().

virtual const char* ProtoBase::FullFrom   [inline, virtual]
 

Definition at line 241 of file cProtoBase.h.

Referenced by ChainedRelationBase::_LGetAll(), ChainedRelationBase::_RGetAll(), and ChainedRelationBase::ChainedRelationBase().

class ProtoBase * ProtoBase::FullParentPrototype const int    i [virtual]
 

Definition at line 1277 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, and _Initialise().

virtual int ProtoBase::FullParentPrototypeCount   [inline, virtual]
 

Definition at line 253 of file cProtoBase.h.

virtual const char* ProtoBase::FullSelect   [inline, virtual]
 

Definition at line 240 of file cProtoBase.h.

char * ProtoBase::FullWhere int    k [virtual]
 

Definition at line 1761 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, _Initialise(), _rootPrototype, _sqlVars, AliasT(), sqlVar::colname, StrCat(), StrCpy(), StrFree(), and StrPrefixCut().

virtual const char* ProtoBase::FullWhere   [inline, virtual]
 

Definition at line 243 of file cProtoBase.h.

Referenced by ChainedRelationBase::_LGetAll(), ChainedRelationBase::_RGetAll(), and ChainedRelationBase::ChainedRelationBase().

virtual const char* ProtoBase::GroupBy   [inline, virtual]
 

Reimplemented in Proto< T >.

Definition at line 237 of file cProtoBase.h.

virtual const char* ProtoBase::Having   [inline, virtual]
 

Reimplemented in Proto< T >.

Definition at line 238 of file cProtoBase.h.

virtual const char* ProtoBase::Into   [inline, virtual]
 

Definition at line 234 of file cProtoBase.h.

virtual bool ProtoBase::IsDatabaseObject   [inline, virtual]
 

Definition at line 227 of file cProtoBase.h.

virtual bool ProtoBase::IsImmutableObject   [inline, virtual]
 

Definition at line 226 of file cProtoBase.h.

virtual bool ProtoBase::IsObject   [inline, virtual]
 

Definition at line 225 of file cProtoBase.h.

Referenced by Object::_Refresh(), and ResultBase::Next().

virtual bool ProtoBase::IsPersistentObject   [inline, virtual]
 

Definition at line 228 of file cProtoBase.h.

Referenced by RefBase::_Virtualise(), and ResultBase::Next().

virtual const char* ProtoBase::KeyFrom   [inline, virtual]
 

Definition at line 249 of file cProtoBase.h.

References From().

virtual const char* ProtoBase::KeySelect   [inline, virtual]
 

Definition at line 245 of file cProtoBase.h.

Referenced by OneToManyRelationBase::_LGetAll(), ManyToManyRelationBase::_LGetAll(), ChainedRelationBase::_LGetAll(), ManyToOneRelationBase::_RGetAll(), ManyToManyRelationBase::_RGetAll(), ChainedRelationBase::_RGetAll(), ChainedRelationBase::ChainedRelationBase(), OneToOneRelationBase::DeleteCouple(), OneToManyRelationBase::DeleteCouple(), ManyToOneRelationBase::DeleteCouple(), OneToOneRelationBase::ExistsCouple(), OneToManyRelationBase::ExistsCouple(), ManyToOneRelationBase::ExistsCouple(), OneToOneRelationBase::InsertCouple(), OneToManyRelationBase::InsertCouple(), ManyToOneRelationBase::InsertCouple(), OneToOneRelationBase::LDeleteAll(), OneToManyRelationBase::LDeleteAll(), ManyToManyRelationBase::ManyToManyRelationBase(), ManyToOneRelationBase::ManyToOneRelationBase(), OneToManyRelationBase::OneToManyRelationBase(), OneToOneRelationBase::OneToOneRelationBase(), OneToOneRelationBase::RDeleteAll(), ManyToOneRelationBase::RDeleteAll(), OneToOneRelationBase::WriteDDL(), OneToManyRelationBase::WriteDDL(), ManyToOneRelationBase::WriteDDL(), and ManyToManyRelationBase::WriteDDL().

virtual const char* ProtoBase::KeyWhere   [inline, virtual]
 

Definition at line 247 of file cProtoBase.h.

virtual class Object* ProtoBase::New   const [pure virtual]
 

Implemented in Proto< T >.

Referenced by ResultBase::Next().

virtual class RefBase* ProtoBase::NewRef   [pure virtual]
 

Implemented in Proto< T >.

class Query QueRefProto::operator const QueRefProto   Q const [inherited]
 

class Query QueRefProto::operator   const [inherited]
 

bool ProtoBase::operator!= class ProtoBase &    _p [inline]
 

Definition at line 182 of file cProtoBase.h.

bool ProtoBase::operator< class ProtoBase &    _p
 

Definition at line 1229 of file cProtoBase.cpp.

References _fullParentPrototype, _fullParentPrototypeCount, and _Initialise().

bool ProtoBase::operator<= class ProtoBase &    _p [inline]
 

Definition at line 185 of file cProtoBase.h.

bool ProtoBase::operator== class ProtoBase &    _p [inline]
 

Definition at line 181 of file cProtoBase.h.

bool ProtoBase::operator> class ProtoBase &    _p [inline]
 

Definition at line 184 of file cProtoBase.h.

bool ProtoBase::operator>= class ProtoBase &    _p [inline]
 

Definition at line 186 of file cProtoBase.h.

virtual const char* ProtoBase::OrderBy   const [pure virtual]
 

Implemented in Proto< T >.

virtual const char* ProtoBase::ParentClassNames   [pure virtual]
 

Implemented in Proto< T >.

Referenced by _InitialiseFullParentPrototype(), and _InitialiseParentPrototype().

class ProtoBase * ProtoBase::ParentPrototype const int    i [virtual]
 

Definition at line 1269 of file cProtoBase.cpp.

References _Initialise(), _parentPrototype, and _parentPrototypeCount.

virtual int ProtoBase::ParentPrototypeCount   [inline, virtual]
 

Definition at line 251 of file cProtoBase.h.

bool ProtoBase::ProtoBase::_Load class Object   o [protected]
 

char* ProtoBase::ProtoBase::ColumnTypeDDL int    i,
class Database   Db
 

bool ProtoBase::ProtoBase::LockTable class Connection   aDbCon,
enum LockingStrategy    aLockingStrategy = LS_Default,
enum WaitingStrategy    aWaitingStrategy = WS_Default
 

void ProtoBase::Register class ProtoBase *    _p,
const char *const    _n
[static]
 

Referenced by Proto< T >::Proto().

virtual const char* ProtoBase::RootClassName   [pure virtual]
 

Implemented in Proto< T >.

virtual class ProtoBase* ProtoBase::RootPrototype   const [inline, virtual]
 

Definition at line 250 of file cProtoBase.h.

virtual const char* ProtoBase::Select   [inline, virtual]
 

Definition at line 233 of file cProtoBase.h.

virtual const char* ProtoBase::Where   [inline, virtual]
 

Definition at line 236 of file cProtoBase.h.

bool ProtoBase::WriteDDL ofstream &    S,
class Database   Db
 

Definition at line 1667 of file cProtoBase.cpp.

References sqlVar::buflen, sqlVar::buftype, sqlVar::colname, StrCpy(), StrFree(), and StrPrefixCut().


Friends And Related Function Documentation

friend class ChainedRelationBase [friend]
 

Reimplemented from QueRefProto.

Definition at line 41 of file cProtoBase.h.

friend class ClassRegister [friend]
 

Definition at line 36 of file cProtoBase.h.

friend class DatabaseObject [friend]
 

Definition at line 38 of file cProtoBase.h.

friend class Object [friend]
 

Reimplemented from QueRefProto.

Definition at line 37 of file cProtoBase.h.

friend class ObjectBuffer [friend]
 

Definition at line 39 of file cProtoBase.h.

friend class RefBase [friend]
 

Definition at line 35 of file cProtoBase.h.

friend class ResultBase [friend]
 

Definition at line 40 of file cProtoBase.h.


Member Data Documentation

char* ProtoBase::_condition [protected]
 

Definition at line 56 of file cProtoBase.h.

Referenced by Proto< T >::Proto(), and ~ProtoBase().

ProtoBase * ProtoBase::_first = NULL [static, protected]
 

Definition at line 36 of file cProtoBase.cpp.

Referenced by _gcs(), and ClassRegister::WriteDDL().

char* ProtoBase::_fullFrom [protected]
 

Definition at line 91 of file cProtoBase.h.

Referenced by _InitialiseFullFrom(), _InitialiseStmtSelect(), and ~ProtoBase().

class ProtoBase** ProtoBase::_fullParentPrototype [protected]
 

Definition at line 82 of file cProtoBase.h.

Referenced by _DeleteAll(), _ExportAttributes(), _ImportAttributes(), _InitialiseFullFrom(), _InitialiseFullParentPrototype(), _InitialiseFullSelect(), _InitialiseFullWhere(), _RealiasT(), _StmtSelectPtr(), _TranslateToSql(), FullFrom(), FullParentPrototype(), FullWhere(), operator<(), and ~ProtoBase().

int ProtoBase::_fullParentPrototypeCount [protected]
 

Definition at line 80 of file cProtoBase.h.

Referenced by _DeleteAll(), _ExportAttributes(), _ImportAttributes(), _InitialiseFullFrom(), _InitialiseFullParentPrototype(), _InitialiseFullSelect(), _InitialiseFullWhere(), _RealiasT(), _StmtSelectPtr(), _TranslateToSql(), FullFrom(), FullParentPrototype(), FullWhere(), and operator<().

char* ProtoBase::_fullSelect [protected]
 

Definition at line 85 of file cProtoBase.h.

Referenced by _InitialiseFullSelect(), _InitialiseStmtSelect(), and ~ProtoBase().

char* ProtoBase::_fullWhere [protected]
 

Definition at line 93 of file cProtoBase.h.

Referenced by _InitialiseFullWhere(), _InitialiseStmtSelect(), and ~ProtoBase().

char* ProtoBase::_groupBy [protected]
 

Definition at line 95 of file cProtoBase.h.

Referenced by _InitialiseGroupBy(), _InitialiseStmtSelect(), and _StmtSelectPtr().

char* ProtoBase::_having [protected]
 

Definition at line 96 of file cProtoBase.h.

Referenced by _InitialiseHaving(), _InitialiseStmtSelect(), and _StmtSelectPtr().

bool ProtoBase::_initialised [protected]
 

Definition at line 51 of file cProtoBase.h.

Referenced by _Initialise().

char* ProtoBase::_into [protected]
 

Definition at line 88 of file cProtoBase.h.

Referenced by _InitialiseInto(), and ~ProtoBase().

bool ProtoBase::_isDatabaseObject [protected]
 

Definition at line 53 of file cProtoBase.h.

Referenced by _Initialise(), _InitialiseGroupBy(), and _InitialiseHaving().

bool ProtoBase::_isImmutableObject [protected]
 

Definition at line 53 of file cProtoBase.h.

Referenced by _Initialise(), _InitialiseStmtInsert(), and _InitialiseStmtUpdate().

bool ProtoBase::_isObject [protected]
 

Definition at line 53 of file cProtoBase.h.

Referenced by _Initialise(), _InitialiseStmtInsert(), and _InitialiseStmtUpdate().

bool ProtoBase::_isPersistentObject [protected]
 

Definition at line 53 of file cProtoBase.h.

Referenced by _Initialise(), _InitialiseGroupBy(), _InitialiseHaving(), and _InitialiseSqlVar().

bool ProtoBase::_isRootClass [protected]
 

Definition at line 53 of file cProtoBase.h.

Referenced by _Initialise(), and _InitialiseSqlVar().

char* ProtoBase::_keySelect [protected]
 

Definition at line 86 of file cProtoBase.h.

Referenced by _InitialiseKeySelect(), _InitialisePtrSelect(), and ~ProtoBase().

char* ProtoBase::_keyWhere [protected]
 

Definition at line 94 of file cProtoBase.h.

Referenced by _InitialiseKeyWhere(), _InitialiseStmtDelete(), _InitialiseStmtSelect(), _InitialiseStmtUpdate(), and ~ProtoBase().

class ProtoBase* ProtoBase::_left [protected]
 

Definition at line 50 of file cProtoBase.h.

Referenced by ClassRegister::_Initialise(), ClassRegister::_Invent(), and _ResetProcessed().

class ProtoBase * ProtoBase::_next [protected]
 

Definition at line 50 of file cProtoBase.h.

Referenced by _gcs(), and ClassRegister::WriteDDL().

class ProtoBase** ProtoBase::_parentPrototype [protected]
 

Definition at line 78 of file cProtoBase.h.

Referenced by _Initialise(), _InitialiseParentPrototype(), ParentPrototype(), and ~ProtoBase().

int ProtoBase::_parentPrototypeCount [protected]
 

Definition at line 76 of file cProtoBase.h.

Referenced by _Initialise(), _InitialiseParentPrototype(), and ParentPrototype().

bool ProtoBase::_processed [protected]
 

Definition at line 52 of file cProtoBase.h.

Referenced by _InitialiseFullParentPrototype(), _ResetProcessed(), and ClassRegister::WriteDDL().

char* ProtoBase::_ptrSelect [protected]
 

Definition at line 87 of file cProtoBase.h.

Referenced by ~ProtoBase().

class ProtoBase * ProtoBase::_right [protected]
 

Definition at line 50 of file cProtoBase.h.

Referenced by ClassRegister::_Initialise(), ClassRegister::_Invent(), and _ResetProcessed().

ProtoBase * ProtoBase::_root = NULL [static, protected]
 

Definition at line 35 of file cProtoBase.cpp.

Referenced by _Initialise(), and ClassRegister::WriteDDL().

class ProtoBase* ProtoBase::_rootPrototype [protected]
 

Definition at line 73 of file cProtoBase.h.

Referenced by _BindPtr(), _Delete(), _ExportKeyAttributes(), _InitialiseKeySelect(), _InitialisePtrSelect(), _InitialiseStmtSelect(), _StmtSelectPtr(), FullWhere(), and Proto< T >::Proto().

char* ProtoBase::_select [protected]
 

Definition at line 84 of file cProtoBase.h.

Referenced by _InitialiseSelect(), and ~ProtoBase().

struct { ... } ProtoBase::_sqlVars [protected]
 

Referenced by _BindPtr(), _Delete(), _ExportAttributes(), _ExportKeyAttributes(), _ImportAttributes(), _InitialiseFullWhere(), _InitialiseInto(), _InitialiseKeySelect(), _InitialiseKeyWhere(), _InitialisePtrSelect(), _InitialiseSelect(), _InitialiseSqlVar(), _InitialiseStmtInsert(), _InitialiseStmtUpdate(), _StmtSelectPtr(), _TranslateToSql(), FullWhere(), and ~ProtoBase().

char* ProtoBase::_stmtDelete [protected]
 

Definition at line 99 of file cProtoBase.h.

Referenced by _Delete(), _InitialiseStmtDelete(), and ~ProtoBase().

char* ProtoBase::_stmtInsert [protected]
 

Definition at line 98 of file cProtoBase.h.

Referenced by _InitialiseStmtInsert(), and ~ProtoBase().

char* ProtoBase::_stmtSelect [protected]
 

Definition at line 97 of file cProtoBase.h.

Referenced by _InitialiseStmtSelect(), and ~ProtoBase().

char* ProtoBase::_stmtUpdate [protected]
 

Definition at line 100 of file cProtoBase.h.

Referenced by _InitialiseStmtUpdate(), and ~ProtoBase().

char* ProtoBase::_where [protected]
 

Definition at line 92 of file cProtoBase.h.

Referenced by _InitialiseStmtUpdate(), _InitialiseWhere(), _StmtSelectPtr(), and ~ProtoBase().

void* ProtoBase::Arr [protected]
 

Definition at line 69 of file cProtoBase.h.

class Query operator&& const QueRefProto& Q QueRefProto::const [inherited]
 

Definition at line 44 of file cQueRefProto.h.

int ProtoBase::Count [protected]
 

Definition at line 62 of file cProtoBase.h.

int ProtoBase::KeyCount [protected]
 

Definition at line 59 of file cProtoBase.h.

Referenced by ProtoBase().

int ProtoBase::SpecCount [protected]
 

Definition at line 64 of file cProtoBase.h.


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