Revision 6d46f506
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/entitymanager.cpp | ||
---|---|---|
return this->db->exec(query);
|
||
}
|
||
|
||
/**
|
||
* @brief EntityManager::checkTable
|
||
* Checks if a table has been already created, if not it will create it
|
||
* @param entity
|
||
* @return
|
||
*/
|
||
bool EntityManager::checkTable(const QSharedPointer<Entity> &entity) {
|
||
bool rc = true;
|
||
if (!this->schema->containsTable(entity->getTablename())
|
||
... | ... | |
return schema;
|
||
}
|
||
|
||
/**
|
||
* @brief EntityManager::refresh
|
||
* fetches an entity again from the database
|
||
* @param entity
|
||
*/
|
||
void EntityManager::refresh(QSharedPointer<Entity> &entity) {
|
||
entity = this->findById(entity->getProperty(
|
||
entity->getPrimaryKey()).toLongLong(),
|
Auch abrufbar als: Unified diff
doxy gen stuff