Revision 95a2ba7e
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/attribute.h | ||
---|---|---|
#define ATTRIBUTE_H
|
||
#include <QString>
|
||
#include <QMetaObject>
|
||
#include "relation.h"
|
||
namespace CuteEntityManager {
|
||
class Attribute {
|
||
public:
|
||
... | ... | |
QString getBaseTableName() const;
|
||
void setBaseTableName(const QString &value);
|
||
void setInheritance(const QString &baseTableName, const QMetaObject *baseMetaObj);
|
||
void setRelation(const QString &tableName, const QMetaObject *relatedMetaObj,
|
||
void setRelation(const QString &tableName, const QMetaObject *relatedMetaObj, const Relation &relation = Relation(),
|
||
const QString &conjunctedTable = "", const QString &relatedColumnName = "");
|
||
const QMetaProperty getMetaProperty();
|
||
const QMetaObject *getMetaObj() const;
|
||
... | ... | |
QString getRelatedColumnName() const;
|
||
void setRelatedColumnName(const QString &value);
|
||
|
||
private:
|
||
Relation getRelation() const;
|
||
|
||
QString toString() const;
|
||
|
||
private:
|
||
QString name;
|
||
QString columnName;
|
||
QString tableName;
|
||
... | ... | |
const QMetaObject *baseMetaObj;
|
||
QString relatedTable;
|
||
const QMetaObject *relatedClass;
|
||
Relation relation;
|
||
QString relatedColumnName;
|
||
QString conjunctedTable;
|
||
};
|
Auch abrufbar als: Unified diff
continued work on attribute resolver