24 namespace Deveel.Data.Sql.Statements {
28 if (
String.IsNullOrEmpty(columnName))
29 throw new ArgumentNullException(
"columnName");
30 if (columnType == null)
31 throw new ArgumentNullException(
"columnType");
33 ColumnName = columnName;
38 ColumnName = data.
GetString(
"ColumnName");
45 public string ColumnName {
get;
private set; }
49 public bool IsIdentity {
get; set; }
53 public bool HasDefaultExpression {
54 get {
return DefaultExpression != null; }
57 public bool IsNotNull {
get; set; }
61 if (DefaultExpression != null)
62 column.DefaultExpression = DefaultExpression.Prepare(preparer);
64 column.IsNotNull = IsNotNull;
91 data.
SetValue(
"ColumnName", ColumnName);
93 data.
SetValue(
"IsNotNull", IsNotNull);
94 data.
SetValue(
"IsIdentity", IsIdentity);
95 data.
SetValue(
"Default", DefaultExpression);
void GetData(SerializeData data)
SqlTableColumn(string columnName, SqlType columnType)
A long string in the system.
void SetValue(string key, Type type, object value)
An interface used to prepare a SqlExpression object.
Defines the properties of a specific SQL Type and handles the values compatible.
object Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
bool GetBoolean(string key)
object GetValue(string key)
SqlTableColumn(ObjectData data)
Defines the base class for instances that represent SQL expression tree nodes.
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
string GetString(string key)