Revision 77cccf8a
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/attributeresolver.cpp | ||
---|---|---|
return a;
|
||
}
|
||
|
||
<<<<<<< HEAD
|
||
QSharedPointer<QueryBuilder> AttributeResolver::getQb() const {
|
||
return qb;
|
||
}
|
||
|
||
=======
|
||
>>>>>>> master
|
||
bool AttributeResolver::containsAttribute(const QString &className,
|
||
const QString &attribute) const {
|
||
bool r = false;
|
||
... | ... | |
return r;
|
||
}
|
||
|
||
Attribute *AttributeResolver::resolveAttribute(const QSharedPointer<Entity> &classObj,
|
||
const QString &attribute, QSharedPointer<Entity> related) {
|
||
Attribute *attr = nullptr;
|
||
if(this->containsAttribute(classObj->getClassname(), attribute)) {
|
||
attr = this->attributes.value(classObj->getClassname()).value(attribute);
|
||
} else {
|
||
attr = this->resolveExplicitAttribute(classObj, attribute, related);
|
||
this->addAttribute(classObj->getClassname(), attr);
|
||
}
|
||
return attr;
|
||
}
|
||
|
||
Attribute *AttributeResolver::resolveAttribute(const QString &className,
|
||
const QString &attribute, const QString related) {
|
||
Attribute *attr = nullptr;
|
Auch abrufbar als: Unified diff
what a mess