#include <iopcProtoBaseAdaptor.h>
Inheritance diagram for IopcProtoBaseAdaptor:
Public Member Functions | |
virtual bool | IsObject () const |
virtual bool | IsImmutableObject () const |
virtual bool | IsDatabaseObject () const |
virtual bool | IsPersistentObject () const |
virtual bool | IsIopcPersistentObject () |
virtual void | _Initialise () |
virtual char * | _Where () const |
virtual char * | _OrderBy () const |
virtual class Object * | New () const |
virtual class RefBase * | NewRef () |
virtual class ResultBase * | ExecuteQuery (const QueRefProto &query, class Connection *connection, const int i, class ResultBase *result) |
Protected Member Functions | |
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 | _ImportAttributes (class Object &o) |
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 () |
bool | WriteDDL (std::ofstream &S, class Database &Db) |
virtual const char * | Select () |
virtual const char * | FullSelect () |
virtual const char * | Into () |
virtual const char * | From () |
virtual const char * | Where () |
virtual const char * | GroupBy () |
virtual const char * | Having () |
virtual const char * | OrderBy () const |
virtual const char * | FullFrom () |
virtual char * | FullFrom (int) |
virtual const char * | FullWhere () |
virtual char * | FullWhere (int) |
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 const char * | BaseClassName () |
virtual const char * | RootClassName () |
virtual const char * | ClassName () |
virtual const char * | ParentClassNames () |
const char * | ColumnTable (const char *const col) |
virtual char * | _TranslateAttributesToColumns (char *src) |
virtual bool | _BindKeysAndClassIdentificatingAttributes (Cursor *cursor) |
virtual bool | _ImportKeyAttributes (class RefBase &x) |
virtual bool | _ExportKeyAttributes (const class RefBase &x) |
virtual bool | _Load (class Object *o) |
virtual bool | _DeleteAll (class RefBase *target) |
virtual ProtoBase * | _PtrPrototype () |
Protected Attributes | |
IopcClassObjectImpl * | classObject |
For basic information about prototypes see ProtoBase.
For each non POLiTe-style persistent class exists one instance of this class in IOPC LIB. As said in documentation of ProtoBase, most functions inherited from ProtoBase doesn't make any sence in IOPC and will never be called by IOPC LIB runtime. These functions are below commented as "Fake function. Should never be called." Some of the remaining functions are trivial - they return some constant and the like. All other functions are implemented as a call to appropriate function on corresponding IopcClassObjectImpl (classObject).
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Implements ProtoBase. |
|
Fake function. Should never be called.
Reimplemented from ProtoBase. |
|
Is the corresponding persistent class "direct" descendant of Object (i.e. descendant of Object, but not descendant of ImmutableObject or IopcPersistentObject)?
|
|
Is the corresponding persistent class "direct" descendant of ImmutableObject (i.e. descendant of ImmutableObject, but not descendant of DatabaseObject)?
|
|
Is the corresponding persistent class "direct" descendant of DatabaseObject (i.e. descendant of DatabaseObject, but not descendant of PersistentObject)?
|
|
Is the corresponding persistent class descendant of PersistentObject?
|
|
Is the corresponding persistent class descendant of IopcPersistentObject? Used at several places in IOPC - in POLiTe classes where previously was only IsPersistentObject() is now mostly (IsIopcPersistentObject() || IsPersistentObject())
Reimplemented from ProtoBase. |
|
This function should initialize the prototype - does nothing.in this class.
Reimplemented from ProtoBase. |
|
This function is called if user tries to use class's prototype as query. The query should return all persistent instances of the class this prototype represents. The function should return WHERE clause to be used when executing the query.
Reimplemented from ProtoBase. |
|
Makes it possible to set default ordering of persistent objects that are instances of represented class when loading them from the database. The function should return appropriate ORDER BY clause.
Reimplemented from ProtoBase. |
|
Creates an instance of the corresponding persistent class. Implemented as a call of IopcClassObjectImpl::createInstance(). Implements ProtoBase. |
|
Creates a new DBNULL reference to the corresponding persistent class. Implemented as a call of IopcClassObjectImpl::createReference(). Implements ProtoBase. |
|
Executes given query on classObject. Implemented as a call of IopcClassObjectImpl::executeQuery().
Reimplemented from ProtoBase. |
|
Translates attribute names to column names and class names to appropriate view names in given string. Called from _TranslateToSql(char * &, const char * const). Implemented as a call of IopcClassObjectImpl::attributeNamesToColumnNames().
Reimplemented from ProtoBase. |
|
Binds key attribute(s) (OID) and attribute(s) that identify type (class) of object (CID) that will be later fetched (as a result of ExecuteQuery() call). Implemented as a call of IopcClassObjectImpl::bindOidAndCid().
Reimplemented from ProtoBase. |
|
Sets ObjectIdentification::oid of given reference
Reimplemented from ProtoBase. |
|
Sets OID of object that will be consequently loaded from the database to the value of ObjectIdentification::oid of given reference
Reimplemented from ProtoBase. |
|
Loads attributes of given object from the database. (More precisely: loads only the default fetch group of attributes.) Implemented as a call of IopcClassObjectImpl::loadObject().
Reimplemented from ProtoBase. |
|
Deletes object specified by given reference from the database. Implemented as a call of IopcClassObjectImpl::deleteObject().
Reimplemented from ProtoBase. |
|
Returns prototype of the object that was the result of the last query executed using classObject (see ExecuteQuery() / _BindKeysAndClassIdentificatingAttributes() ). This function is there to provide polymorphism of queries and references. Implemented using IopcClassObjectImpl::getLastFetchedObjectsClassObject().
Reimplemented from ProtoBase. |
|
Class object that represents the same persistent class as this prototype.
|