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

Public Member Functions

 AddConstraintAction (SqlTableConstraint constraint)
 

Properties

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

Private Member Functions

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

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.AddConstraintAction.AddConstraintAction ( SqlTableConstraint  constraint)
inline

Definition at line 25 of file AddConstraintAction.cs.

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

Definition at line 32 of file AddConstraintAction.cs.

32  {
33  Constraint = data.GetValue<SqlTableConstraint>("Constraint");
34  }

Member Function Documentation

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

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 47 of file AddConstraintAction.cs.

47  {
48  data.SetValue("Constraint", Constraint);
49  }
void SetValue(string key, Type type, object value)
object IPreparable. Deveel.Data.Sql.Statements.AddConstraintAction.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 AddConstraintAction.cs.

38  {
39  var constraint = (SqlTableConstraint) (Constraint as IPreparable).Prepare(preparer);
40  return new AddConstraintAction(constraint);
41  }
AddConstraintAction(SqlTableConstraint constraint)
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
Definition: IPreparable.cs:30

Property Documentation

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

Definition at line 43 of file AddConstraintAction.cs.

SqlTableConstraint Deveel.Data.Sql.Statements.AddConstraintAction.Constraint
getprivate set

Definition at line 36 of file AddConstraintAction.cs.


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