MyMoneyDbTextColumn Class Reference

#include <mymoneystoragesql.h>

Inheritance diagram for MyMoneyDbTextColumn:

MyMoneyDbColumn KShared
Collaboration diagram for MyMoneyDbTextColumn:

Collaboration graph
[legend]

List of all members.

Public Types

enum  size { TINY, NORMAL, MEDIUM, LONG }

Public Member Functions

 MyMoneyDbTextColumn (const QString &iname, const size type=MEDIUM, const bool iprimary=false, const bool inotnull=false, const QString &initVersion="0.1")
virtual ~MyMoneyDbTextColumn ()
virtual const QString generateDDL (databaseTypeE dbType) const
virtual MyMoneyDbTextColumnclone () const

Private Attributes

size m_type


Detailed Description

The MyMoneyDbTextColumn class is a representation of text db columns, for drivers that support it. If the driver does not support it, it is usually some sort of really large varchar or varchar2.

Member Enumeration Documentation

Enumerator:
TINY 
NORMAL 
MEDIUM 
LONG 


Constructor & Destructor Documentation

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

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


Member Function Documentation

virtual const QString MyMoneyDbTextColumn::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 MyMoneyDbTextColumn* MyMoneyDbTextColumn::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