10 #ifndef GUARD_DBCOLUMN_H_INCLUDE
11 #define GUARD_DBCOLUMN_H_INCLUDE
13 #include <dbstruct/dbstruct-config.h>
99 typedef QVariant (*Callback) (
102 const QSqlRecord & rec,
120 QString default_value_;
140 const QString & col_name,
144 const QString & col_label,
148 const QString & default_value,
149 const QString & format,
152 const QString & foreign_table,
153 const QString & foreign_key,
154 const QString & foreign_ref,
169 return !foreign_table_.isEmpty();
175 return virtrefcol_ != -1;
181 return datatype_ == DTY_CALLBACK;
187 const QSqlRecord & rec,
188 int role = Qt::DisplayRole,
189 void * user_data = NULL)
const;
193 const QVariant &original_value)
const;
201 #endif // GUARD_DBCOLUMN_H_INCLUDE
DataType
Definition: dbcolumn.h:36
virtual Type type() const
The type of this object.
Definition: dbcolumn.h:162
QString foreign_table_
Definition: dbcolumn.h:123
QChar fill_char_
Definition: dbcolumn.h:131
Definition: dbcolumn.h:32
QString original_format_
Definition: dbcolumn.h:128
ForeignBehaviour
Definition: dbcolumn.h:31
ForeignBehaviour foreign_behaviour_
Definition: dbcolumn.h:126
bool isDynamic() const
Tell if this column is a virtual one.
Definition: dbcolumn.h:180
ColFormat format_
Definition: dbcolumn.h:130
Declarations for DbObject class.
Type
The types of objects that use this class as a base.
Definition: dbobject.h:33
QString foreign_key_
Definition: dbcolumn.h:124
The columnure of a database.
Definition: dbcolumn.h:27
char nr_format_
Definition: dbcolumn.h:132
bool isVirtual() const
Tell if this column is a virtual one.
Definition: dbcolumn.h:174
bool isForeignKey() const
Tell if this column has a foreign key.
Definition: dbcolumn.h:168
A table or view in a database.
Definition: dbtaew.h:24
int precision_
Definition: dbcolumn.h:133
QString foreign_ref_
Definition: dbcolumn.h:125
Definition: dbobject.h:37
The objecture of a database.
Definition: dbobject.h:28
Definition: dbcolumn.h:74