|
Nebula
|
#include <column.h>
Describes a column in a database table.
Mainly a wrapper around attribute id, but contains additional data, like if the column should be indexed, or if it contains a primary key.
Public Types | |
| enum | Type { Default , Primary , Indexed } |
| column types More... | |
Public Member Functions | |
| Column () | |
| default constructor | |
| Column (const Attr::AttrId &attrId, Type=Default) | |
| construct from attribute id | |
| void | SetAttrId (const Attr::AttrId &attrId) |
| set attribute id (overrides name, fourcc, type and access mode) | |
| const Attr::AttrId & | GetAttrId () const |
| get attribute id | |
| const Util::String & | GetName () const |
| get column name | |
| const Util::FourCC & | GetFourCC () const |
| get column fourcc | |
| Attr::ValueType | GetValueType () const |
| get column value type | |
| Attr::AccessMode | GetAccessMode () const |
| get column access mode | |
| void | SetType (Type t) |
| set column type | |
| Type | GetType () const |
| get column type | |
| void | SetCommitted (bool b) |
| set to true when the column is in-sync with the database | |
| bool | IsCommitted () const |
| return true if the column has been sync'd with the database | |
Private Attributes | |
| Attr::AttrId | attrId |
| Type | type |
| bool | committed |
| enum Db::Column::Type |
| Db::Column::Column | ( | ) |
default constructor
| Db::Column::Column | ( | const Attr::AttrId & | attrId, |
| Type | t = Default ) |
construct from attribute id
|
inline |
get column access mode
|
inline |
get attribute id
|
inline |
get column fourcc
|
inline |
get column name
|
inline |
get column type
|
inline |
get column value type
|
inline |
return true if the column has been sync'd with the database
|
inline |
set attribute id (overrides name, fourcc, type and access mode)
|
inline |
set to true when the column is in-sync with the database
|
inline |
set column type
|
private |
|
private |
|
private |