I dont want to update one field in table during qx::dao:update(). I found that third parameter is column array that will be updated. So, there are 2 questions:
How can i exclude field from update?
OR
How can i get list of fields if QxClass?
I found that third parameter is column array that will be updated.
How can i exclude field from update ?
How can i get list of fields if QxClass ?
QString IxClass::dumpClass() const
{
QString sDump;
sDump += "-- class '" + m_sKey + "' (name '" + m_sName + "', ";
sDump += "description '" + m_sDescription + "', version '" + QString::number(m_lVersion) + "', ";
sDump += "base class '" + (getBaseClass() ? getBaseClass()->getKey() : "") + "')\n";
long lCount = (m_pDataMemberX ? m_pDataMemberX->count() : 0);
sDump += "\t* list of registered properties (" + QString::number(lCount) + ")\n";
if (m_pDataMemberX)
{
IxDataMember * pId = this->getId();
for (long l = 0; l < lCount; l++)
{
IxDataMember * p = m_pDataMemberX->get(l); if (! p) { continue; }
IxSqlRelation * pRelation = p->getSqlRelation();
QString sInfos = p->getKey() + ((p == pId) ? QString(" (id)") : QString());
sInfos += (pRelation ? (QString(" (") + pRelation->getDescription() + QString(")")) : QString());
sDump += "\t\t" + sInfos + "\n";
}
}
// etc...
Users browsing this forum: No registered users and 6 guests