kexi
KexiDB::LookupFieldSchema::RowSource Class Reference
#include <lookupfieldschema.h>
Detailed Description
Row source information that can be specified for the lookup field schema.Definition at line 60 of file lookupfieldschema.h.
Public Types | |
enum | Type { NoType, Table, Query, SQLStatement, ValueList, FieldList } |
Public Member Functions | |
Type | type () const |
void | setType (Type type) |
QString | typeName () const |
void | setTypeByName (const QString &typeName) |
QString | name () const |
void | setName (const QString &name) |
QStringList | values () const |
void | setValues (const QStringList &values) |
QString | debugString () const |
void | debug () const |
Member Enumeration Documentation
Row source type.
- Enumerator:
Definition at line 63 of file lookupfieldschema.h.
Member Function Documentation
Type KexiDB::LookupFieldSchema::RowSource::type | ( | ) | const [inline] |
- Returns:
- row source type: table, query, anonymous; in the future it will be also fixed value list and field list. The latter is basically a list of column names of a table/query, "Field List" in MSA.
Definition at line 78 of file lookupfieldschema.h.
void KexiDB::LookupFieldSchema::RowSource::setType | ( | Type | type | ) | [inline] |
Sets row source type to type.
Definition at line 81 of file lookupfieldschema.h.
QString LookupFieldSchema::RowSource::typeName | ( | ) | const |
- Returns:
- row source type name.
- See also:
- setTypeByName()
Definition at line 48 of file lookupfieldschema.cpp.
void LookupFieldSchema::RowSource::setTypeByName | ( | const QString & | typeName | ) |
Sets row source type by name using typeName. Accepted (cast sensitive) names are "table", "query", "sql", "valuelist", "fieldlist". For other value NoType type is set.
Definition at line 61 of file lookupfieldschema.cpp.
QString KexiDB::LookupFieldSchema::RowSource::name | ( | ) | const [inline] |
- Returns:
- a string for row source: table name, query name or anonymous query provided as KEXISQL string. If rowSourceType() is a ValueList, rowSourceValues() should be used instead. If rowSourceType() is a FieldList, rowSource() should return table or query name.
Definition at line 95 of file lookupfieldschema.h.
void LookupFieldSchema::RowSource::setName | ( | const QString & | name | ) |
QStringList LookupFieldSchema::RowSource::values | ( | ) | const |
- Returns:
- row source values specified if type() is ValueList.
Definition at line 77 of file lookupfieldschema.cpp.
void LookupFieldSchema::RowSource::setValues | ( | const QStringList & | values | ) |
Sets row source values used if type() is ValueList. Using it clears name (see name()).
Definition at line 82 of file lookupfieldschema.cpp.
QString LookupFieldSchema::RowSource::debugString | ( | ) | const |
void LookupFieldSchema::RowSource::debug | ( | ) | const |
Shows debug information.
Definition at line 97 of file lookupfieldschema.cpp.
The documentation for this class was generated from the following files: