Databases: ORM mapping class(like Hibernate), maps database table rows to objects Indrek Altpere (contact me)
This class provides something similar of Hibernate in java world by letting you map table rows into entity objects and making all the fields escaping work for you automatically when saving object to mysql.
This class can be used as a base class to store and retrieve objects in MySQL databases.
It is a base class that should be extended by other classes that define the MySQL database table and the fields to store and retrieve the object variables.
It can execute SQL queries to retrieve objects and save them back to the database if any variable was changed.
The class provides getter and setter functions to retrieve or change the object variable values.
Objects remain cached in memory to avoid fetching the same objects from the database again.
It also provides an iterator class (BaseObjectIterator) to iterate over large result sets without hogging up the memory.