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.SetDefaultAction Class Reference
Inheritance diagram for Deveel.Data.Sql.Statements.SetDefaultAction:
Deveel.Data.Sql.Statements.IAlterTableAction Deveel.Data.Sql.Expressions.IPreparable Deveel.Data.Serialization.ISerializable

Public Member Functions

 SetDefaultAction (string columnName, SqlExpression defaultExpression)
 

Properties

string ColumnName [get, private set]
 
SqlExpression DefaultExpression [get, private set]
 
AlterTableActionType IAlterTableAction. ActionType [get]
 
- Properties inherited from Deveel.Data.Sql.Statements.IAlterTableAction
AlterTableActionType ActionType [get]
 

Private Member Functions

 SetDefaultAction (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 SetDefaultAction.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.SetDefaultAction.SetDefaultAction ( string  columnName,
SqlExpression  defaultExpression 
)
inline

Definition at line 25 of file SetDefaultAction.cs.

25  {
26  ColumnName = columnName;
27  DefaultExpression = defaultExpression;
28  }
Deveel.Data.Sql.Statements.SetDefaultAction.SetDefaultAction ( ObjectData  data)
inlineprivate

Definition at line 30 of file SetDefaultAction.cs.

30  {
31  ColumnName = data.GetString("ColumnName");
32  DefaultExpression = data.GetValue<SqlExpression>("Default");
33  }
Defines the base class for instances that represent SQL expression tree nodes.

Member Function Documentation

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

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 51 of file SetDefaultAction.cs.

51  {
52  data.SetValue("ColumnName", ColumnName);
53  data.SetValue("Default", DefaultExpression);
54  }
void SetValue(string key, Type type, object value)
object IPreparable. Deveel.Data.Sql.Statements.SetDefaultAction.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 43 of file SetDefaultAction.cs.

43  {
44  var defaultExp = DefaultExpression;
45  if (defaultExp != null)
46  defaultExp = defaultExp.Prepare(preparer);
47 
48  return new SetDefaultAction(ColumnName, defaultExp);
49  }
SetDefaultAction(string columnName, SqlExpression defaultExpression)
virtual SqlExpression Prepare(IExpressionPreparer preparer)

Property Documentation

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

Definition at line 39 of file SetDefaultAction.cs.

string Deveel.Data.Sql.Statements.SetDefaultAction.ColumnName
getprivate set

Definition at line 35 of file SetDefaultAction.cs.

SqlExpression Deveel.Data.Sql.Statements.SetDefaultAction.DefaultExpression
getprivate set

Definition at line 37 of file SetDefaultAction.cs.


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