Ananas Library
0.9.5
|
#include <asqltable.h>
Public Member Functions | |
aSQLTable (aCfgItem context, aDatabase *adb) | |
aSQLTable (const QString &tname, aDatabase *adb) | |
void | init (aCfgItem context, aDatabase *adb) |
void | setObject (aCfgItem context) |
void | appendField (aSQLField *fieldinfo) |
void | insertField (int pos, aSQLField *fieldinfo) |
void | removeField (int pos) |
void | clearFields () |
bool | checkStructure (bool update) |
long | getMdObjId () |
Q_ULLONG | getIdd () |
void | printRecord () |
virtual QVariant | value (int i) |
virtual QVariant | value (const QString &name) |
virtual void | setValue (int i, QVariant value) |
virtual bool | setValue (const QString &name, QVariant value) |
virtual QVariant | sysValue (const QString &name) |
virtual void | setSysValue (const QString &name, QVariant value) |
virtual bool | sysFieldExists (const QString &name) |
virtual QSqlRecord * | primeInsert () |
virtual bool | select (const QString &filter="", bool usefltr=true) |
virtual bool | select (Q_ULLONG id) |
virtual void | clearFilter () |
virtual bool | setFilter (const QString &name, const QVariant &value) |
virtual void | setFilter (const QString &) |
virtual QString | getFilter () |
virtual QString | getNFilter () |
virtual bool | exec (QString query) |
virtual QStringList | getUserFields () |
virtual ERR_Code | setMarkDeleted (bool Deleted) |
virtual bool | isMarkDeleted () |
QString | sqlFieldName (const QString &userFieldName) const |
virtual bool | New () |
virtual bool | Copy () |
virtual bool | Delete () |
virtual bool | Update () |
virtual bool | seek (int i, bool relative=FALSE) |
virtual bool | next () |
virtual bool | prev () |
virtual bool | first () |
virtual bool | last () |
Public Attributes | |
aDatabase * | db |
QString | tableName |
bool | selected |
Protected Member Functions | |
QVariant | calcFieldValue (const QString &name) |
virtual QVariant | calculateField (const QString &name) |
virtual QVariant | calc_obj (int fid, Q_ULLONG idd) |
virtual QVariant | calc_rem (int fid, Q_ULLONG id) |
void | insertFieldInfo (aCfgItem cobj, bool calculated=true) |
Protected Attributes | |
long | mdobjId |
Provides browsing and editing Ananas's sql tables mantained by Ananas.Designer.
void aDataTable::appendField | ( | aSQLField * | fieldinfo | ) |
Stub.
|
protected |
Calculate value object type fields.
References sysFieldExists(), and sysValue().
Referenced by sysValue().
|
protectedvirtual |
Calculate value object type fields.
bool aDataTable::checkStructure | ( | bool | update | ) |
Stub.
void aDataTable::clearFields | ( | ) |
Stub.
Q_ULLONG aDataTable::getIdd | ( | void | ) |
Gets metadata object.
|
virtual |
Gets list of user and calculation fields.
void aDataTable::init | ( | aCfgItem | context, |
aDatabase * | adb | ||
) |
Inits table object.
References setObject().
void aDataTable::insertField | ( | int | pos, |
aSQLField * | fieldinfo | ||
) |
Stub.
void aDataTable::removeField | ( | int | pos | ) |
Stub.
void aDataTable::setObject | ( | aCfgItem | context | ) |
Sets md object to table.
References aCfg::count(), aCfg::find(), aCfg::id(), aCfg::objClass(), aCfg::parent(), and aLog::print().
Referenced by init(), and aObject::tableInsert().
|
virtual |
Set value of the column of the database table.
References value().
Referenced by aObject::setTValue(), aObjectList::SetValue(), and aObject::SetValue().
|
virtual |
Return true if column name exists in database table.
Check field existing.
Referenced by calcFieldValue(), aObject::IsMarkDeleted(), aObject::IsMarked(), aObject::SetMarkDeleted(), aObject::SetMarked(), and aObject::sysValue().
|
virtual |
Return value of the column of the database table.
References calcFieldValue().
Referenced by calcFieldValue(), aObject::displayString(), aDocJournal::docId(), aDocJournal::findDoc(), aIRegister::GetDocument(), aObject::getUid(), aObject::IsMarkDeleted(), aObject::IsMarked(), aCatalogue::setMarkDeletedElement(), aObject::sysValue(), aDocument::TableValue(), and value().
|
virtual |
Return field falue.
References sysValue().
Referenced by setValue(), aObject::tValue(), aObjectList::Value(), and aObject::Value().
|
virtual |
Return field falue.
References aLog::print(), and sysValue().