#include <iopcClassObject.h>
Inheritance diagram for IopcClassObject:
Public Member Functions | |
virtual bool | isAttributePersistent (int attributeNumber)=0 |
virtual void | loadAttribute (int attributeNumber, IopcPersistentObject *object)=0 |
virtual void | insertObject (IopcPersistentObject *object)=0 |
virtual void | updateObject (IopcPersistentObject *object)=0 |
virtual void | deleteObject (IopcPersistentObject *object)=0 |
virtual ProtoBase * | getProtoBaseAdaptor ()=0 |
virtual void | executeQuery (const QueRefProto &query, Connection *connection, ResultBase *result)=0 |
Static Public Member Functions | |
IopcClassObject * | getClassObject (const char *className, bool throwException=false) |
We don't want user's persistent classes to use internal functions of IopcClassObjectImpl. Therefore these classes access IopcClassObjectImpl through this interface. The second reason to create this interface was not to include all the headers included by IopcClassObjectImpl.h in user's persistent classes. The inclusion could make IOPC SP run significantly slower.
All methods of this interface are further described in documentation of IopcClassObjectImpl. For the basic understanding it is good to know that one instance of IopcClassObjectImpl represents one user's persistent class, stores all information about it (incl. information about class mapping) and is able to save, update and retrieve instances of the class from / to the database.
|
Is attribute of given number persistent?
Implemented in IopcClassObjectImpl. |
|
Loads attribute with given number (together with all the attributes from the same group as the specified attribute) from the database and sets Implemented in IopcClassObjectImpl. |
|
Inserts given object into database. Called if transient object becomes persistent (see IopcPersistentObject::BePersistent()). Implemented in IopcClassObjectImpl. |
|
Updates
Implemented in IopcClassObjectImpl. |
|
Deletes
Implemented in IopcClassObjectImpl. |
|
Returns IopcProtoBaseAdaptor associated with the IopcClassObjectImpl.
Implemented in IopcClassObjectImpl. |
|
Executes given query on polymorphic view that contain instances of represented persistent class and instances of its descandants.
Implemented in IopcClassObjectImpl. |
|
Returns appropriate class object (IopcClassObjectImpl) for given class name (
If the class object is not found returns NULL if |