|
HDK
|
#include <UT_ORMContentType.h>
Inheritance diagram for UT_ORMContentType:Classes | |
| class | Meta |
Public Member Functions | |
| UT_ORMContentType (const UT_ORMModelMeta &meta=metaInfo()) | |
| UT_ORMContentType (const UT_StringHolder &ns, const UT_StringHolder &model) | |
| void | setModelName (const UT_StringHolder &name) |
| void | setNamespace (const UT_StringHolder &ns) |
| int | id () const |
| const UT_StringHolder & | contentTypeNamespace () const |
| const UT_StringHolder & | modelName () const |
Public Member Functions inherited from UT_ORMModel< UT_ORMContentType > | |
| UT_ORMModel (const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) | |
| UT_ORMModel (const UT_ORMModel &)=default | |
| virtual | ~UT_ORMModel ()=default |
| UT_ORMModel & | operator= (const UT_ORMModel &)=default |
| bool | save (UT_ErrorCode &ec, bool force_insert=false, bool force_update=false) |
| void | remove (UT_ErrorCode &ec) |
| const UT_ORMModelMeta & | meta () const |
Public Member Functions inherited from UT_ORMBaseModel | |
| bool | isAdding_ () const |
Static Public Member Functions | |
| static UT_Optional < UT_ORMContentType > | findFromMeta (const UT_ORMModelMeta &meta, UT_ErrorCode &ec, const UT_StringHolder &ns="sidefx") |
| static UT_Optional < UT_ORMContentType > | findByNaturalKey (const UT_StringHolder &ns, const UT_StringHolder &table_name, UT_ErrorCode &ec) |
Static Public Member Functions inherited from UT_ORMModel< UT_ORMContentType > | |
| static UT_Array < UT_ORMContentType > | fetch (const std::initializer_list< UT::orm::FilterArg > &args, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static UT_Optional < UT_ORMContentType > | fetch (const PK &pk, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static UT_Array < UT_ORMContentType > | fetchAll (UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static UT_Optional < UT_ORMContentType > | filter (std::initializer_list< UT::orm::FilterArg > &&args, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static std::pair < UT_ORMContentType, bool > | getOrCreate (const std::initializer_list< UT::orm::FilterArg > &args, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static UT_Optional < UT_ORMContentType > | create (const std::initializer_list< UT::orm::FilterArg > &args, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static UT_Array < UT_ORMContentType > | bulkFetch (const ArrayT &items, UT_ErrorCode &ec, const UT_StringRef &col_name=UT_StringHolder::theEmptyString, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static void | bulkSave (const UT_Array< UT_ORMContentType > &items, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
| static UT_ORMContentType | fromDB (Args &&...args) |
| static UT_ORMContentType | fromDB (const UT_ORMModelMeta &meta, Args &&...args) |
| static bool | exists (const std::initializer_list< UT::orm::FilterArg > &args, UT_ErrorCode &ec, const UT_ORMModelMeta &meta=UT_ORMContentType::metaInfo()) |
Additional Inherited Members | |
Protected Attributes inherited from UT_ORMModel< UT_ORMContentType > | |
| std::reference_wrapper< const UT_ORMModelMeta > | myModelMeta |
Protected Attributes inherited from UT_ORMBaseModel | |
| bool | myOrmAdding = true |
A simple mechanism to link models to unrelated concepts. When a model is added or removed a content-type is inserted. If you have a model that applies to another model indirectly this allows that model to be added/removed by the foreign key to this content type. It would also allow for backtracking as you could lookup the model from the content type. The primary purpose is to remove some of the admin work required to have two models indirectly related to each other.
Definition at line 28 of file UT_ORMContentType.h.
|
inline |
Definition at line 43 of file UT_ORMContentType.h.
|
inline |
Definition at line 47 of file UT_ORMContentType.h.
|
inline |
Definition at line 66 of file UT_ORMContentType.h.
|
inlinestatic |
Definition at line 84 of file UT_ORMContentType.h.
|
inlinestatic |
Definition at line 75 of file UT_ORMContentType.h.
|
inline |
Definition at line 61 of file UT_ORMContentType.h.
|
inline |
Definition at line 70 of file UT_ORMContentType.h.
|
inline |
Definition at line 52 of file UT_ORMContentType.h.
|
inline |
Definition at line 56 of file UT_ORMContentType.h.