9 #ifndef databaseColumn_H_
10 #define databaseColumn_H_
16 #include <vlutil/vlString.h>
41 Type_SqlFixedString = 7,
42 Type_SqlVarString = 8,
49 Type_SqlUnsignedShort = 15,
50 Type_SqlUnsignedInt = 16,
51 Type_SqlUnsignedLong = 17
70 const DtString& columnName()
const;
72 virtual void setColumnName(
const DtString&);
76 virtual void setColumnType(
DataType type);
79 bool hasDisplaySize()
const;
82 bool hasDefaultValue()
const;
87 int displaySize()
const;
88 void setDisplaySize(
int displaySize );
91 int numDecimals()
const;
92 void setNumDecimals(
int numDecimals );
95 bool isUnsigned()
const;
96 void setIsUnsigned(
bool isUnsigned );
99 bool nullAllow()
const;
100 void setNullAllow(
bool nullAllow );
104 const DtString& defaultValue()
const;
105 void setDefaultValue(
const DtString& defaultValue );
109 bool autoIncrement()
const;
110 void setAutoIncrement(
bool autoIncrement );
113 bool isPrimaryKey()
const;
114 void setIsPrimaryKey(
bool isPrimaryKey );
117 bool isSecondaryKey()
const;
118 void setIsSecondaryKey(
bool isSecondaryKey );
125 void addIndexName(
const DtString& indexName );
128 void clearIndexNameList();
131 const DtString& value()
const;
134 void setValue(
const DtString& value);
137 int valueCount()
const;
140 const DtString& value(
size_t index)
const;
143 void addValue(
const DtString& value);
146 bool isNull(
size_t index)
const;
149 static DataType dataTypeFromNativeType(
const DtString& naticeCType);
151 static DtString& nullString();