When cursor is created, database connection is associated with the cursor by the constructor. Instance of dbConnection object should be passed to the cursor. To avoid access conflicts, the cursor should be used only by one thread each moment of time. A cursor can be also used for updating or removing selected records. It returns false if there are not more records in selection or in case of error.
Fetched record is placed to the instance of the object located in cursor itself.
A cursor for class T contains an instance of class T, used for fetching the current record. Except construction queries using dbQuery class, it is possible to specify query by example . In this case fields of the object which should be matched with the correspondent columns of the table should be set in the cursor and queryByExample method will construct SQL statement which will match only these columns of the tables, which were specified in sample object. Connection Class dbConnection encapsulates establishing connection with database server and handling session errors. It is possible to insert, update and remove record from the table using methods of dbConnection class.