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

Proto< T > Class Template Reference

#include <tProto.h>

Inheritance diagram for Proto< T >:

Inheritance graph
[legend]
Collaboration diagram for Proto< T >:

Collaboration graph
[legend]
List of all members.

Public Methods

Result< T > * operator() (const QueRefProto &_q, class Connection *_c)
 Proto ()
 ~Proto ()
virtual const char * RootClassName ()
virtual const char * BaseClassName ()
virtual const char * ClassName ()
virtual const char * ParentClassNames ()
virtual const char * From ()
virtual const char * GroupBy ()
virtual const char * Having ()
virtual const char * OrderBy () const
virtual class ObjectNew () const
virtual class RefBaseNewRef ()
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)
virtual bool IsObject ()
virtual bool IsImmutableObject ()
virtual bool IsDatabaseObject ()
virtual bool IsPersistentObject ()
virtual const char * Select ()
virtual const char * Into ()
virtual const char * Where ()
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 ProtoBaseRootPrototype () const
virtual int ParentPrototypeCount ()
virtual class ProtoBaseParentPrototype (const int i)
virtual int FullParentPrototypeCount ()
virtual class ProtoBaseFullParentPrototype (const int i)
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)
ProtoBaseFind (const char *const _n)

Public Attributes

Query operator &&const QueRefProto
&Q 
const

Protected Methods

virtual void _MapKey (int i, const char *&attr, unsigned char Object::*&mem, const char *&col, char &type, unsigned int &len, bool &rw)
virtual void _Map (int i, const char *&attr, unsigned char Object::*&mem, const char *&col, char &type, unsigned int &len, bool &rw)
virtual const char * _ProtoTWhere ()
virtual const char * _ProtoTGroupBy ()
virtual const char * _ProtoTHaving ()
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)
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

template<class T>
class Proto< T >


Constructor & Destructor Documentation

template<class T>
Proto< T >::Proto  
 

Definition at line 51 of file tProto.h.

References ProtoBase::_condition, Proto< T >::_MapKey(), ProtoBase::_rootPrototype, ProtoBase::Find(), Proto< T >::From(), ProtoBase::From(), ProtoBase::Register(), Proto< T >::RootClassName(), StrCat(), StrCpy(), StrFree(), and StrPrefixCut().

template<class T>
Proto< T >::~Proto   [inline]
 


Member Function Documentation

bool ProtoBase::_BindPtr class Cursor   C [protected, inherited]
 

Definition at line 1164 of file cProtoBase.cpp.

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

Referenced by ResultBase::Open().

bool ProtoBase::_Delete class Connection   aDbConn [protected, inherited]
 

Definition at line 1488 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_DeleteAll().

bool ProtoBase::_DeleteAll class Object   target [protected, inherited]
 

Definition at line 1465 of file cProtoBase.cpp.

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

bool ProtoBase::_DeleteAll class RefBase   target [protected, inherited]
 

Definition at line 1442 of file cProtoBase.cpp.

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

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

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

Definition at line 75 of file cProtoBase.cpp.

References ProtoBase::_fullParentPrototype, ProtoBase::_fullParentPrototypeCount, ProtoBase::_Initialise(), ProtoBase::_sqlVars, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, ProtoBase::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, inherited]
 

Definition at line 214 of file cProtoBase.cpp.

References ProtoBase::_Initialise(), ProtoBase::_rootPrototype, ProtoBase::_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, inherited]
 

Definition at line 157 of file cProtoBase.cpp.

References ProtoBase::_Initialise(), ProtoBase::_rootPrototype, ProtoBase::_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 ProtoBase::_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 ProtoBase::_StmtSelectPtr().

ProtoBase * ProtoBase::_gcs ProtoBase   X [protected, inherited]
 

Definition at line 74 of file cClassRegister.cpp.

References ProtoBase::_first, and ProtoBase::_next.

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

Definition at line 269 of file cProtoBase.cpp.

References ProtoBase::_fullParentPrototype, ProtoBase::_fullParentPrototypeCount, ProtoBase::_Initialise(), ProtoBase::_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, inherited]
 

Definition at line 393 of file cProtoBase.cpp.

References ProtoBase::_Initialise(), and ProtoBase::_KeyValues().

Referenced by ResultBase::Next().

void ProtoBase::_Initialise   [protected, inherited]
 

Definition at line 445 of file cProtoBase.cpp.

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

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

void ProtoBase::_InitialiseFullFrom   [protected, inherited]
 

Definition at line 773 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseFullParentPrototype class ProtoBase   _p [protected, inherited]
 

Definition at line 518 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseFullSelect   [protected, inherited]
 

Definition at line 696 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseFullWhere   [protected, inherited]
 

Definition at line 798 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseGroupBy   [protected, inherited]
 

Definition at line 840 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseHaving   [protected, inherited]
 

