HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_IORMFieldAdapter Class Referenceabstract

#include <UT_ORMField.h>

+ Inheritance diagram for UT_IORMFieldAdapter:

Public Member Functions

virtual ~UT_IORMFieldAdapter ()=default
 
 UT_IORMFieldAdapter (const UT_IORMFieldAdapter &)=default
 
UT_IORMFieldAdapteroperator= (const UT_IORMFieldAdapter &)=default
 
virtual UT_ORMColumn::Type sqlType () const =0
 
virtual void bind (const void *obj, UT_SqlStatement &cursor, int bind_index, UT_ErrorCode &ec)=0
 
virtual void load (void *obj, UT_SqlStatement &cursor, int index, UT_ErrorCode &ec)=0
 
virtual void onDelete (void *obj, UT_ORMColumn::OnDelete ondelete, UT_ErrorCode &ec)
 
virtual bool isSame (const void *obj_left, const void *obj_right, UT_ErrorCode &ec) const =0
 
template<typename Cls , typename MemberT >
void setValue (Cls &obj, const MemberT &member_value, UT_ErrorCode &ec)
 
template<typename Cls , typename MemberT >
void getValue (const Cls &obj, MemberT &member_value, UT_ErrorCode &ec)
 

Protected Types

typedef void(* setter_func_t )(UT_IORMFieldAdapter *adapter, void *obj, const void *value, UT_ErrorCode &ec)
 
typedef void(* getter_func_t )(UT_IORMFieldAdapter *adapter, const void *obj, void *value, UT_ErrorCode &ec)
 

Protected Member Functions

 UT_IORMFieldAdapter (setter_func_t setter, getter_func_t getter)
 

Protected Attributes

setter_func_t mySetter
 
getter_func_t myGetter
 

Detailed Description

Definition at line 46 of file UT_ORMField.h.

Member Typedef Documentation

typedef void(* UT_IORMFieldAdapter::getter_func_t)(UT_IORMFieldAdapter *adapter, const void *obj, void *value, UT_ErrorCode &ec)
protected

Definition at line 96 of file UT_ORMField.h.

typedef void(* UT_IORMFieldAdapter::setter_func_t)(UT_IORMFieldAdapter *adapter, void *obj, const void *value, UT_ErrorCode &ec)
protected

Definition at line 91 of file UT_ORMField.h.

Constructor & Destructor Documentation

virtual UT_IORMFieldAdapter::~UT_IORMFieldAdapter ( )
virtualdefault
UT_IORMFieldAdapter::UT_IORMFieldAdapter ( const UT_IORMFieldAdapter )
default
UT_IORMFieldAdapter::UT_IORMFieldAdapter ( setter_func_t  setter,
getter_func_t  getter 
)
inlineprotected

Definition at line 102 of file UT_ORMField.h.

Member Function Documentation

virtual void UT_IORMFieldAdapter::bind ( const void obj,
UT_SqlStatement cursor,
int  bind_index,
UT_ErrorCode ec 
)
pure virtual
template<typename Cls , typename MemberT >
void UT_IORMFieldAdapter::getValue ( const Cls &  obj,
MemberT &  member_value,
UT_ErrorCode ec 
)
inline

Definition at line 85 of file UT_ORMField.h.

virtual bool UT_IORMFieldAdapter::isSame ( const void obj_left,
const void obj_right,
UT_ErrorCode ec 
) const
pure virtual
virtual void UT_IORMFieldAdapter::load ( void obj,
UT_SqlStatement cursor,
int  index,
UT_ErrorCode ec 
)
pure virtual
virtual void UT_IORMFieldAdapter::onDelete ( void obj,
UT_ORMColumn::OnDelete  ondelete,
UT_ErrorCode ec 
)
inlinevirtual

Reimplemented in UT_ORMForeignKeyFieldAdapter< Cls, ForeignKey >.

Definition at line 66 of file UT_ORMField.h.

UT_IORMFieldAdapter& UT_IORMFieldAdapter::operator= ( const UT_IORMFieldAdapter )
default
template<typename Cls , typename MemberT >
void UT_IORMFieldAdapter::setValue ( Cls &  obj,
const MemberT &  member_value,
UT_ErrorCode ec 
)
inline

Definition at line 79 of file UT_ORMField.h.

virtual UT_ORMColumn::Type UT_IORMFieldAdapter::sqlType ( ) const
pure virtual

Member Data Documentation

getter_func_t UT_IORMFieldAdapter::myGetter
protected

Definition at line 107 of file UT_ORMField.h.

setter_func_t UT_IORMFieldAdapter::mySetter
protected

Definition at line 106 of file UT_ORMField.h.


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