DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Defines the metadata properties of a column within a table of a database. More...
Public Member Functions | |
ColumnInfo (string columnName, SqlType columnType) | |
Constructs a new column with the given name and type. More... | |
Static Public Member Functions | |
static void | Serialize (ColumnInfo columnInfo, BinaryWriter writer) |
static void | Serialize (ColumnInfo columnInfo, Stream stream, Encoding encoding) |
static void | Serialize (ColumnInfo columnInfo, Stream stream) |
static ColumnInfo | Deserialize (Stream stream, ITypeResolver typeResolver) |
static ColumnInfo | Deserialize (BinaryReader reader, ITypeResolver typeResolver) |
Properties | |
TableInfo | TableInfo [get, set] |
Gets the table where the column is attached to. More... | |
string | ColumnName [get, private set] |
Gets the name of the column. More... | |
ObjectName | FullColumnName [get] |
Gets the fully qualified name of the column within the database system. More... | |
SqlType | ColumnType [get, private set] |
Gets the SqlType that cells within a table for this column will handle. More... | |
int | Offset [get] |
Gets the zero-based offset of the column within the containing table. More... | |
bool | HasSize [get] |
int | Size [get] |
bool | HasScale [get] |
int | Scale [get] |
bool | IsIndexable [get] |
Gets a boolean vale indicating if the value of a column can participate to an index. More... | |
bool | IsNotNull [get, set] |
Gets or sets a boolean value indicating if the column values are constrained to be ony NOT NULL . More... | |
SqlExpression | DefaultExpression [get, set] |
Gets or sets a SqlExpression used as a DEFAULT when a constraint for the column is to SET DEFAULT . More... | |
bool | HasDefaultExpression [get] |
Gets a boolean value indicating if the column has a DefaultExpression. More... | |
string | IndexType [get, set] |
Private Member Functions | |
ColumnInfo (ObjectData data) | |
void ISerializable. | GetData (SerializeData data) |
Defines the metadata properties of a column within a table of a database.
Columns have unique names within a table and a given SqlType that is used to define the type of data cells in the table will handle.
Definition at line 36 of file ColumnInfo.cs.
|
inline |
Constructs a new column with the given name and type.
columnName | The name of the column, as case-sensitive and unique within the table. |
columnType | The SqlType that this column will handle. |
ArgumentNullException | If either one of columnName or columnType is null . |
Definition at line 47 of file ColumnInfo.cs.
|
inlineprivate |
Definition at line 58 of file ColumnInfo.cs.
|
inlinestatic |
Definition at line 198 of file ColumnInfo.cs.
|
inlinestatic |
Definition at line 203 of file ColumnInfo.cs.
|
inlineprivate |
Implements Deveel.Data.Serialization.ISerializable.
Definition at line 164 of file ColumnInfo.cs.
|
inlinestatic |
Definition at line 173 of file ColumnInfo.cs.
|
inlinestatic |
Definition at line 189 of file ColumnInfo.cs.
|
inlinestatic |
Definition at line 194 of file ColumnInfo.cs.
|
getprivate set |
Gets the name of the column.
Definition at line 79 of file ColumnInfo.cs.
|
getprivate set |
Gets the SqlType that cells within a table for this column will handle.
Definition at line 99 of file ColumnInfo.cs.
|
getset |
Gets or sets a SqlExpression used as a DEFAULT
when a constraint for the column is to SET DEFAULT
.
Definition at line 151 of file ColumnInfo.cs.
|
get |
Gets the fully qualified name of the column within the database system.
When TableInfo is set, the value returned is the fully qualified name of the column, otherwise this returns an instance of ObjectName that defines only ColumnName.
Definition at line 90 of file ColumnInfo.cs.
|
get |
Gets a boolean value indicating if the column has a DefaultExpression.
Definition at line 157 of file ColumnInfo.cs.
|
get |
Definition at line 120 of file ColumnInfo.cs.
|
get |
Definition at line 109 of file ColumnInfo.cs.
|
getset |
Definition at line 161 of file ColumnInfo.cs.
|
get |
Gets a boolean vale indicating if the value of a column can participate to an index.
Definition at line 136 of file ColumnInfo.cs.
|
getset |
Gets or sets a boolean value indicating if the column values are constrained to be ony NOT NULL
.
Definition at line 144 of file ColumnInfo.cs.
|
get |
Gets the zero-based offset of the column within the containing table.
Definition at line 105 of file ColumnInfo.cs.
|
get |
Definition at line 124 of file ColumnInfo.cs.
|
get |
Definition at line 113 of file ColumnInfo.cs.
|
getset |
Gets the table where the column is attached to.
This value is set when this object is added to a table.
Definition at line 74 of file ColumnInfo.cs.