qx::QxClass<T> : concrete class of type T registered into QxOrm context (this class is a singleton and is thread-safe)
More...
Classes |
struct | implementIxPersistable_Helper |
struct | implementIxPersistable_Helper< QObject, dummy > |
struct | implementIxPersistable_Helper< qx::trait::no_base_class_defined, dummy > |
struct | invokeHelper |
struct | invokeHelper< QObject, qx::trait::no_base_class_defined, dummy > |
struct | invokeHelper< qx::trait::no_base_class_defined, qx::trait::no_base_class_defined, dummy > |
struct | invokeHelper< U, qx::trait::no_base_class_defined, dummy > |
Public Types |
enum | { is_valid_base_class = ((! std::is_same<type_base_class, T>::value) && (std::is_base_of<type_base_class, T>::value || std::is_same<type_base_class, qx::trait::no_base_class_defined>::value))
} |
typedef
qx::trait::get_primary_key< T >
::type | type_primary_key |
typedef
qx::trait::get_base_class< T >
::type | type_base_class |
typedef IxFunction::type_any_params | type_any_params |
Public Member Functions |
QxDataMemberX< T > * | dataMemberX () const |
IxFunctionX * | fctMemberX () const |
IxFunctionX * | fctStaticX () const |
IxDataMember * | id (type_primary_key T::*pDataMemberId, const QString &sKey, long lVersion=0) |
IxDataMember * | id (const QString &sKey, long lVersion) |
IxDataMember * | data (const QString &sKey, long lVersion) |
template<typename V , typename U > |
IxDataMember * | data (V U::*pData, const QString &sKey, long lVersion=0, bool bSerialize=true, bool bDao=true) |
template<typename V , typename U > |
IxSqlRelation * | relationOneToOne (V U::*pData, const QString &sKey, long lVersion=0) |
template<typename V , typename U > |
IxSqlRelation * | relationManyToOne (V U::*pData, const QString &sKey, long lVersion=0) |
template<typename V , typename U > |
IxSqlRelation * | relationOneToMany (V U::*pData, const QString &sKey, const QString &sForeignKey, long lVersion=0) |
template<typename V , typename U > |
IxSqlRelation * | relationManyToMany (V U::*pData, const QString &sKey, const QString &sExtraTable, const QString &sForeignKeyOwner, const QString &sForeignKeyDataType, long lVersion=0) |
template<typename V , typename U > |
IxDataMember * | pimpl (V U::*pData, const QString &sKey=QString("_PIMPL_")) |
template<typename U > |
IxDataMember * | id (type_primary_key U::*pDataMemberId, const QString &sKey, long lVersion, IxDataMember *pImpl) |
template<typename V , typename U > |
IxDataMember * | data (V U::*pData, const QString &sKey, long lVersion, bool bSerialize, bool bDao, IxDataMember *pImpl) |
template<typename V , typename U > |
IxSqlRelation * | relationOneToOne (V U::*pData, const QString &sKey, long lVersion, IxDataMember *pImpl) |
template<typename V , typename U > |
IxSqlRelation * | relationManyToOne (V U::*pData, const QString &sKey, long lVersion, IxDataMember *pImpl) |
template<typename V , typename U > |
IxSqlRelation * | relationOneToMany (V U::*pData, const QString &sKey, const QString &sForeignKey, long lVersion, IxDataMember *pImpl) |
template<typename V , typename U > |
IxSqlRelation * | relationManyToMany (V U::*pData, const QString &sKey, const QString &sExtraTable, const QString &sForeignKeyOwner, const QString &sForeignKeyDataType, long lVersion, IxDataMember *pImpl) |
template<typename R > |
IxFunction * | fct_0 (const typename QxFunction_0< T, R >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 > |
IxFunction * | fct_1 (const typename QxFunction_1< T, R, P1 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 > |
IxFunction * | fct_2 (const typename QxFunction_2< T, R, P1, P2 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 > |
IxFunction * | fct_3 (const typename QxFunction_3< T, R, P1, P2, P3 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 > |
IxFunction * | fct_4 (const typename QxFunction_4< T, R, P1, P2, P3, P4 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
IxFunction * | fct_5 (const typename QxFunction_5< T, R, P1, P2, P3, P4, P5 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 > |
IxFunction * | fct_6 (const typename QxFunction_6< T, R, P1, P2, P3, P4, P5, P6 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 > |
IxFunction * | fct_7 (const typename QxFunction_7< T, R, P1, P2, P3, P4, P5, P6, P7 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 > |
IxFunction * | fct_8 (const typename QxFunction_8< T, R, P1, P2, P3, P4, P5, P6, P7, P8 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 > |
IxFunction * | fct_9 (const typename QxFunction_9< T, R, P1, P2, P3, P4, P5, P6, P7, P8, P9 >::type_fct &fct, const QString &sKey) |
template<typename R > |
IxFunction * | fctStatic_0 (const typename QxFunction_0< void, R >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 > |
IxFunction * | fctStatic_1 (const typename QxFunction_1< void, R, P1 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 > |
IxFunction * | fctStatic_2 (const typename QxFunction_2< void, R, P1, P2 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 > |
IxFunction * | fctStatic_3 (const typename QxFunction_3< void, R, P1, P2, P3 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 > |
IxFunction * | fctStatic_4 (const typename QxFunction_4< void, R, P1, P2, P3, P4 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
IxFunction * | fctStatic_5 (const typename QxFunction_5< void, R, P1, P2, P3, P4, P5 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 > |
IxFunction * | fctStatic_6 (const typename QxFunction_6< void, R, P1, P2, P3, P4, P5, P6 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 > |
IxFunction * | fctStatic_7 (const typename QxFunction_7< void, R, P1, P2, P3, P4, P5, P6, P7 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 > |
IxFunction * | fctStatic_8 (const typename QxFunction_8< void, R, P1, P2, P3, P4, P5, P6, P7, P8 >::type_fct &fct, const QString &sKey) |
template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 > |
IxFunction * | fctStatic_9 (const typename QxFunction_9< void, R, P1, P2, P3, P4, P5, P6, P7, P8, P9 >::type_fct &fct, const QString &sKey) |
virtual bool | isAbstract () const |
virtual bool | implementIxPersistable () const |
virtual const std::type_info & | typeInfo () const |
virtual IxClass * | getBaseClass () const |
virtual IxValidatorX * | getAllValidator () |
Static Public Member Functions |
static qx_bool | invoke (const QString &sKey, T *pOwner, const QString ¶ms=QString(), qx::any *ret=NULL) |
static qx_bool | invoke (const QString &sKey, T *pOwner, const type_any_params ¶ms, qx::any *ret=NULL) |
static qx_bool | invokeStatic (const QString &sKey, const QString ¶ms=QString(), qx::any *ret=NULL) |
static qx_bool | invokeStatic (const QString &sKey, const type_any_params ¶ms, qx::any *ret=NULL) |
Protected Member Functions |
| QxClass () |
virtual | ~QxClass () |
Protected Attributes |
QMutex | m_oMutexClass |
| Mutex -> 'QxClass' is thread-safe.
|
Private Member Functions |
void | init () |
IxFunction * | insertFct (IxFunction_ptr pFct, const QString &sKey) |
IxFunction * | insertFctStatic (IxFunction_ptr pFct, const QString &sKey) |
void | registerClass () |
void | beforeRegisterClass () |
Friends |
class | QxSingleton< QxClass< T > > |