Akonadi::Server::Entity
Akonadi::Server::Entity Class Reference
#include <entity.h>
Public Types | |
using | Id = qint64 |
enum | RelationSide { Left , Right } |
Static Public Member Functions | |
template<typename T > | |
static bool | addToRelation (DataStore *store, qint64 leftId, qint64 rightId) |
template<typename T > | |
static bool | addToRelation (qint64 leftId, qint64 rightId) |
template<typename T > | |
static bool | clearRelation (DataStore *store, qint64 id, RelationSide side=Left) |
template<typename T > | |
static bool | clearRelation (qint64 id, RelationSide side=Left) |
template<typename T > | |
static int | count (const QString &column, const QVariant &value) |
template<typename T > | |
static int | count (DataStore *store, const QString &column, const QVariant &value) |
template<typename T > | |
static QString | joinByName (const QList< T > &list, const QString &sep) |
template<typename T > | |
static bool | relatesTo (DataStore *store, qint64 leftId, qint64 rightId) |
template<typename T > | |
static bool | relatesTo (qint64 leftId, qint64 rightId) |
template<typename T > | |
static bool | remove (const QString &column, const QVariant &value) |
template<typename T > | |
static bool | remove (DataStore *store, const QString &column, const QVariant &value) |
template<typename T > | |
static bool | removeFromRelation (DataStore *store, qint64 leftId, qint64 rightId) |
template<typename T > | |
static bool | removeFromRelation (qint64 leftId, qint64 rightId) |
Protected Member Functions | |
Entity (qint64 id) | |
qint64 | id () const |
bool | isValid () const |
void | setId (qint64 id) |
Detailed Description
Base class for classes representing database records.
It also contains low-level data access and manipulation template methods.
Member Typedef Documentation
◆ Id
Member Enumeration Documentation
◆ RelationSide
Constructor & Destructor Documentation
◆ Entity() [1/2]
|
protected |
Definition at line 16 of file entity.cpp.
◆ Entity() [2/2]
|
explicitprotected |
Definition at line 21 of file entity.cpp.
◆ ~Entity()
|
protected |
Definition at line 26 of file entity.cpp.
Member Function Documentation
◆ addToRelation() [1/2]
template<typename T >
|
inlinestatic |
◆ addToRelation() [2/2]
template<typename T >
|
inlinestatic |
◆ clearRelation() [1/2]
template<typename T >
|
inlinestatic |
◆ clearRelation() [2/2]
template<typename T >
|
inlinestatic |
◆ count() [1/2]
◆ count() [2/2]
◆ id()
|
protected |
Definition at line 35 of file entity.cpp.
◆ isValid()
|
protected |
Definition at line 45 of file entity.cpp.
◆ joinByName()
◆ relatesTo() [1/2]
template<typename T >
|
inlinestatic |
◆ relatesTo() [2/2]
template<typename T >
|
inlinestatic |
◆ remove() [1/2]
◆ remove() [2/2]
◆ removeFromRelation() [1/2]
template<typename T >
|
inlinestatic |
◆ removeFromRelation() [2/2]
template<typename T >
|
inlinestatic |
◆ setId()
|
protected |
Definition at line 40 of file entity.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.