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

Public Member Functions

 LoopControlStatement (LoopControlType controlType)
 
 LoopControlStatement (LoopControlType controlType, SqlExpression whenExpression)
 
 LoopControlStatement (LoopControlType controlType, string label)
 
 LoopControlStatement (LoopControlType controlType, string label, SqlExpression whenExpression)
 
- Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
ITable Execute (IRequest context)
 Prepares and evaluates this statement into a tabular result. More...
 

Protected Member Functions

override void ExecuteStatement (ExecutionContext context)
 
override void GetData (SerializeData data)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
 SqlStatement ()
 
 SqlStatement (ObjectData data)
 

Properties

LoopControlType ControlType [get, private set]
 
string Label [get, set]
 
SqlExpression WhenExpression [get, set]
 
- Properties inherited from Deveel.Data.Sql.Statements.SqlStatement
SqlQuery SourceQuery [get, set]
 Gets the SqlQuery that is the origin of this statement. More...
 
bool IsFromQuery [get, private set]
 Gets a boolean value indicating if this object was formed from the parsing of a SqlQuery or if it was manually created. More...
 
- Properties inherited from Deveel.Data.Sql.Statements.IStatement
SqlQuery SourceQuery [get]
 

Private Member Functions

 LoopControlStatement (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...
 

Additional Inherited Members

- Static Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
static IEnumerable< SqlStatementParse (string sqlSource)
 Parses a given string into one of more statements. More...
 
static IEnumerable< SqlStatementParse (IContext context, string sqlSource)
 Parses a given string into one of more statements. More...
 
static IEnumerable< SqlStatementParse (IContext context, SqlQuery query)
 
- Package Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
void SetSource (SqlQuery query)
 

Detailed Description

Definition at line 25 of file LoopControlStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.LoopControlStatement.LoopControlStatement ( LoopControlType  controlType)
inline

Definition at line 26 of file LoopControlStatement.cs.

27  : this(controlType, (SqlExpression) null) {
28  }
Defines the base class for instances that represent SQL expression tree nodes.
Deveel.Data.Sql.Statements.LoopControlStatement.LoopControlStatement ( LoopControlType  controlType,
SqlExpression  whenExpression 
)
inline

Definition at line 30 of file LoopControlStatement.cs.

31  : this(controlType, null, whenExpression) {
32  }
Deveel.Data.Sql.Statements.LoopControlStatement.LoopControlStatement ( LoopControlType  controlType,
string  label 
)
inline

Definition at line 34 of file LoopControlStatement.cs.

35  : this(controlType, label, null) {
36  }
Deveel.Data.Sql.Statements.LoopControlStatement.LoopControlStatement ( LoopControlType  controlType,
string  label,
SqlExpression  whenExpression 
)
inline

Definition at line 38 of file LoopControlStatement.cs.

Deveel.Data.Sql.Statements.LoopControlStatement.LoopControlStatement ( ObjectData  data)
inlineprivate

Definition at line 44 of file LoopControlStatement.cs.

44  {
45  Label = data.GetString("ControlType");
46  ControlType = (LoopControlType) data.GetInt32("ControlType");
47  WhenExpression = data.GetValue<SqlExpression>("WhenExpression");
48  }
Defines the base class for instances that represent SQL expression tree nodes.

Member Function Documentation

override void Deveel.Data.Sql.Statements.LoopControlStatement.ExecuteStatement ( ExecutionContext  context)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Statements.SqlStatement.

Definition at line 65 of file LoopControlStatement.cs.

65  {
66  throw new NotImplementedException();
67  }
override void Deveel.Data.Sql.Statements.LoopControlStatement.GetData ( SerializeData  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Statements.SqlStatement.

Definition at line 69 of file LoopControlStatement.cs.

69  {
70  data.SetValue("Label", Label);
71  data.SetValue("WhenExpression", WhenExpression);
72  data.SetValue("ControlType", (int)ControlType);
73  }
void SetValue(string key, Type type, object value)
object IPreparable. Deveel.Data.Sql.Statements.LoopControlStatement.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 56 of file LoopControlStatement.cs.

56  {
57  var label = Label;
58  var whenExp = WhenExpression;
59  if (whenExp != null)
60  whenExp = whenExp.Prepare(preparer);
61 
62  return new LoopControlStatement(ControlType, label, whenExp);
63  }
virtual SqlExpression Prepare(IExpressionPreparer preparer)

Property Documentation

LoopControlType Deveel.Data.Sql.Statements.LoopControlStatement.ControlType
getprivate set

Definition at line 50 of file LoopControlStatement.cs.

string Deveel.Data.Sql.Statements.LoopControlStatement.Label
getset

Definition at line 52 of file LoopControlStatement.cs.

SqlExpression Deveel.Data.Sql.Statements.LoopControlStatement.WhenExpression
getset

Definition at line 54 of file LoopControlStatement.cs.


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