class Recordset

A set of records, that can be traversed through iterators. More...

Full nameKDB::Recordset
Definition#include <recordset.h>
InheritsKDB::DataObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals


Detailed Description

A set of records, that can be traversed through iterators.

A recordset can be obtained directly by the database (through KDB::Database::openRecordset ("Select * from blah") ) or from an existing table or query.

There are two types of recordsets: read only or updatable. the type can be queried through updatable

an updatable recordset can be asked to build new records, as well as delete existing ones. Updates are allowed in the KDB::Record class

 ~Recordset ()

RecordsetIterator  begin ()

returns an iterator that points to the first record of the recordset.

FieldList  fields ()

returns the list of all fields for the current recordset.

bool  updatable ()

returns true if the recordset is updatable, i.e. addRecord can be called and Record s can be modified and updated

RecordPtr  addRecord ()

creates a new record. The programmer must call Record::update to actually insert the record in the database.

void  requery ()

reloads all data from the database.

KDB_ULONG  count ()

returns the amount of records in the current database

void  recordAdded ( KDB::RecordPtr )

[signal]

void  recordRemoved ( KDB::RecordPtr )

[signal]

void  recordUpdated ( KDB::RecordPtr )

[signal]

void  changed ()

[signal]

void  slotRecordUpdated (KDB::Record *, bool)

[slot]

void  slotRecordDeleted (KDB::Record *)

[slot]