#include <UT_ORMColumn.h>
|
enum | Type {
Type::Error,
Type::Nullptr,
Type::String,
Type::Int32,
Type::Int64,
Type::Bool,
Type::Real,
Type::DateTime,
Type::Blob
} |
|
enum | Properties {
Empty = 0,
PrimaryKey = 1 << 1,
Unique = 1 << 2,
NotNull = 1 << 3,
ForeignKey = 1 << 4,
AutoIncrement = 1 << 5
} |
|
enum | OnDelete { DoNothing = 0,
Cascade,
SetNull
} |
|
Definition at line 24 of file UT_ORMColumn.h.
Enumerator |
---|
DoNothing |
|
Cascade |
|
SetNull |
|
Definition at line 50 of file UT_ORMColumn.h.
Enumerator |
---|
Empty |
|
PrimaryKey |
|
Unique |
|
NotNull |
|
ForeignKey |
|
AutoIncrement |
|
Definition at line 40 of file UT_ORMColumn.h.
Enumerator |
---|
Error |
|
Nullptr |
|
String |
|
Int32 |
|
Int64 |
|
Bool |
|
Real |
|
DateTime |
|
Blob |
|
Definition at line 27 of file UT_ORMColumn.h.
UT_ORMColumn::UT_ORMColumn |
( |
| ) |
|
|
default |
UT_ORMColumn::UT_ORMColumn |
( |
const UT_StringHolder & |
name, |
|
|
Type |
type, |
|
|
unsigned |
props = Properties::Empty , |
|
|
OnDelete |
on_delete = OnDelete::DoNothing |
|
) |
| |
|
inline |
bool UT_ORMColumn::isAutoIncrement |
( |
| ) |
const |
|
inline |
bool UT_ORMColumn::isForeignKey |
( |
| ) |
const |
|
inline |
bool UT_ORMColumn::isNotNull |
( |
| ) |
const |
|
inline |
bool UT_ORMColumn::isPrimaryKey |
( |
| ) |
const |
|
inline |
bool UT_ORMColumn::isUnique |
( |
| ) |
const |
|
inline |
OnDelete UT_ORMColumn::onDelete |
( |
| ) |
const |
|
inline |
bool UT_ORMColumn::operator== |
( |
const UT_ORMColumn & |
rhs | ) |
const |
|
inline |
unsigned UT_ORMColumn::properties |
( |
| ) |
const |
|
inline |
Type UT_ORMColumn::type |
( |
| ) |
const |
|
inline |
OnDelete UT_ORMColumn::myOnDelete = OnDelete::DoNothing |
|
protected |
unsigned UT_ORMColumn::myProperties = Properties::Empty |
|
protected |
Type UT_ORMColumn::myType |
|
protected |
The documentation for this class was generated from the following file: