QxOrm  1.5.0
C++ Object Relational Mapping library

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.


Defines

#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.


Define Documentation

#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)); \
if (! x && ! y) { throw qx::dao::sql_error(QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR); }

Definition at line 64 of file QxRepository.h.

#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.

#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.

#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.