Source: recordset.h


Annotated List
Files
Globals
Hierarchy
Index
#ifndef RECORDSET_H
#define RECORDSET_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <qstring.h>
#include <qlist.h>

#include "dataobject.h"
namespace KDB {

class Record;
class Field; 

/**
 * @short A set of records, that can be traversed trough iterators.
 *
 * A recordset can be obtained directly by the database (trough
 * @ref 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 queryed trough @ref updatable
 *
 * an updatable recordset can be asked to build new records, as well as delete
 * existing ones. Updates are allowed in the @ref KDB::Record class
 */
class Recordset : public DataObject{

    Q_OBJECT

 public:
    typedef QListIterator<Record> iterator;

 public:
    Recordset();

    virtual ~Recordset();

    iterator begin();
    
    QList<Field> fields();

    virtual bool updatable();

    virtual Record * addRecord();

 protected:

    QList<Record> m_records;
         
};
    
}

#endif



Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36.