Definition at line 854 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseInto   [protected, inherited]
 

Definition at line 735 of file cProtoBase.cpp.

References ProtoBase::_into, ProtoBase::_sqlVars, and StrCat().

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseKeySelect   [protected, inherited]
 

Definition at line 709 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseKeyWhere   [protected, inherited]
 

Definition at line 825 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseParentPrototype   [protected, inherited]
 

Definition at line 500 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialisePtrSelect   [protected, inherited]
 

Definition at line 719 of file cProtoBase.cpp.

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

void ProtoBase::_InitialiseSelect   [protected, inherited]
 

Definition at line 685 of file cProtoBase.cpp.

References ProtoBase::_select, ProtoBase::_sqlVars, and StrCat().

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseSqlVar   [protected, inherited]
 

Definition at line 543 of file cProtoBase.cpp.

References ProtoBase::_isPersistentObject, ProtoBase::_isRootClass, ProtoBase::_Map(), ProtoBase::_MapKey(), ProtoBase::_sqlVars, sqlVar::atrname, sqlVar::bufaddr, sqlVar::buflen, sqlVar::buftype, sqlVar::colname, ProtoBase::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 ProtoBase::_Initialise().

void ProtoBase::_InitialiseStmtDelete   [protected, inherited]
 

Definition at line 957 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseStmtInsert   [protected, inherited]
 

Definition at line 896 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseStmtSelect   [protected, inherited]
 

Definition at line 868 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseStmtUpdate   [protected, inherited]
 

Definition at line 929 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

void ProtoBase::_InitialiseWhere   [protected, inherited]
 

Definition at line 784 of file cProtoBase.cpp.

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

Referenced by ProtoBase::_Initialise().

bool ProtoBase::_Insert class Connection   aDbConn [protected, inherited]
 

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, inherited]
 

Definition at line 1296 of file cProtoBase.cpp.

Referenced by DatabaseObject::BePersistent().

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

Definition at line 385 of file cProtoBase.cpp.

References ProtoBase::_ExportKeyAttributes(), and ProtoBase::_KeyValues().

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

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 ProtoBase::_ImportKeyAttributes(), ProtoBase::_KeyValues(), and Object::_KeyValues().

template<class T>
virtual void Proto< T >::_Map int    i,
const char *&    attr,
unsigned char Object::*&    mem,
const char *&    col,
char &    type,
unsigned int &    len,
bool &    rw
[inline, protected, virtual]
 

Implements ProtoBase.

Definition at line 45 of file tProto.h.

template<class T>
virtual void Proto< T >::_MapKey int    i,
const char *&    attr,
unsigned char Object::*&    mem,
const char *&    col,
char &    type,
unsigned int &    len,
bool &    rw
[inline, protected, virtual]
 

Implements ProtoBase.

Definition at line 44 of file tProto.h.

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

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

Implements QueRefProto.

Definition at line 171 of file cProtoBase.h.

References StrCpy().

template<class T>
virtual const char* Proto< T >::_ProtoTGroupBy   [inline, protected, virtual]
 

Implements ProtoBase.

Definition at line 47 of file tProto.h.

template<class T>
virtual const char* Proto< T >::_ProtoTHaving   [inline, protected, virtual]
 

Implements ProtoBase.

Definition at line 48 of file tProto.h.

template<class T>
virtual const char* Proto< T >::_ProtoTWhere   [inline, protected, virtual]
 

Implements ProtoBase.

Definition at line 46 of file tProto.h.

ProtoBase * ProtoBase::_PtrPrototype   [protected, inherited]
 

Definition at line 1201 of file cProtoBase.cpp.

Referenced by ResultBase::Next().

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

Definition at line 1656 of file cProtoBase.cpp.

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

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

Definition at line 1638 of file cProtoBase.cpp.

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

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

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

Definition at line 399 of file cProtoBase.cpp.

References ProtoBase::_left, ProtoBase::_processed, and ProtoBase::_right.

Referenced by ProtoBase::_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 ProtoBase::_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, inherited]
 

Definition at line 1003 of file cProtoBase.cpp.

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

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

Definition at line 965 of file cProtoBase.cpp.

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

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

Definition at line 1853 of file cProtoBase.cpp.

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

Definition at line 1843 of file cProtoBase.cpp.

References StrFree().

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

Definition at line 1806 of file cProtoBase.cpp.

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

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

bool ProtoBase::_Update class Connection   aDbConn [protected, inherited]
 

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, inherited]
 

Definition at line 1368 of file cProtoBase.cpp.

Referenced by Object::Update().

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

Implements QueRefProto.

Definition at line 170 of file cProtoBase.h.

References StrCpy().

template<class T>
virtual const char* Proto< T >::BaseClassName   [inline, virtual]
 

Reimplemented from ProtoBase.

