#include <tResult.h>
Inheritance diagram for Result< T >:
Public Methods | |
Result () | |
T * | operator-> () |
T & | operator * () |
virtual class ResultBase & | operator++ () |
virtual class ResultBase & | operator+= (long int n) |
virtual bool | operator== (const ResultBase &Q) const |
bool | operator== (const class RefBase &DbPtr) const |
virtual bool | operator!= (const ResultBase &Q) const |
bool | operator!= (const class RefBase &DbPtr) const |
bool | Open () |
bool | Close () |
long | Count () |
bool | Prev () |
bool | Next () |
bool | First () |
bool | Last () |
bool | IsOnFirst () |
bool | IsOnLast () |
bool | GoToPosition (long Pos) |
long | Position () |
virtual bool | Init (class Connection *aConnection, class ProtoBase *aPrototype, char *aSelectKeyValues) |
virtual Object & | ReferencedObject () const |
Object * | IsInMemory () const |
ObjectIdentification | ObjectID () const |
virtual class ProtoBase * | Prototype () const |
virtual bool | IsDirty () const |
virtual bool | MarkAsDirty () |
virtual bool | Refresh () |
virtual bool | Update () |
virtual bool | Free () |
virtual bool | Delete () |
Object * | MemoryLock () |
bool | MemoryUnlock () |
virtual unsigned int | MemoryLocked () const |
virtual bool | RemoveAllMemoryLocks () |
virtual class RefBase | BePersistent (class Connection *DbCon) |
virtual class Connection * | Connection () const |
virtual bool | IsTransient () const |
virtual bool | IsPersistent () const |
virtual enum UpdatingStrategy | CurrentUpdatingStrategy () const |
virtual bool | SetUpdatingStrategy (enum UpdatingStrategy anUpdateStrategy) |
virtual enum WaitingStrategy | CurrentWaitingStrategy () const |
virtual bool | SetWaitingStrategy (enum WaitingStrategy aWaitingStrategy) |
virtual enum LockingStrategy | CurrentLockingStrategy () const |
virtual bool | SetLockingStrategy (enum LockingStrategy aLockingStrategy) |
virtual enum ReadingStrategy | CurrentReadingStrategy () const |
virtual bool | SetReadingStrategy (enum ReadingStrategy aReadingStrategy) |
virtual bool | IsAncestor (const ObjRef &descendant) const |
Query | operator () const |
Query | operator (const QueRefProto &Q) const |
Public Attributes | |
Query operator &&const QueRefProto &Q | const |
Protected Methods | |
bool | _SetSqlCommand (char *SQLcommand) |
virtual class Object * | _Object () |
virtual class RefBase & | _Virtualise () |
virtual char * | _KeyValues () const |
virtual bool | _MarkAsClean () |
virtual bool | _Free () |
long int | _PtrToOid (const ObjRef &ref) const |
RefBase | _OidToPtr (const long int oid, class ProtoBase *prot) const |
Object * | _OidToMemPtr (const long int oid, class ProtoBase *prot) const |
virtual char * | _Where () const |
virtual char * | _OrderBy () const |
virtual char * | _Select () const |
virtual char * | _From () const |
Protected Attributes | |
Query * | _query |
Cursor * | _cursor |
bool | _isValRef |
char * | _sql_select |
ProtoBase * | _queryPrototype |
Connection * | _queryConnection |
ObjectIdentification | _ObjectIdentification |
unsigned short | _Strategies |
Connection * | _Connection |
|
|
|
Implements ObjRef. Definition at line 356 of file cRefBase.cpp. References Object::_Free(), and RefBase::IsInMemory(). |
|
Reimplemented in ComplexQuery. Definition at line 51 of file cQueRefProto.h. Referenced by ProtoBase::_StmtSelectPtr(). |
|
|
Implements ObjRef. Definition at line 306 of file cRefBase.cpp. References Object::_MarkAsClean(), and RefBase::IsInMemory(). Referenced by DatabaseObject::BePersistent(). |
|
Definition at line 89 of file cRefBase.h. References ObjectIdentification::_object. Referenced by Result< T >::operator *(), Ref< T >::operator *(), Result< T >::operator->(), and Ref< T >::operator->(). |
|
|
|
|
|
Implements QueRefProto. |
|
|
|
Reimplemented in ComplexQuery. Definition at line 49 of file cQueRefProto.h. Referenced by ProtoBase::_StmtSelectPtr(). |
|
Definition at line 252 of file cResultBase.cpp. References ResultBase::_sql_select, and StrCpy(). |
|
Definition at line 149 of file cRefBase.cpp. References Connection::_Close(), Connection::_Execute(), Connection::_FetchNext(), RefBase::_ObjectIdentification, Connection::_Open(), Connection::_PreFetchBind(), Connection::_Prepare(), ObjectIdentification::_prototype, ObjectIdentification::_SelectKeyValues, ObjRef::Connection(), ProtoBase::IsPersistentObject(), MAX_CLASS_NAME_LEN, PERSISTENT_OBJECT_TABLE, RefBase::Prototype(), StrCat(), StrFree(), TL_WARNING, and TYPE_STRING. Referenced by Object::_Virtualise(). |
|
Implements QueRefProto. Definition at line 62 of file cObjRef.cpp. References StrCat(), StrCpy(), StrDecode(), StrFree(), and StrSplit(). |
|
Implements ObjRef. Definition at line 183 of file cRefBase.h. |
|
Definition at line 82 of file cResultBase.cpp. References Cursor::_Close(), ResultBase::_cursor, and ResultBase::_isValRef. Referenced by Relation::LExists(), and Relation::RExists(). |
|
Definition at line 80 of file cObjRef.h. Referenced by RefBase::_Virtualise(), Object::Address(), RefBase::IsInMemory(), and PersistentObject::Update(). |
|
Definition at line 204 of file cResultBase.cpp. References ResultBase::GoToPosition(), ResultBase::Last(), and ResultBase::Position(). Referenced by ResultBase::IsOnLast(). |
|
Definition at line 199 of file cObjRef.h. References LockingStrategy, and LS_MASK. Referenced by Object::_Refresh(). |
|
Definition at line 204 of file cObjRef.h. References ReadingStrategy, and RS_MASK. Referenced by Object::_Refresh(). |
|
Definition at line 188 of file cObjRef.h. References UpdatingStrategy, and US_MASK. |
|
Definition at line 194 of file cObjRef.h. References WaitingStrategy, and WS_MASK. |
|
Implements ObjRef. Definition at line 371 of file cRefBase.cpp. References ProtoBase::_DeleteAll(), RefBase::IsInMemory(), ObjRef::IsTransient(), and RefBase::Prototype(). |
|
Definition at line 188 of file cResultBase.cpp. References ResultBase::Next(), and ResultBase::Open(). Referenced by Relation::LExists(), and Relation::RExists(). |
|
Implements ObjRef. Definition at line 344 of file cRefBase.cpp. References Object::Free(), and RefBase::IsInMemory(). |
|
Definition at line 230 of file cResultBase.cpp. References ResultBase::Next(), ResultBase::Open(), and ResultBase::Position(). Referenced by ResultBase::Count(), and ResultBase::Prev(). |
|
Definition at line 98 of file cRefBase.cpp. References ObjRef::_Connection, ObjectIdentification::_Init(), and RefBase::_ObjectIdentification. |
|
Definition at line 86 of file cObjRef.cpp. |
|
Implements ObjRef. Definition at line 292 of file cRefBase.cpp. References Object::IsDirty(), and RefBase::IsInMemory(). |
|
Implements ObjRef. Definition at line 267 of file cRefBase.cpp. References ObjectIdentification::_object, RefBase::_ObjectIdentification, and ObjRef::Connection(). Referenced by RefBase::_Free(), RefBase::_MarkAsClean(), RefBase::Delete(), RefBase::Free(), RefBase::IsDirty(), RefBase::MarkAsDirty(), RefBase::MemoryLocked(), RefBase::MemoryUnlock(), RefBase::Refresh(), RefBase::RemoveAllMemoryLocks(), and RefBase::Update(). |
|
Definition at line 215 of file cResultBase.cpp. References ResultBase::Position(). |
|
Definition at line 223 of file cResultBase.cpp. References ResultBase::Count(), and ResultBase::Position(). |
|
Reimplemented in ImmutableObject, and Object. Definition at line 168 of file cObjRef.h. Referenced by PersistentObject::BePersistent(), Result< T >::operator *(), Ref< T >::operator *(), Result< T >::operator->(), Ref< T >::operator->(), and RefBase::ReferencedObject(). |
|
Reimplemented in ImmutableObject, and Object. Definition at line 159 of file cObjRef.h. Referenced by OneToOneRelationBase::_LGetAll(), ManyToManyRelationBase::_LGetAll(), ChainedRelationBase::_LGetAll(), OneToOneRelationBase::_RGetAll(), ManyToManyRelationBase::_RGetAll(), ChainedRelationBase::_RGetAll(), DatabaseObject::BePersistent(), RefBase::Delete(), OneToOneRelationBase::DeleteCouple(), OneToManyRelationBase::DeleteCouple(), ManyToOneRelationBase::DeleteCouple(), OneToOneRelationBase::ExistsCouple(), OneToManyRelationBase::ExistsCouple(), ManyToOneRelationBase::ExistsCouple(), ManyToManyRelationBase::ExistsCouple(), and ChainedRelationBase::ExistsCouple(). |
|
Definition at line 195 of file cResultBase.cpp. References ResultBase::Next(). Referenced by ResultBase::Count(). |
|
Implements ObjRef. Definition at line 299 of file cRefBase.cpp. References RefBase::IsInMemory(), and Object::MarkAsDirty(). |
|
Implements ObjRef. Definition at line 400 of file cRefBase.cpp. References Object::MemoryLock(), and RefBase::ReferencedObject(). |
|
Implements ObjRef. Definition at line 438 of file cRefBase.cpp. References RefBase::IsInMemory(). |
|
Implements ObjRef. Definition at line 414 of file cRefBase.cpp. References RefBase::IsInMemory(). |
|
|
Implements ObjRef. Definition at line 253 of file cRefBase.cpp. References RefBase::_ObjectIdentification. |
|
Definition at line 57 of file cResultBase.cpp. References ProtoBase::_BindPtr(), ResultBase::_cursor, Cursor::_DatabaseConnection, Cursor::_Execute(), ResultBase::_isValRef, Cursor::_Open(), Cursor::_Prepare(), ResultBase::_queryPrototype, and ResultBase::_sql_select. Referenced by ResultBase::First(), and ResultBase::GoToPosition(). |
|
|
|
|
|
Definition at line 46 of file tResult.h. References RefBase::_Object(), and ObjRef::IsPersistent(). |
|
Reimplemented from RefBase. Definition at line 270 of file cResultBase.cpp. References ObjRef::_Connection, and RefBase::_ObjectIdentification. |
|
Definition at line 114 of file cResultBase.cpp. |
|
Definition at line 90 of file cResultBase.cpp. References ResultBase::Next(). |
|
Definition at line 98 of file cResultBase.cpp. |
|
Definition at line 36 of file tResult.h. References RefBase::_Object(), and ObjRef::IsPersistent(). |
|
Reimplemented from RefBase. Definition at line 262 of file cResultBase.cpp. References ObjRef::_Connection, and RefBase::_ObjectIdentification. |
|
Definition at line 107 of file cResultBase.cpp. |
|
Definition at line 245 of file cResultBase.cpp. References ResultBase::_cursor, and Cursor::_Position(). Referenced by ResultBase::Count(), ResultBase::GoToPosition(), ResultBase::IsOnFirst(), ResultBase::IsOnLast(), and ResultBase::Prev(). |
|
Definition at line 121 of file cResultBase.cpp. References ResultBase::GoToPosition(), and ResultBase::Position(). |
|
Implements ObjRef. Definition at line 281 of file cRefBase.cpp. Referenced by RefBase::_Virtualise(), DatabaseObject::BePersistent(), and RefBase::Delete(). |
|
Definition at line 215 of file cRefBase.cpp. References ObjectIdentification::_object, RefBase::_ObjectIdentification, and ObjRef::IsPersistent(). Referenced by RefBase::MemoryLock(). |
|
Implements ObjRef. Definition at line 315 of file cRefBase.cpp. References RefBase::IsInMemory(), and Object::Refresh(). |
|
Reimplemented from ObjRef. Definition at line 463 of file cRefBase.cpp. References RefBase::IsInMemory(). |
|
Definition at line 195 of file cObjRef.cpp. References ObjRef::_Connection, ObjRef::_Strategies, Connection::CurrentLockingStrategy(), DEFAULT_LOCKING_STRATEGY, LockingStrategy, LS_Current, LS_Default, LS_Inherited, and LS_MASK. Referenced by DatabaseObject::DatabaseObject(). |
|
Definition at line 218 of file cObjRef.cpp. References ObjRef::_Connection, ObjRef::_Strategies, Connection::CurrentReadingStrategy(), DEFAULT_READING_STRATEGY, ReadingStrategy, RS_Current, RS_Default, RS_Inherited, and RS_MASK. |
|
Definition at line 149 of file cObjRef.cpp. References ObjRef::_Connection, ObjRef::_Strategies, Connection::CurrentUpdatingStrategy(), DEFAULT_UPDATING_STRATEGY, UpdatingStrategy, US_Current, US_Default, US_Inherited, and US_MASK. Referenced by DatabaseObject::DatabaseObject(). |
|
Definition at line 172 of file cObjRef.cpp. References ObjRef::_Connection, ObjRef::_Strategies, Connection::CurrentWaitingStrategy(), DEFAULT_WAITING_STRATEGY, WaitingStrategy, WS_Current, WS_Default, WS_Inherited, and WS_MASK. Referenced by DatabaseObject::DatabaseObject(). |
|
Implements ObjRef. Definition at line 329 of file cRefBase.cpp. References RefBase::IsInMemory(), and Object::Update(). |
|
Definition at line 54 of file cObjRef.h. Referenced by PersistentObject::_VersionsMatch(), DatabaseObject::BePersistent(), RefBase::Init(), ResultBase::Next(), ObjRef::ObjRef(), ResultBase::operator!=(), RefBase::operator!=(), ResultBase::operator==(), RefBase::operator==(), RefBase::RefBase(), ObjRef::SetLockingStrategy(), ObjRef::SetReadingStrategy(), ObjRef::SetUpdatingStrategy(), and ObjRef::SetWaitingStrategy(). |
|
Definition at line 40 of file cResultBase.h. Referenced by ResultBase::Close(), ResultBase::Next(), ResultBase::Open(), ResultBase::Position(), ResultBase::ResultBase(), and ResultBase::~ResultBase(). |
|
Definition at line 42 of file cResultBase.h. Referenced by ResultBase::Close(), ResultBase::Next(), ResultBase::Open(), and ResultBase::ResultBase(). |
|
Definition at line 52 of file cRefBase.h. Referenced by Object::_SelectKeyValues(), RefBase::_Virtualise(), RefBase::Init(), RefBase::IsInMemory(), ResultBase::Next(), RefBase::ObjectID(), ResultBase::operator!=(), RefBase::operator!=(), ResultBase::operator==(), RefBase::operator==(), and RefBase::ReferencedObject(). |
|
Definition at line 38 of file cResultBase.h. Referenced by ResultBase::ResultBase(). |
|
Definition at line 48 of file cResultBase.h. Referenced by ResultBase::Next(), and ResultBase::ResultBase(). |
|
Definition at line 46 of file cResultBase.h. Referenced by ResultBase::Next(), ResultBase::Open(), and ResultBase::ResultBase(). |
|
Definition at line 44 of file cResultBase.h. Referenced by ResultBase::_SetSqlCommand(), ResultBase::Open(), ResultBase::ResultBase(), and ResultBase::~ResultBase(). |
|
Definition at line 52 of file cObjRef.h. Referenced by Object::Address(), ObjRef::ObjRef(), RefBase::RefBase(), ObjRef::SetLockingStrategy(), ObjRef::SetReadingStrategy(), ObjRef::SetUpdatingStrategy(), and ObjRef::SetWaitingStrategy(). |
|
Definition at line 44 of file cQueRefProto.h. |