TTCatalogColumn Reference

Each TTCatalogTable object contains an array of TTCatalogColumn objects and an array of TTCatalogIndex objects.

Public Members

None

Public Methods

This section summarizes then describes the TTCatalogColumn public methods.

Public Methods Summary

Method Description

getColumnName()

Return the name of the column.

getDataType()

Returns an integer representing the ODBC SQL data type of the column.

getLength()

Returns the length of the column, in bytes.

getNullable()

Indicates whether the column can contain NULL values. (This is not a boolean value, as noted in the description below.)

getPrecision()

Returns the precision of the column.

getRadix()

Returns the radix of the column.

getScale()

Returns the scale of the column.

getTypeName()

Returns the TimesTen name for the type returned by getDataType().

getColumnName()

const char* getColumnName()

Returns the name of the column.

getDataType()

int getDataType()

Returns an integer representing the data type of the column. This is the standard ODBC SQL type code or a TimesTen extension type code.

getLength()

int getLength()

Returns the length of data in the column, in bytes.

getNullable()

int getNullable()

Indicates whether the column can contain NULL values. It returns SQL_NO_NULLS, SQL_NULLABLE, or SQL_NULLABLE_UNKNOWN.

getPrecision()

int getPrecision()

Returns the precision of data in the column, referring to the maximum number of digits that are used by the data type.

getRadix()

int getRadix()

Returns the radix of the column, according to ODBC SQLColumns function output.

getScale()

int getScale()

Returns the scale of data in the column, which is the maximum number of digits to the right of the decimal point.

getTypeName()

const char* getTypeName()

Returns the TimesTen name of the type returned by getDataType().