#include <UT_SQLORM.h>
|
| UT_ORMModelMeta (const UT_StringHolder &name, UT_SqlOrm *orm=nullptr) |
|
virtual | ~UT_ORMModelMeta ()=default |
|
| UT_NON_COPYABLE (UT_ORMModelMeta) |
|
void | migrate (UT_SqlOrm &orm, UT_ORMMigrationBuilder &builder) const |
| Must always be called PRIOR to running the application. More...
|
|
void | build () |
| Call to build out all of your meta information. More...
|
|
virtual void | doMigrate (UT_ORMMigrationBuilder &builder) const =0 |
|
template<typename Cls , typename FieldT > |
void | addAutoField (const UT_StringHolder &name, FieldT Cls::*field, unsigned props=UT_ORMColumn::Empty) |
|
template<typename Cls , typename FieldT > |
void | addField (const UT_StringHolder &name, FieldT Cls::*field, unsigned props=UT_ORMColumn::Empty) |
|
template<typename Cls , typename ForeignModel > |
void | addField (const UT_StringHolder &name, UT_ORMForeignKeyField< ForeignModel > Cls::*field, unsigned props=UT_ORMColumn::Empty, UT_ORMColumn::OnDelete ondelete_type=UT_ORMColumn::OnDelete::DoNothing) |
|
const UT_StringHolder & | tableName () const |
|
const UT_ORMFieldColumn * | primaryKey () const |
|
const UT_Array
< UT_ORMFieldColumn > & | columns () const |
|
template<typename T > |
bool | save (T &obj, UT_ErrorCode &ec, bool force_insert=false, bool force_update=false) const |
|
template<typename T > |
void | remove (T &obj, UT_ErrorCode &ec) const |
|
template<typename T > |
bool | update (T &obj, UT_ErrorCode &ec) const |
|
template<typename T , typename PK > |
UT_Optional< T > | fetch (const PK &pk, UT_ErrorCode &ec) const |
|
template<typename T > |
UT_Array< T > | fetchAll (UT_ErrorCode &ec) const |
|
Definition at line 123 of file UT_SQLORM.h.
virtual UT_ORMModelMeta::~UT_ORMModelMeta |
( |
| ) |
|
|
virtualdefault |
template<typename Cls , typename FieldT >
template<typename Cls , typename FieldT >
template<typename Cls , typename ForeignModel >
void UT_ORMModelMeta::build |
( |
| ) |
|
|
inline |
Call to build out all of your meta information.
Definition at line 137 of file UT_SQLORM.h.
void UT_ORMModelMeta::configureInternals_ |
( |
| ) |
|
|
protected |
Configure any cacheable information that is used often.
virtual void UT_ORMModelMeta::doBuild |
( |
| ) |
|
|
protectedpure virtual |
template<typename T , typename PK >
Must always be called PRIOR to running the application.
template<typename T >
bool UT_ORMModelMeta::save |
( |
T & |
obj, |
|
|
UT_ErrorCode & |
ec, |
|
|
bool |
force_insert = false , |
|
|
bool |
force_update = false |
|
) |
| const |
template<typename T >
bool UT_ORMModelMeta::update |
( |
T & |
obj, |
|
|
UT_ErrorCode & |
ec |
|
) |
| const |
bool UT_ORMModelMeta::myHasBuilt = false |
|
protected |
bool UT_ORMModelMeta::myIsUsingAutoIncPK = false |
|
protected |
The documentation for this class was generated from the following file: