HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMBasicFieldAdapter< Cls, MemberT > Class Template Reference

#include <UT_ORMField.h>

+ Inheritance diagram for UT_ORMBasicFieldAdapter< Cls, MemberT >:

Public Types

using model_t = Cls
 
using field_t = MemberT
 

Public Member Functions

 UT_ORMBasicFieldAdapter (MemberT Cls::*member_ptr)
 
UT_ORMColumn::Type sqlType () const override
 
void bind (void *obj, UT_SqlStatement &stmt, int index, UT_ErrorCode &ec) override
 
void load (void *obj, UT_SqlStatement &stmt, int index, UT_ErrorCode &ec) override
 
void setValue (void *obj, const MemberT &t)
 
MemberT & getValue (void *obj)
 
- Public Member Functions inherited from UT_IORMFieldAdapter
virtual ~UT_IORMFieldAdapter ()=default
 
 UT_IORMFieldAdapter (const UT_IORMFieldAdapter &)=default
 
UT_IORMFieldAdapteroperator= (const UT_IORMFieldAdapter &)=default
 
virtual void onDelete (void *obj, UT_ORMColumn::OnDelete ondelete, UT_ErrorCode &ec)
 

Static Public Member Functions

static UT_ORMFieldColumn createColumn (const UT_StringHolder &name, MemberT Cls::*member_ptr, unsigned props)
 

Protected Member Functions

MemberT & field (void *obj)
 
- Protected Member Functions inherited from UT_IORMFieldAdapter
 UT_IORMFieldAdapter ()=default
 

Detailed Description

template<typename Cls, typename MemberT>
class UT_ORMBasicFieldAdapter< Cls, MemberT >

Definition at line 91 of file UT_ORMField.h.

Member Typedef Documentation

template<typename Cls , typename MemberT >
using UT_ORMBasicFieldAdapter< Cls, MemberT >::field_t = MemberT

Definition at line 95 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
using UT_ORMBasicFieldAdapter< Cls, MemberT >::model_t = Cls

Definition at line 94 of file UT_ORMField.h.

Constructor & Destructor Documentation

template<typename Cls , typename MemberT >
UT_ORMBasicFieldAdapter< Cls, MemberT >::UT_ORMBasicFieldAdapter ( MemberT Cls::*  member_ptr)
inline

Definition at line 97 of file UT_ORMField.h.

Member Function Documentation

template<typename Cls , typename MemberT >
void UT_ORMBasicFieldAdapter< Cls, MemberT >::bind ( void obj,
UT_SqlStatement stmt,
int  index,
UT_ErrorCode ec 
)
inlineoverridevirtual

Implements UT_IORMFieldAdapter.

Definition at line 116 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
static UT_ORMFieldColumn UT_ORMBasicFieldAdapter< Cls, MemberT >::createColumn ( const UT_StringHolder name,
MemberT Cls::*  member_ptr,
unsigned  props 
)
inlinestatic

Definition at line 101 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
MemberT& UT_ORMBasicFieldAdapter< Cls, MemberT >::field ( void obj)
inlineprotected

Definition at line 140 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
MemberT& UT_ORMBasicFieldAdapter< Cls, MemberT >::getValue ( void obj)
inline

Definition at line 134 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
void UT_ORMBasicFieldAdapter< Cls, MemberT >::load ( void obj,
UT_SqlStatement stmt,
int  index,
UT_ErrorCode ec 
)
inlineoverridevirtual

Implements UT_IORMFieldAdapter.

Definition at line 123 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
void UT_ORMBasicFieldAdapter< Cls, MemberT >::setValue ( void obj,
const MemberT &  t 
)
inline

Definition at line 130 of file UT_ORMField.h.

template<typename Cls , typename MemberT >
UT_ORMColumn::Type UT_ORMBasicFieldAdapter< Cls, MemberT >::sqlType ( ) const
inlineoverridevirtual

Implements UT_IORMFieldAdapter.

Definition at line 112 of file UT_ORMField.h.


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