[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/kexiDB
From: Lucijan Busch <lucijan () kde ! org>
Date: 2003-08-25 22:28:57
[Download RAW message or body]
CVS commit by lucijan:
preparing to clean my pipe :o)
(need that stuff for the parser...)
M +24 -1 kexidbfield.h 1.19
--- koffice/kexi/kexiDB/kexidbfield.h #1.18:1.19
@@ -103,4 +103,20 @@ class KEXIDB_EXPORT KexiDBField
virtual int constraints() const;
+ /**
+ * @returns true if column is used with aggregates like 'RAND()' or \
'SUM()' + */
+ bool isAggregate() const { return m_aggregate; }
+
+ /**
+ * @returns true if this column can be read only
+ */
+ bool isReadOnly() const { return m_readOnly; }
+
+ /**
+ * @returns the 'hase' for 'SELECT foo.bar AS hase' or null if none
+ */
+ QString alias() const { return m_aliasName; }
+
+
/*!
* @returns the table.column that this field references or \
QString::null if !foreign_key() @@ -130,8 +146,12 @@ class KEXIDB_EXPORT KexiDBField
void setForeignKey(bool f);
void setNotNull(bool n);
+ void setAggregate(bool a) { m_aggregate = a; }
+ void setReadOnly(bool r) { m_readOnly = r; }
+ void setAlias(const QString &a) { m_aliasName = a; }
+
private:
QString m_table;
- QString m_name;
+ QString m_name; // resolved (if possible) in AS
QString m_reference;
ColumnType m_sqlType;
@@ -141,4 +161,7 @@ class KEXIDB_EXPORT KexiDBField
bool m_unsigned;
bool m_binary;
+ bool m_readOnly;
+ QString m_aliasName; // AS name
+ bool m_aggregate; // stuff like 'RAND()', 'SUM()', ...
QVariant m_defaultValue;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic