HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMCreateTableOperation Class Reference

#include <UT_ORMOperation.h>

+ Inheritance diagram for UT_ORMCreateTableOperation:

Public Member Functions

 UT_ORMCreateTableOperation ()=default
 
 UT_ORMCreateTableOperation (const UT_StringHolder &table_name)
 
const UT_StringHoldername () const override
 
void sql (const UT_SqlStatement &stmt, UT_WorkBuffer &wbuf) override
 
void upgrade (UT_SqlStatement &stmt, UT_ErrorCode &ec) override
 
void apply (UT_ORMMigrationChangeNotifier &notifier, UT_ErrorCode &ec) override
 
UT_ORMCreateTableOperationsetTableName (const UT_StringHolder &table_name)
 
UT_ORMCreateTableOperationaddField (UT_ORMColumn &&field)
 
UT_ORMColumnaddForeignField (const UT_StringHolder &name, UT_ORMColumn::Type type, const UT_StringHolder &foreign_table, const UT_StringHolder &foreign_col, unsigned props=UT_ORMColumn::Properties::Empty)
 
UT_ORMColumnaddField (const UT_StringHolder &name, UT_ORMColumn::Type type, UT_ORMColumn::Properties props=UT_ORMColumn::Properties::Empty)
 
UT_ORMColumnaddAutoField (const UT_StringHolder &name, UT_ORMColumn::Type type, UT_ORMColumn::Properties props=UT_ORMColumn::Properties::Empty)
 
- Public Member Functions inherited from UT_IORMOperation
virtual ~UT_IORMOperation ()=default
 
 UT_IORMOperation (const UT_IORMOperation &)=default
 
UT_IORMOperationoperator= (const UT_IORMOperation &)=default
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IORMOperation
 UT_IORMOperation ()=default
 

Detailed Description

Definition at line 50 of file UT_ORMOperation.h.

Constructor & Destructor Documentation

UT_ORMCreateTableOperation::UT_ORMCreateTableOperation ( )
default
UT_ORMCreateTableOperation::UT_ORMCreateTableOperation ( const UT_StringHolder table_name)
inlineexplicit

Definition at line 54 of file UT_ORMOperation.h.

Member Function Documentation

UT_ORMColumn& UT_ORMCreateTableOperation::addAutoField ( const UT_StringHolder name,
UT_ORMColumn::Type  type,
UT_ORMColumn::Properties  props = UT_ORMColumn::Properties::Empty 
)
inline

Definition at line 95 of file UT_ORMOperation.h.

UT_ORMCreateTableOperation& UT_ORMCreateTableOperation::addField ( UT_ORMColumn &&  field)
inline

Definition at line 70 of file UT_ORMOperation.h.

UT_ORMColumn& UT_ORMCreateTableOperation::addField ( const UT_StringHolder name,
UT_ORMColumn::Type  type,
UT_ORMColumn::Properties  props = UT_ORMColumn::Properties::Empty 
)
inline

Definition at line 87 of file UT_ORMOperation.h.

UT_ORMColumn& UT_ORMCreateTableOperation::addForeignField ( const UT_StringHolder name,
UT_ORMColumn::Type  type,
const UT_StringHolder foreign_table,
const UT_StringHolder foreign_col,
unsigned  props = UT_ORMColumn::Properties::Empty 
)
inline

Definition at line 75 of file UT_ORMOperation.h.

void UT_ORMCreateTableOperation::apply ( UT_ORMMigrationChangeNotifier notifier,
UT_ErrorCode ec 
)
overridevirtual

Implements UT_IORMOperation.

const UT_StringHolder& UT_ORMCreateTableOperation::name ( ) const
overridevirtual

Implements UT_IORMOperation.

UT_ORMCreateTableOperation& UT_ORMCreateTableOperation::setTableName ( const UT_StringHolder table_name)
inline

Definition at line 65 of file UT_ORMOperation.h.

void UT_ORMCreateTableOperation::sql ( const UT_SqlStatement stmt,
UT_WorkBuffer wbuf 
)
overridevirtual

Implements UT_IORMOperation.

void UT_ORMCreateTableOperation::upgrade ( UT_SqlStatement stmt,
UT_ErrorCode ec 
)
overridevirtual

Implements UT_IORMOperation.


The documentation for this class was generated from the following file: