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 databaseForwards (UT_IORMSchemaEditor &editor, const UT_ORMMigrationState &from_state, const UT_ORMMigrationState &to_state, UT_ErrorCode &ec) override
 
void stateForwards (UT_ORMMigrationState &state, UT_ErrorCode &ec) override
 
UT_ORMCreateTableOperationsetTableName (const UT_StringHolder &table_name)
 
UT_ORMCreateTableOperationaddField (UT_ORMModelStateField &&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_ORMColumn::OnDelete ondelete=UT_ORMColumn::OnDelete::Cascade)
 
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 54 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 58 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 105 of file UT_ORMOperation.h.

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

Definition at line 76 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 97 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,
UT_ORMColumn::OnDelete  ondelete = UT_ORMColumn::OnDelete::Cascade 
)
inline

Definition at line 81 of file UT_ORMOperation.h.

void UT_ORMCreateTableOperation::databaseForwards ( UT_IORMSchemaEditor editor,
const UT_ORMMigrationState from_state,
const UT_ORMMigrationState to_state,
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 71 of file UT_ORMOperation.h.

void UT_ORMCreateTableOperation::stateForwards ( UT_ORMMigrationState state,
UT_ErrorCode ec 
)
overridevirtual

Implements UT_IORMOperation.


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