Definition at line 34 of file tProto.h.

template<class T>
virtual const char* Proto< T >::ClassName   [inline, virtual]
 

Implements ProtoBase.

Definition at line 35 of file tProto.h.

const char * ProtoBase::ColumnTable const char *const    col [inherited]
 

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, inherited]
 

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, inherited]
 

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

template<class T>
virtual const char* Proto< T >::From   [inline, virtual]
 

Implements ProtoBase.

Definition at line 37 of file tProto.h.

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

char * ProtoBase::FullFrom int    k [virtual, inherited]
 

Definition at line 1745 of file cProtoBase.cpp.

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

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

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, inherited]
 

Definition at line 1277 of file cProtoBase.cpp.

References ProtoBase::_fullParentPrototype, ProtoBase::_fullParentPrototypeCount, and ProtoBase::_Initialise().

virtual int ProtoBase::FullParentPrototypeCount   [inline, virtual, inherited]
 

Definition at line 253 of file cProtoBase.h.

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

Definition at line 240 of file cProtoBase.h.

char * ProtoBase::FullWhere int    k [virtual, inherited]
 

Definition at line 1761 of file cProtoBase.cpp.

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

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

Definition at line 243 of file cProtoBase.h.

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

template<class T>
virtual const char* Proto< T >::GroupBy   [inline, virtual]
 

Reimplemented from ProtoBase.

Definition at line 38 of file tProto.h.

template<class T>
virtual const char* Proto< T >::Having   [inline, virtual]
 

Reimplemented from ProtoBase.

Definition at line 39 of file tProto.h.

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

Definition at line 234 of file cProtoBase.h.

virtual bool ProtoBase::IsDatabaseObject   [inline, virtual, inherited]
 

Definition at line 227 of file cProtoBase.h.

virtual bool ProtoBase::IsImmutableObject   [inline, virtual, inherited]
 

Definition at line 226 of file cProtoBase.h.

virtual bool ProtoBase::IsObject   [inline, virtual, inherited]
 

Definition at line 225 of file cProtoBase.h.

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

virtual bool ProtoBase::IsPersistentObject   [inline, virtual, inherited]
 

Definition at line 228 of file cProtoBase.h.

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

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

Definition at line 249 of file cProtoBase.h.

References ProtoBase::From().

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

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, inherited]
 

Definition at line 247 of file cProtoBase.h.

template<class T>
virtual class Object* Proto< T >::New   const [inline, virtual]
 

Implements ProtoBase.

Definition at line 41 of file tProto.h.

template<class T>
virtual class RefBase* Proto< T >::NewRef   [inline, virtual]
 

Implements ProtoBase.

Definition at line 42 of file tProto.h.

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

class Query QueRefProto::operator   const [inherited]
 

bool ProtoBase::operator!= class ProtoBase   _p [inline, inherited]
 

Definition at line 182 of file cProtoBase.h.

template<class T>
Result<T>* Proto< T >::operator() const QueRefProto< T > &    _q,
class Connection   _c
[inline]
 

Definition at line 30 of file tProto.h.

References ProtoBase::ExecuteQuery().

bool ProtoBase::operator< class ProtoBase   _p [inherited]
 

Definition at line 1229 of file cProtoBase.cpp.

References ProtoBase::_fullParentPrototype, ProtoBase::_fullParentPrototypeCount, and ProtoBase::_Initialise().

bool ProtoBase::operator<= class ProtoBase   _p [inline, inherited]
 

Definition at line 185 of file cProtoBase.h.

bool ProtoBase::operator== class ProtoBase   _p [inline, inherited]
 

Definition at line 181 of file cProtoBase.h.

bool ProtoBase::operator> class ProtoBase   _p [inline, inherited]
 

Definition at line 184 of file cProtoBase.h.

bool ProtoBase::operator>= class ProtoBase   _p [inline, inherited]
 

Definition at line 186 of file cProtoBase.h.

template<class T>
virtual const char* Proto< T >::OrderBy   const [inline, virtual]
 

Implements ProtoBase.

Definition at line 40 of file tProto.h.

template<class T>
virtual const char* Proto< T >::ParentClassNames   [inline, virtual]
 

Implements ProtoBase.

Definition at line 36 of file tProto.h.

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

Definition at line 1269 of file cProtoBase.cpp.

References ProtoBase::_Initialise(), ProtoBase::_parentPrototype, and ProtoBase::_parentPrototypeCount.

virtual int ProtoBase::ParentPrototypeCount   [inline, virtual, inherited]
 

Definition at line 251 of file cProtoBase.h.

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

char* ProtoBase::ProtoBase::ColumnTypeDDL int    i,
class Database   Db
[inherited]
 

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

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

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

template<class T>
virtual const char* Proto< T >::RootClassName   [inline, virtual]
 

Implements ProtoBase.

Definition at line 33 of file tProto.h.

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

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

Definition at line 250 of file cProtoBase.h.

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

Definition at line 233 of file cProtoBase.h.

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

Definition at line 236 of file cProtoBase.h.

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

Definition at line 1667 of file cProtoBase.cpp.

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


Member Data Documentation

char* ProtoBase::_condition [protected, inherited]
 

Definition at line 56 of file cProtoBase.h.

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

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

Definition at line 36 of file cProtoBase.cpp.

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

char* ProtoBase::_fullFrom [protected, inherited]
 

Definition at line 91 of file cProtoBase.h.

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

class ProtoBase** ProtoBase::_fullParentPrototype [protected, inherited]
 

Definition at line 82 of file cProtoBase.h.

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

int ProtoBase::_fullParentPrototypeCount [protected, inherited]
 

Definition at line 80 of file cProtoBase.h.

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

char* ProtoBase::_fullSelect [protected, inherited]
 

Definition at line 85 of file cProtoBase.h.

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

char* ProtoBase::_fullWhere [protected, inherited]
 

Definition at line 93 of file cProtoBase.h.

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

char* ProtoBase::_groupBy [protected, inherited]
 

Definition at line 95 of file cProtoBase.h.

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

char* ProtoBase::_having [protected, inherited]
 

Definition at line 96 of file cProtoBase.h.

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

bool ProtoBase::_initialised [protected, inherited]
 

Definition at line 51 of file cProtoBase.h.

Referenced by ProtoBase::_Initialise().

char* ProtoBase::_into [protected, inherited]
 

Definition at line 88 of file cProtoBase.h.

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

bool ProtoBase::_isDatabaseObject [protected, inherited]
 

Definition at line 53 of file cProtoBase.h.

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

bool ProtoBase::_isImmutableObject [protected, inherited]
 

Definition at line 53 of file cProtoBase.h.

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

bool ProtoBase::_isObject [protected, inherited]
 

Definition at line 53 of file cProtoBase.h.

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

bool ProtoBase::_isPersistentObject [protected, inherited]
 

Definition at line 53 of file cProtoBase.h.

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

bool ProtoBase::_isRootClass [protected, inherited]
 

Definition at line 53 of file cProtoBase.h.

Referenced by ProtoBase::_Initialise(), and ProtoBase::_InitialiseSqlVar().

char* ProtoBase::_keySelect [protected, inherited]
 

Definition at line 86 of file cProtoBase.h.

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

char* ProtoBase::_keyWhere [protected, inherited]
 

Definition at line 94 of file cProtoBase.h.

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

class ProtoBase* ProtoBase::_left [protected, inherited]
 

Definition at line 50 of file cProtoBase.h.

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

class ProtoBase * ProtoBase::_next [protected, inherited]
 

Definition at line 50 of file cProtoBase.h.

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

class ProtoBase** ProtoBase::_parentPrototype [protected, inherited]
 

Definition at line 78 of file cProtoBase.h.

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

int ProtoBase::_parentPrototypeCount [protected, inherited]
 

Definition at line 76 of file cProtoBase.h.

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

bool ProtoBase::_processed [protected, inherited]
 

Definition at line 52 of file cProtoBase.h.

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

char* ProtoBase::_ptrSelect [protected, inherited]
 

Definition at line 87 of file cProtoBase.h.

Referenced by ProtoBase::~ProtoBase().

class ProtoBase * ProtoBase::_right [protected, inherited]
 

Definition at line 50 of file cProtoBase.h.

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

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

Definition at line 35 of file cProtoBase.cpp.

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

class ProtoBase* ProtoBase::_rootPrototype [protected, inherited]
 

Definition at line 73 of file cProtoBase.h.

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

char* ProtoBase::_select [protected, inherited]
 

Definition at line 84 of file cProtoBase.h.

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

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

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

char* ProtoBase::_stmtDelete [protected, inherited]
 

Definition at line 99 of file cProtoBase.h.

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

char* ProtoBase::_stmtInsert [protected, inherited]
 

Definition at line 98 of file cProtoBase.h.

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

char* ProtoBase::_stmtSelect [protected, inherited]
 

Definition at line 97 of file cProtoBase.h.

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

char* ProtoBase::_stmtUpdate [protected, inherited]
 

Definition at line 100 of file cProtoBase.h.

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

char* ProtoBase::_where [protected, inherited]
 

Definition at line 92 of file cProtoBase.h.

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

void* ProtoBase::Arr [protected, inherited]
 

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, inherited]
 

Definition at line 62 of file cProtoBase.h.

int ProtoBase::KeyCount [protected, inherited]
 

Definition at line 59 of file cProtoBase.h.

Referenced by ProtoBase::ProtoBase().

int ProtoBase::SpecCount [protected, inherited]
 

Definition at line 64 of file cProtoBase.h.


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