DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Statements.AddColumnAction Class Reference
Inheritance diagram for Deveel.Data.Sql.Statements.AddColumnAction:
Deveel.Data.Sql.Statements.IAlterTableAction Deveel.Data.Sql.Expressions.IPreparable Deveel.Data.Serialization.ISerializable

Public Member Functions

 AddColumnAction (SqlTableColumn column)
 

Properties

SqlTableColumn Column [get, private set]
 
AlterTableActionType IAlterTableAction. ActionType [get]
 
- Properties inherited from Deveel.Data.Sql.Statements.IAlterTableAction
AlterTableActionType ActionType [get]
 

Private Member Functions

 AddColumnAction (ObjectData data)
 
object IPreparable. Prepare (IExpressionPreparer preparer)
 Converts the underlying value of this instance into an object that can be evaluated by an expression. More...
 
void ISerializable. GetData (SerializeData data)
 

Detailed Description

Definition at line 24 of file AddColumnAction.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.AddColumnAction.AddColumnAction ( SqlTableColumn  column)
inline

Definition at line 25 of file AddColumnAction.cs.

25  {
26  if (column == null)
27  throw new ArgumentNullException("column");
28 
29  Column = column;
30  }
Deveel.Data.Sql.Statements.AddColumnAction.AddColumnAction ( ObjectData  data)
inlineprivate

Definition at line 32 of file AddColumnAction.cs.

32  {
33  Column = data.GetValue<SqlTableColumn>("Column");
34  }

Member Function Documentation

void ISerializable. Deveel.Data.Sql.Statements.AddColumnAction.GetData ( SerializeData  data)
inlineprivate

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 54 of file AddColumnAction.cs.

54  {
55  data.SetValue("Column", Column);
56  }
void SetValue(string key, Type type, object value)
object IPreparable. Deveel.Data.Sql.Statements.AddColumnAction.Prepare ( IExpressionPreparer  preparer)
inlineprivate

Converts the underlying value of this instance into an object that can be evaluated by an expression.

Parameters
preparerThe context used to prepare this object.
Returns
Returns an object that can be evaluated by an expression.

Implements Deveel.Data.Sql.Expressions.IPreparable.

Definition at line 38 of file AddColumnAction.cs.

38  {
39  var newColumn = new SqlTableColumn(Column.ColumnName, Column.ColumnType) {
40  IsNotNull = Column.IsNotNull
41  };
42 
43  var defaultExp = Column.DefaultExpression;
44  if (defaultExp != null)
45  newColumn.DefaultExpression = defaultExp.Prepare(preparer);
46 
47  return new AddColumnAction(newColumn);
48  }
virtual SqlExpression Prepare(IExpressionPreparer preparer)

Property Documentation

AlterTableActionType IAlterTableAction. Deveel.Data.Sql.Statements.AddColumnAction.ActionType
getprivate

Definition at line 50 of file AddColumnAction.cs.

SqlTableColumn Deveel.Data.Sql.Statements.AddColumnAction.Column
getprivate set

Definition at line 36 of file AddColumnAction.cs.


The documentation for this class was generated from the following file: