MDBL Library
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
CColumn Class Reference

#include <Column.hpp>

List of all members.

Public Types

enum  {
  NOT_NULLABLE = 0x0000, NULLABLE = 0x0001, NOT_UNIQUE = 0x0000, UNIQUE = 0x0002,
  NOT_KEY = 0x0000, FOREIGN_KEY = 0x0004, PRIMARY_KEY = 0x0008, READ_WRITE = 0x0000,
  READ_ONLY = 0x0010, PERSISTENT = 0x0000, TRANSIENT = 0x0020, IGNORE_CASE = 0x0000,
  COMPARE_CASE = 0x0100, TZ_GMT = 0x0000, TZ_LOCAL = 0x0100, DEFAULTS = (NOT_NULLABLE | NOT_UNIQUE | NOT_KEY | READ_WRITE | PERSISTENT),
  IDENTITY = (NOT_NULLABLE | UNIQUE | PRIMARY_KEY | READ_ONLY | PERSISTENT), FOREIGNKEY = (NOT_NULLABLE | NOT_UNIQUE | FOREIGN_KEY | READ_WRITE | PERSISTENT)
}

Public Member Functions

CTableTable () const
const CString & Name () const
COLTYPE ColType () const
STGTYPE StgType () const
size_t Length () const
size_t AllocSize () const
uint Flags () const
bool Nullable () const
bool Unique () const
bool ForeignKey () const
bool PrimaryKey () const
bool ReadOnly () const
bool Transient () const
CTableFKTable () const
size_t FKColumn () const
CIndexIndex () const
size_t DisplayWidth (bool bDebug=false) const
void Index (CIndex *pIndex)

Static Public Member Functions

static STGTYPE ColToStgType (COLTYPE eType)

Protected Member Functions

 CColumn (CTable &oTable, const tchar *pszName, COLTYPE eType, size_t nLength, size_t nAllocSize, uint nFlags)
 CColumn (CTable &oTable, const tchar *pszName, CTable &oFKTable, size_t nFKColumn, const CColumn &oFKColumn, uint nFlags)
virtual ~CColumn ()

Protected Attributes

CTablem_oTable
CString m_strName
COLTYPE m_eColType
STGTYPE m_eStgType
size_t m_nLength
size_t m_nAllocSize
uint m_nFlags
CTablem_pFKTable
size_t m_nFKColumn
CIndexm_pIndex

Private Member Functions

 CColumn (const CColumn &)
CColumnoperator= (const CColumn &)

Friends

class CColumnSet
class CTable

Member Enumeration Documentation

anonymous enum
Enumerator:
NOT_NULLABLE 
NULLABLE 
NOT_UNIQUE 
UNIQUE 
NOT_KEY 
FOREIGN_KEY 
PRIMARY_KEY 
READ_WRITE 
READ_ONLY 
PERSISTENT 
TRANSIENT 
IGNORE_CASE 
COMPARE_CASE 
TZ_GMT 
TZ_LOCAL 
DEFAULTS 
IDENTITY 
FOREIGNKEY 

Constructor & Destructor Documentation

CColumn::CColumn ( CTable oTable,
const tchar *  pszName,
COLTYPE  eType,
size_t  nLength,
size_t  nAllocSize,
uint  nFlags 
) [protected]
CColumn::CColumn ( CTable oTable,
const tchar *  pszName,
CTable oFKTable,
size_t  nFKColumn,
const CColumn oFKColumn,
uint  nFlags 
) [protected]
CColumn::~CColumn ( ) [protected, virtual]
CColumn::CColumn ( const CColumn ) [private]

Member Function Documentation

CTable & CColumn::Table ( ) const [inline]
const CString & CColumn::Name ( ) const [inline]
COLTYPE CColumn::ColType ( ) const [inline]
STGTYPE CColumn::StgType ( ) const [inline]
size_t CColumn::Length ( ) const [inline]
size_t CColumn::AllocSize ( ) const [inline]
uint CColumn::Flags ( ) const [inline]
bool CColumn::Nullable ( ) const [inline]
bool CColumn::Unique ( ) const [inline]
bool CColumn::ForeignKey ( ) const [inline]
bool CColumn::PrimaryKey ( ) const [inline]
bool CColumn::ReadOnly ( ) const [inline]
bool CColumn::Transient ( ) const [inline]
CTable * CColumn::FKTable ( ) const [inline]
size_t CColumn::FKColumn ( ) const [inline]
CIndex * CColumn::Index ( ) const [inline]
size_t CColumn::DisplayWidth ( bool  bDebug = false) const
void CColumn::Index ( CIndex pIndex)
STGTYPE CColumn::ColToStgType ( COLTYPE  eType) [static]
CColumn& CColumn::operator= ( const CColumn ) [private]

Friends And Related Function Documentation

friend class CColumnSet [friend]
friend class CTable [friend]

Member Data Documentation

CTable& CColumn::m_oTable [protected]
CString CColumn::m_strName [protected]
size_t CColumn::m_nLength [protected]
size_t CColumn::m_nAllocSize [protected]
uint CColumn::m_nFlags [protected]
size_t CColumn::m_nFKColumn [protected]
CIndex* CColumn::m_pIndex [protected]

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