Kexi API Documentation (2.0 alpha)

KexiDB::LookupFieldSchema::RowSource Class Reference

#include <lookupfieldschema.h>

List of all members.


Detailed Description

Row source information that can be specified for the lookup field schema.

Definition at line 59 of file lookupfieldschema.h.

Public Types

enum  Type {
  NoType, Table, Query, SQLStatement,
  ValueList, FieldList
}
 Row source type. More...

Public Member Functions

 RowSource ()
 ~RowSource ()
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

enum KexiDB::LookupFieldSchema::RowSource::Type
 

Row source type.

Enumeration values:
NoType  used for invalid schema
Table  table as lookup row source
Query  named query as lookup row source
SQLStatement  anonymous query as lookup row source
ValueList  a fixed list of values as lookup row source
FieldList  a list of column names from a table/query will be displayed

Definition at line 62 of file lookupfieldschema.h.


Constructor & Destructor Documentation

LookupFieldSchema::RowSource::RowSource  ) 
 

Definition at line 30 of file lookupfieldschema.cpp.

LookupFieldSchema::RowSource::~RowSource  ) 
 

Definition at line 36 of file lookupfieldschema.cpp.


Member Function Documentation

void LookupFieldSchema::RowSource::debug  )  const
 

Shows debug information.

Definition at line 97 of file lookupfieldschema.cpp.

References debugString(), and KexiDBDbg.

QString LookupFieldSchema::RowSource::debugString  )  const
 

Returns:
String for debugging purposes.

Definition at line 91 of file lookupfieldschema.cpp.

References name(), and typeName().

Referenced by debug(), and KexiDB::LookupFieldSchema::debugString().

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 94 of file lookupfieldschema.h.

Referenced by KexiDB::QuerySchema::computeFieldsExpanded(), debugString(), and KexiDB::Connection::selectStatement().

void LookupFieldSchema::RowSource::setName const QString name  ) 
 

Sets row source value.

See also:
value()

Definition at line 41 of file lookupfieldschema.cpp.

void KexiDB::LookupFieldSchema::RowSource::setType Type  type  )  [inline]
 

Sets row source type to type.

Definition at line 80 of file lookupfieldschema.h.

Referenced by setTypeByName().

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.

References NoType, Query, setType(), SQLStatement, Table, and ValueList.

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.

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 77 of file lookupfieldschema.h.

Referenced by KexiDB::QuerySchema::computeFieldsExpanded(), and KexiDB::Connection::selectStatement().

QString LookupFieldSchema::RowSource::typeName  )  const
 

Returns:
row source type name.
See also:
setTypeByName()

Definition at line 48 of file lookupfieldschema.cpp.

References Query, SQLStatement, Table, and ValueList.

Referenced by debugString().

QStringList LookupFieldSchema::RowSource::values  )  const
 

Returns:
row source values specified if type() is ValueList.

Definition at line 77 of file lookupfieldschema.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:50:46 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003