MyMoneyDbIndex Class Reference

#include <mymoneystoragesql.h>

Collaboration diagram for MyMoneyDbIndex:

Collaboration graph

List of all members.

Public Member Functions

 MyMoneyDbIndex (const QString &table, const QString &name, const QStringList &columns, bool unique=false)
 MyMoneyDbIndex ()
const QString table () const
bool isUnique () const
const QString name () const
const QStringList columns () const
const QString generateDDL (databaseTypeE dbType) const

Private Attributes

QString m_table
bool m_unique
QString m_name
QStringList m_columns

Detailed Description

The MyMoneyDbIndex class is a representation of a db index. To provide generic support for most databases, the table name, name of the index, and list of columns for the index are required. Additionally, the user can specify whether the index is unique or not.

At this time, different types of index are not supported, since the portability is fairly limited.

Constructor & Destructor Documentation

MyMoneyDbIndex::MyMoneyDbIndex ( const QString &  table,
const QString &  name,
const QStringList &  columns,
bool  unique = false 
) [inline]

MyMoneyDbIndex::MyMoneyDbIndex (  )  [inline]

Member Function Documentation

const QString MyMoneyDbIndex::table (  )  const [inline]

bool MyMoneyDbIndex::isUnique (  )  const [inline]

const QString MyMoneyDbIndex::name ( void   )  const [inline]

const QStringList MyMoneyDbIndex::columns (  )  const [inline]

const QString MyMoneyDbIndex::generateDDL ( databaseTypeE  dbType  )  const

Member Data Documentation

QString MyMoneyDbIndex::m_table [private]

bool MyMoneyDbIndex::m_unique [private]

QString MyMoneyDbIndex::m_name [private]

QStringList MyMoneyDbIndex::m_columns [private]

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

Generated on Wed Jan 26 13:09:13 2011 for KMyMoney by  doxygen 1.5.6