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

#include <UT_ORMField.h>

+ Inheritance diagram for UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >:

Public Types

using model_t = typename ForeignKey::model_t
 
using field_t = ForeignKey
 
using id_t = typename ForeignKey::foreign_key_t
 

Public Member Functions

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

Static Public Member Functions

static UT_ORMFieldColumn createColumn (const UT_StringHolder &name, ForeignKey Cls::*member_ptr, unsigned props, UT_ORMColumn::OnDelete ondelete)
 

Protected Member Functions

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

Detailed Description

template<typename Cls, typename ForeignKey>
class UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >

Definition at line 234 of file UT_ORMField.h.

Member Typedef Documentation

template<typename Cls , typename ForeignKey >
using UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::field_t = ForeignKey

Definition at line 238 of file UT_ORMField.h.

template<typename Cls , typename ForeignKey >
using UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::id_t = typename ForeignKey::foreign_key_t

Definition at line 239 of file UT_ORMField.h.

template<typename Cls , typename ForeignKey >
using UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::model_t = typename ForeignKey::model_t

Definition at line 237 of file UT_ORMField.h.

Constructor & Destructor Documentation

template<typename Cls , typename ForeignKey >
UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::UT_ORMForeignKeyFieldAdapter ( ForeignKey Cls::*  member_ptr)
inline

Definition at line 241 of file UT_ORMField.h.

Member Function Documentation

template<typename Cls , typename ForeignKey >
void UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::bind ( void obj,
UT_SqlStatement stmt,
int  bind_index,
UT_ErrorCode ec 
)
inlineoverridevirtual

Implements UT_IORMFieldAdapter.

Definition at line 268 of file UT_ORMField.h.

template<typename Cls , typename ForeignKey >
static UT_ORMFieldColumn UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::createColumn ( const UT_StringHolder name,
ForeignKey Cls::*  member_ptr,
unsigned  props,
UT_ORMColumn::OnDelete  ondelete 
)
inlinestatic

Definition at line 245 of file UT_ORMField.h.

template<typename Cls , typename ForeignKey >
ForeignKey& UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::field ( void obj)
inlineprotected

Definition at line 294 of file UT_ORMField.h.

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

Implements UT_IORMFieldAdapter.

Definition at line 277 of file UT_ORMField.h.

template<typename Cls , typename ForeignKey >
void UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::onDelete ( void obj,
UT_ORMColumn::OnDelete  ondelete,
UT_ErrorCode ec 
)
inlineoverridevirtual

Reimplemented from UT_IORMFieldAdapter.

Definition at line 283 of file UT_ORMField.h.

template<typename Cls , typename ForeignKey >
UT_ORMColumn::Type UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >::sqlType ( ) const
inlineoverridevirtual

Implements UT_IORMFieldAdapter.

Definition at line 264 of file UT_ORMField.h.


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