kexi
KexiDB::FieldList Class Reference
#include <fieldlist.h>
Inheritance diagram for KexiDB::FieldList:

Detailed Description
Helper class that stores list of fields.
Definition at line 37 of file fieldlist.h.
Public Member Functions | |
FieldList (bool owner=false) | |
FieldList (const FieldList &fl) | |
virtual | ~FieldList () |
uint | fieldCount () const |
FieldList & | addField (Field *field) |
virtual FieldList & | insertField (uint index, Field *field) |
virtual void | removeField (KexiDB::Field *field) |
Field * | field (uint id) |
virtual Field * | field (const QString &name) |
bool | hasField (const Field *field) |
int | indexOf (const Field *field) |
QStringList | names () const |
Field::ListIterator | fieldsIterator () const |
Field::List * | fields () |
Field::List * | autoIncrementFields () |
bool | isOwner () const |
virtual void | clear () |
virtual QString | debugString () |
void | debug () |
FieldList * | subList (const QString &n1, const QString &n2=QString::null, const QString &n3=QString::null, const QString &n4=QString::null, const QString &n5=QString::null, const QString &n6=QString::null, const QString &n7=QString::null, const QString &n8=QString::null, const QString &n9=QString::null, const QString &n10=QString::null, const QString &n11=QString::null, const QString &n12=QString::null, const QString &n13=QString::null, const QString &n14=QString::null, const QString &n15=QString::null, const QString &n16=QString::null, const QString &n17=QString::null, const QString &n18=QString::null) |
FieldList * | subList (const QStringList &list) |
QString | sqlFieldsList (Driver *driver) |
Static Public Member Functions | |
static QString | sqlFieldsList (Field::List *list, Driver *driver) |
Protected Attributes | |
Field::List | m_fields |
QDict< Field > | m_fields_by_name |
Field::List * | m_autoinc_fields |
Constructor & Destructor Documentation
|
Creates empty list of fields. If owner is true, the list will be owner of any added field, what means that these field will be removed on the list destruction. Otherwise, the list just points any field that was added.
Definition at line 29 of file fieldlist.cpp. |
|
Copy constructor. Definition at line 38 of file fieldlist.cpp. |
|
Destroys the list. If the list owns fields (see constructor), these are also deleted. Definition at line 53 of file fieldlist.cpp. |
Member Function Documentation
|
Adds field at the and of field list. Reimplemented in KexiDB::IndexSchema. Definition at line 85 of file fieldlist.cpp. |
|
Reimplemented in KexiDB::QuerySchema. Definition at line 222 of file fieldlist.cpp. |
|
Removes all fields from the list, clears name. Reimplemented in KexiDB::QuerySchema, and KexiDB::TableSchema. Definition at line 58 of file fieldlist.cpp. |
|
Shows debug information about all fields in the list. Definition at line 125 of file fieldlist.cpp. |
|
Reimplemented in KexiDB::IndexSchema, KexiDB::QuerySchema, and KexiDB::TableSchema. Definition at line 105 of file fieldlist.cpp. |
|
Reimplemented in KexiDB::QuerySchema. Definition at line 100 of file fieldlist.cpp. |
|
Definition at line 74 of file fieldlist.h. |
|
Definition at line 56 of file fieldlist.h. |
|
Definition at line 80 of file fieldlist.h. |
|
Definition at line 84 of file fieldlist.h. |
|
Inserts field into a specified position (index). Note: You can reimplement this method but you should still call this implementation in your subclass. Reimplemented in KexiDB::QuerySchema, and KexiDB::TableSchema. Definition at line 68 of file fieldlist.cpp. |
|
Definition at line 97 of file fieldlist.h. |
|
Definition at line 183 of file fieldlist.cpp. |
|
Removes field from the field list. Use with care. Note: You can reimplement this method but you should still call this implementation in your subclass. Reimplemented in KexiDB::QuerySchema, and KexiDB::TableSchema. Definition at line 90 of file fieldlist.cpp. |
|
Like above, but thsi is convenient static function, so you can pass any list here. Definition at line 195 of file fieldlist.cpp. |
|
Definition at line 213 of file fieldlist.cpp. |
|
Like above, but with a QStringList Definition at line 173 of file fieldlist.cpp. |
|
Creates and returns list that contain fields selected by name. At least field (exising on this list) should be selected, otherwise NULL is returned. Returned FieldList object is not owned by any parent (so you need to destroy yourself) and Field objects included in it are not owned by it (but still as before, by 'this' object). Returned list can be usable e.g. as argument for Connection::insertRecord(). Definition at line 138 of file fieldlist.cpp. |
Member Data Documentation
|
Fields collected by name. Unused by QuerySchema.
Definition at line 142 of file fieldlist.h. |
The documentation for this class was generated from the following files: