MyMoneyDbIntColumn Class Reference

#include <mymoneystoragesql.h>

Inheritance diagram for MyMoneyDbIntColumn:

MyMoneyDbColumn KShared
Collaboration diagram for MyMoneyDbIntColumn:

Collaboration graph
[legend]

List of all members.

Public Types

enum  size { TINY, SMALL, MEDIUM, BIG }

Public Member Functions

 MyMoneyDbIntColumn (const QString &iname, const size type=MEDIUM, const bool isigned=true, const bool iprimary=false, const bool inotnull=false, const QString &initVersion="0.1")
virtual ~MyMoneyDbIntColumn ()
virtual const QString generateDDL (databaseTypeE dbType) const
virtual MyMoneyDbIntColumnclone () const

Private Attributes

size m_type
bool m_isSigned


Detailed Description

The MyMoneyDbColumn class is a representation of integer db columns.

Member Enumeration Documentation

Enumerator:
TINY 
SMALL 
MEDIUM 
BIG 


Constructor & Destructor Documentation

MyMoneyDbIntColumn::MyMoneyDbIntColumn ( const QString &  iname,
const size  type = MEDIUM,
const bool  isigned = true,
const bool  iprimary = false,
const bool  inotnull = false,
const QString &  initVersion = "0.1" 
) [inline]

virtual MyMoneyDbIntColumn::~MyMoneyDbIntColumn (  )  [inline, virtual]


Member Function Documentation

virtual const QString MyMoneyDbIntColumn::generateDDL ( databaseTypeE  dbType  )  const [virtual]

This method generates the DDL (Database Design Language) string for the column.

Parameters:
dbType Database driver type
Returns:
QString of the DDL for the column, tailored for what the driver supports.

Reimplemented from MyMoneyDbColumn.

virtual MyMoneyDbIntColumn* MyMoneyDbIntColumn::clone (  )  const [virtual]

This method is used to copy column objects. Because there are several derived types, clone() is more appropriate than a copy ctor in most cases.

Reimplemented from MyMoneyDbColumn.


Member Data Documentation

Reimplemented from MyMoneyDbColumn.


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