Kexi API Documentation (2.0 alpha)

Kross::KexiDB::KexiDBFieldList Class Reference

#include <kexidbfieldlist.h>

Inheritance diagram for Kross::KexiDB::KexiDBFieldList:

Class List of all members.

Detailed Description

A list of fields.

The KexiDBFieldList can be used to handle KexiDBField objects in a backend-independent way.

Example (in Python) ;

 # Get the tableschema for the "dept" table.
 table = connection.tableSchema("dept")
 # Create a KexiDBFieldList based on the table and filled with the selected fields.
 subfields = ["deptno","name","loc"]
 fieldlist = table.fieldlist().subList(subfields)
 # Create the "SELECT * from dept;" queryschema.
 query = table.query()
 # We change the queryschema to "SELECT deptno,name,loc FROM dept;" now.
 query.fieldlist().setFields(fieldlist)
 # and change the query to "SELECT deptno,name,loc FROM dept WHERE deptno=5;"
 query.setWhereExpression("deptno=5")
 # Execute the query and get a KexiDBCursor object as result which could be used to iterate through the result.
 cursor = connection.executeQuerySchema(query)

Definition at line 59 of file kexidbfieldlist.h.

Public Member Functions

 KexiDBFieldList (::KexiDB::FieldList *fieldlist)
virtual ~KexiDBFieldList ()
virtual const QString getClassName () const
::KexiDB::FieldListfieldlist ()


Constructor & Destructor Documentation

KexiDBFieldList::KexiDBFieldList ::KexiDB::FieldList fieldlist  ) 
 

Definition at line 30 of file kexidbfieldlist.cpp.

KexiDBFieldList::~KexiDBFieldList  )  [virtual]
 

Definition at line 52 of file kexidbfieldlist.cpp.


Member Function Documentation

::KexiDB::FieldList* Kross::KexiDB::KexiDBFieldList::fieldlist  )  [inline]
 

Definition at line 65 of file kexidbfieldlist.h.

const QString KexiDBFieldList::getClassName  )  const [virtual]
 

Definition at line 56 of file kexidbfieldlist.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:51:07 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003