Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e332a521

Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt

  • ID e332a521ee817280b489540cfeb68d54df04cd28
  • Vorgänger 4f539d5c
  • Nachfolger 79bcb404

Integrated EntityInspector

Unterschiede anzeigen:

src/entitymanager.h
* @return
*/
bool create(QList<QSharedPointer<Entity>> entities,
const bool persistRelations = true, const bool validate = true, const bool relationsIgnoreHasChanged = false);
const bool persistRelations = true, const bool validate = true,
const bool relationsIgnoreHasChanged = false);
bool create(QSharedPointer<Entity> &entity, const bool persistRelations = true,
const bool checkDuplicate = false, const bool validate = true, const bool relationsIgnoreHasChanged = false) ;
const bool checkDuplicate = false, const bool validate = true,
const bool relationsIgnoreHasChanged = false) ;
bool save(QSharedPointer<Entity> &entity, const bool persistRelations = true,
const bool ignoreHasChanged = false, const bool validate = true, const bool relationsIgnoreHasChanged = false);
const bool ignoreHasChanged = false, const bool validate = true,
const bool relationsIgnoreHasChanged = false);
bool merge(QSharedPointer<Entity> &entity, bool withRelations = true,
const bool validate = true, const bool relationsIgnoreHasChanged = false);
bool remove(QSharedPointer<Entity> &entity);
......
bool hasChanged(QSharedPointer<Entity> &entity);
public:
EntityManager(QSqlDatabase database, bool logQueries = false);
EntityManager(QSqlDatabase database, bool logQueries = false, const bool inspectEntities = false);
EntityManager(const QString &databaseType, QString databasename = "" ,
QString hostname = "",
QString username = "",
QString password = "", QString port = "", bool logQueries = false,
QString databaseOptions = "");
QString databaseOptions = "", const bool inspectEntities = false);
virtual ~EntityManager();
static QStringList getConnectionNames();
static void removeConnectionName(const QString &name);
......
return newList;
}
void init();
void init(bool inspect);
QList<QHash<QString, QVariant> > findAll(const QSharedPointer<Entity> &e);
void resolveRelations(const QSharedPointer<Entity> &entity,
const QHash<QString, QVariant> &map, const bool refresh = false);
......
*/
void missingManyToManyTable(const QString &tblName,
const QSharedPointer<Entity> &e, const Relation &r);
bool isRelationPropertyValid(const QMetaProperty &prop, const Relation &r,
const QSharedPointer<Entity> &e, const QSharedPointer<Entity> &relatedEntity);
/**
* @brief EntityManager::generateObjectName
* Generates a object name with this scheme: em[anyNumber]
......
Cache cache;
QString createConnection();
QList<QHash<QString, QVariant> > convertQueryResult(QSqlQuery &q);
void checkRelation(const QVariant &entity, const Relation &r) const;
bool checkTable(const QSharedPointer<Entity> &entity);
QSharedPointer<QueryInterpreter> queryInterpreter;

Auch abrufbar als: Unified diff