ORMObjects

From Sunhill Framework Documentation
Revision as of 10:43, 30 September 2024 by Klaus (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


The information on this page might be outdated

ORMObject

To map a hirarchical class relation to a database system there is the class ORMObject. Every classes that make use of this mechanism should be derrived from ORMObject. If you just need plain class to database mapping without inheritance you should consider useing a Collection.

Every class that is derrived from ORMObject has at least to define the static function setupInfos() that gives fundamental informations about the class. Normally a derrived class also defines the setupProperties() function that defines the properties of this class.

Static methods

Collections and ORMObject share the same mechanism for defining properties and storing general class informations. For details see Common static methods.

Dynamic method

commit()

rollback()