HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMModel< T > Class Template Reference

#include <UT_SQLORM.h>

Public Member Functions

 UT_ORMModel ()=default
 
virtual ~UT_ORMModel ()=default
 
 UT_ORMModel (const UT_ORMModel &)=default
 
UT_ORMModeloperator= (const UT_ORMModel &)=default
 
bool save (UT_ErrorCode &ec, bool force_insert=false, bool force_update=false)
 
void remove (UT_ErrorCode &ec)
 
bool update (UT_ErrorCode &ec)
 
bool hasSavedBefore () const
 

Static Public Member Functions

template<typename PK >
static UT_Optional< Tfetch (const PK &pk, UT_ErrorCode &ec)
 
static UT_Array< TfetchAll (UT_ErrorCode &ec)
 

Protected Attributes

bool myHasSavedBefore = false
 

Friends

class UT_ORMModelMeta
 

Detailed Description

template<typename T>
class UT_ORMModel< T >

Definition at line 76 of file UT_SQLORM.h.

Constructor & Destructor Documentation

template<typename T >
UT_ORMModel< T >::UT_ORMModel ( )
default
template<typename T >
virtual UT_ORMModel< T >::~UT_ORMModel ( )
virtualdefault
template<typename T >
UT_ORMModel< T >::UT_ORMModel ( const UT_ORMModel< T > &  )
default

Member Function Documentation

template<typename T >
template<typename PK >
static UT_Optional<T> UT_ORMModel< T >::fetch ( const PK &  pk,
UT_ErrorCode ec 
)
inlinestatic

Definition at line 105 of file UT_SQLORM.h.

template<typename T >
static UT_Array<T> UT_ORMModel< T >::fetchAll ( UT_ErrorCode ec)
inlinestatic

Definition at line 111 of file UT_SQLORM.h.

template<typename T >
bool UT_ORMModel< T >::hasSavedBefore ( ) const
inline

Definition at line 117 of file UT_SQLORM.h.

template<typename T >
UT_ORMModel& UT_ORMModel< T >::operator= ( const UT_ORMModel< T > &  )
default
template<typename T >
void UT_ORMModel< T >::remove ( UT_ErrorCode ec)
inline

Definition at line 93 of file UT_SQLORM.h.

template<typename T >
bool UT_ORMModel< T >::save ( UT_ErrorCode ec,
bool  force_insert = false,
bool  force_update = false 
)
inline

Definition at line 85 of file UT_SQLORM.h.

template<typename T >
bool UT_ORMModel< T >::update ( UT_ErrorCode ec)
inline

Definition at line 98 of file UT_SQLORM.h.

Friends And Related Function Documentation

template<typename T >
friend class UT_ORMModelMeta
friend

Definition at line 78 of file UT_SQLORM.h.

Member Data Documentation

template<typename T >
bool UT_ORMModel< T >::myHasSavedBefore = false
protected

Definition at line 120 of file UT_SQLORM.h.


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