QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

Repository to provide a common interface to communicate with database. More...

Go to the source code of this file.

Classes

class  qx::QxRepository< T >
 qx::QxRepository<T> : repository to provide a common interface to communicate with database More...
 
struct  qx::QxRepository< T >::qxVerifyPointer< bIsQObject, dummy >
 
struct  qx::QxRepository< T >::qxVerifyPointer< true, dummy >
 

Namespaces

namespace  qx
 Root namespace for all QxOrm library features.
 

Macros

#define QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR   QSqlError("[QxOrm] qx::QxRepository<T> : 'invalid collection pointer, dynamic_cast failed'", "", QSqlError::UnknownError)
 
#define QX_REPOSITORY_POINTER_DYNAMIC_CAST_ERROR   QSqlError("[QxOrm] qx::QxRepository<T> : 'invalid pointer, dynamic_cast failed'", "", QSqlError::UnknownError)
 
#define QX_REPOSITORY_QOBJECT_BASE_CLASS_ERROR   QSqlError("[QxOrm] qx::QxRepository<T> : 'invalid pointer, need to inherit from QObject class to use qx::IxRepository interface'", "", QSqlError::UnknownError)
 
#define QX_REPOSITORY_CAST_COLLECTION
 

Functions

template<class T >
void qx::register_repository (const QString &sKey)
 

Detailed Description

Repository to provide a common interface to communicate with database.

Author
Lionel Marty

Definition in file QxRepository.h.

Macro Definition Documentation

◆ QX_REPOSITORY_CAST_COLLECTION

#define QX_REPOSITORY_CAST_COLLECTION
Value:
type_collection_qt * x = dynamic_cast<type_collection_qt *>(p); \
type_collection_boost * y = (x ? NULL : dynamic_cast<type_collection_boost *>(p)); \
#define QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR
qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library
Definition QxSqlError.h:61

Definition at line 64 of file QxRepository.h.

◆ QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR

#define QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR   QSqlError("[QxOrm] qx::QxRepository<T> : 'invalid collection pointer, dynamic_cast failed'", "", QSqlError::UnknownError)

Definition at line 59 of file QxRepository.h.

◆ QX_REPOSITORY_POINTER_DYNAMIC_CAST_ERROR

#define QX_REPOSITORY_POINTER_DYNAMIC_CAST_ERROR   QSqlError("[QxOrm] qx::QxRepository<T> : 'invalid pointer, dynamic_cast failed'", "", QSqlError::UnknownError)

Definition at line 60 of file QxRepository.h.

◆ QX_REPOSITORY_QOBJECT_BASE_CLASS_ERROR

#define QX_REPOSITORY_QOBJECT_BASE_CLASS_ERROR   QSqlError("[QxOrm] qx::QxRepository<T> : 'invalid pointer, need to inherit from QObject class to use qx::IxRepository interface'", "", QSqlError::UnknownError)

Definition at line 61 of file QxRepository.h.