PTLib  Version 2.18.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PODBC::Field Class Reference

Class for Field Data. More...

#include <podbc.h>

Inherits PVarType.

Collaboration diagram for PODBC::Field:

Public Member Functions

 ~Field ()
 
Fieldoperator= (const Field &other)
 
Fieldoperator= (const PVarType &other)
 
virtual bool SetType (BasicType type, PINDEX options=0)
 
void SetDefaultValues ()
 Initialise/Set the Default values for Field of New Record. More...
 
void SetNULL ()
 Set value to NULL. More...
 
bool IsNULL () const
 Is curreently NULL value. More...
 
PINDEX GetColumn () const
 Get column index number, 1 up. More...
 
const PString GetName () const
 Get column name. More...
 
int GetDataType () const
 
unsigned GetScale () const
 
bool IsNullable () const
 
bool IsReadOnly () const
 
bool IsUpdatable () const
 
bool IsAutoIncrement () const
 
bool IsAutoIndex ()
 
unsigned GetPrecision () const
 
bool Post ()
 

Protected Member Functions

 Field (Row &row, PINDEX column)
 
virtual void OnGetValue ()
 
virtual void OnValueChanged ()
 
virtual void InternalCopy (const PVarType &other)
 

Protected Attributes

Rowm_row
 
PINDEX m_column
 Back Reference to the Row. More...
 
PString m_name
 Column number. More...
 
int m_odbcType
 Column Name. More...
 
unsigned m_scale
 
bool m_isNullable
 
bool m_isReadOnly
 
bool m_isAutoIncrement
 
unsigned m_decimals
 
FieldExtra * m_extra
 Number of decimal places to Round. More...
 

Detailed Description

Class for Field Data.

Constructor & Destructor Documentation

PODBC::Field::~Field ( )
PODBC::Field::Field ( Row row,
PINDEX  column 
)
protected

Member Function Documentation

PINDEX PODBC::Field::GetColumn ( ) const
inline

Get column index number, 1 up.

References m_column.

int PODBC::Field::GetDataType ( ) const
inline

References m_odbcType.

Referenced by PODBC::Row::ColumnType().

const PString PODBC::Field::GetName ( ) const
inline

Get column name.

References m_name.

Referenced by PODBC::Row::ColumnName().

unsigned PODBC::Field::GetPrecision ( ) const
inline

References m_decimals.

Referenced by PODBC::Row::ColumnPrecision().

unsigned PODBC::Field::GetScale ( ) const
inline

References m_scale.

Referenced by PODBC::Row::ColumnScale().

virtual void PODBC::Field::InternalCopy ( const PVarType &  other)
protectedvirtual
bool PODBC::Field::IsAutoIncrement ( ) const
inline

References m_isAutoIncrement.

Referenced by IsAutoIndex().

bool PODBC::Field::IsAutoIndex ( )
inline
bool PODBC::Field::IsNULL ( ) const

Is curreently NULL value.

bool PODBC::Field::IsNullable ( ) const
inline

References m_isNullable.

Referenced by PODBC::Row::IsColumnNullable().

bool PODBC::Field::IsReadOnly ( ) const
inline

References m_isReadOnly.

Referenced by IsUpdatable().

bool PODBC::Field::IsUpdatable ( ) const
inline

References IsReadOnly().

Referenced by PODBC::Row::IsColumnUpdatable().

virtual void PODBC::Field::OnGetValue ( )
protectedvirtual
virtual void PODBC::Field::OnValueChanged ( )
protectedvirtual
Field& PODBC::Field::operator= ( const Field other)
inline
Field& PODBC::Field::operator= ( const PVarType &  other)
inline
bool PODBC::Field::Post ( )
void PODBC::Field::SetDefaultValues ( )

Initialise/Set the Default values for Field of New Record.

void PODBC::Field::SetNULL ( )

Set value to NULL.

virtual bool PODBC::Field::SetType ( BasicType  type,
PINDEX  options = 0 
)
virtual

Member Data Documentation

PINDEX PODBC::Field::m_column
protected

Back Reference to the Row.

Referenced by GetColumn().

unsigned PODBC::Field::m_decimals
protected

Referenced by GetPrecision().

FieldExtra* PODBC::Field::m_extra
protected

Number of decimal places to Round.

bool PODBC::Field::m_isAutoIncrement
protected

Referenced by IsAutoIncrement().

bool PODBC::Field::m_isNullable
protected

Referenced by IsNullable().

bool PODBC::Field::m_isReadOnly
protected

Referenced by IsReadOnly().

PString PODBC::Field::m_name
protected

Column number.

Referenced by GetName().

int PODBC::Field::m_odbcType
protected

Column Name.

Referenced by GetDataType().

Row& PODBC::Field::m_row
protected
unsigned PODBC::Field::m_scale
protected

Referenced by GetScale().


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