Collaboration diagram for DtDatabaseColumn:Public Types | |
| enum | DataType { Type_SqlNone = 0, Type_SqlChar = 1, Type_SqlShort = 2, Type_SqlInt = 3, Type_SqlLong = 4, Type_SqlFloat = 5, Type_SqlDouble = 6, Type_SqlFixedString = 7, Type_SqlVarString = 8, Type_SqlIndex = 9, Type_SqlEnum8 = 10, Type_SqlEnum16 = 11, Type_SqlEnum32 = 12, Type_SqlBool = 13, Type_SqlUnsignedShort = 15, Type_SqlUnsignedInt = 16, Type_SqlUnsignedLong = 17 } |
| typedef std::list< DtString > | IndexNameList |
| A list of index names. | |
Public Member Functions | |
| DtDatabaseColumn (const DtString &columnName, DataType columnType) | |
| DtDatabaseColumn (const DtDatabaseColumn &src) | |
| virtual DtDatabaseColumn & | operator= (const DtDatabaseColumn &src) |
| const DtString & | columnName () const |
| virtual void | setColumnName (const DtString &) |
| Set the column name. | |
| DataType | columnType () const |
| virtual void | setColumnType (DataType type) |
| bool | hasDisplaySize () const |
| bool | hasDefaultValue () const |
| int | displaySize () const |
| void | setDisplaySize (int displaySize) |
| int | numDecimals () const |
| void | setNumDecimals (int numDecimals) |
| bool | isUnsigned () const |
| void | setIsUnsigned (bool isUnsigned) |
| bool | nullAllow () const |
| void | setNullAllow (bool nullAllow) |
| const DtString & | defaultValue () const |
| void | setDefaultValue (const DtString &defaultValue) |
| bool | autoIncrement () const |
| void | setAutoIncrement (bool autoIncrement) |
| bool | isPrimaryKey () const |
| void | setIsPrimaryKey (bool isPrimaryKey) |
| bool | isSecondaryKey () const |
| void | setIsSecondaryKey (bool isSecondaryKey) |
| const IndexNameList & | indexNameList () const |
| void | addIndexName (const DtString &indexName) |
| void | clearIndexNameList () |
| const DtString & | value () const |
| void | setValue (const DtString &value) |
| int | valueCount () const |
| const DtString & | value (size_t index) const |
| void | addValue (const DtString &value) |
| bool | isNull (size_t index) const |
Static Public Member Functions | |
| static DataType | dataTypeFromNativeType (const DtString &naticeCType) |
Protected Attributes | |
| DtString | myColumnName |
| DtString | myDefaultValue |
| std::vector< DtString > | myStringReps |
| IndexNameList | myIndexNameList |
| DataType | myColumnType |
| int | myDisplaySize |
| int | myNumDecimals |
| bool | myAutoIncrement |
| bool | myHasDefaultValue |
| bool | myHasDisplaySize |
| bool | myIsPrimaryKey |
| bool | myIsSecondaryKey |
| bool | myIsUnsigned |
| bool | myNullAllow |
Static Protected Attributes | |
| static DtString | theNullString |