Ananas Library  0.9.5
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
aDataTable Class Reference

#include <asqltable.h>

Inheritance diagram for aDataTable:

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

aDatabasedb
 
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
 

Detailed Description

Provides browsing and editing Ananas's sql tables mantained by Ananas.Designer.

Member Function Documentation

void aDataTable::appendField ( aSQLField fieldinfo)

Stub.

QVariant aDataTable::calcFieldValue ( const QString &  name)
protected

Calculate value object type fields.

References sysFieldExists(), and sysValue().

Referenced by sysValue().

QVariant aDataTable::calculateField ( const QString &  name)
protectedvirtual

Calculate value object type fields.

bool aDataTable::checkStructure ( bool  update)

Stub.

void aDataTable::clearFields ( )

Stub.

Q_ULLONG aDataTable::getIdd ( void  )

Gets metadata object.

QStringList aDataTable::getUserFields ( )
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().

void aDataTable::setValue ( int  i,
QVariant  value 
)
virtual

Set value of the column of the database table.

Referenced by aObject::setTValue(), aObjectList::SetValue(), and aObject::SetValue().

bool aDataTable::sysFieldExists ( const QString &  name)
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().

QVariant aDataTable::sysValue ( const QString &  name)
virtual
QVariant aDataTable::value ( int  i)
virtual

Return field falue.

References sysValue().

Referenced by aObject::tValue(), aObjectList::Value(), and aObject::Value().

QVariant aDataTable::value ( const QString &  name)
virtual

Return field falue.

References aLog::print(), and sysValue().


The documentation for this class was generated from the following files: