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.Query.SimpleSelectNode Class Reference

The node for performing a simple select operation on a table. More...

Inheritance diagram for Deveel.Data.Sql.Query.SimpleSelectNode:
Deveel.Data.Sql.Query.SingleQueryPlanNode Deveel.Data.Sql.Query.IQueryPlanNode Deveel.Data.Serialization.ISerializable

Public Member Functions

 SimpleSelectNode (IQueryPlanNode child, ObjectName columnName, SqlExpressionType op, SqlExpression expression)
 
override ITable Evaluate (IRequest context)
 

Protected Member Functions

override void GetData (SerializeData data)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Query.SingleQueryPlanNode
 SingleQueryPlanNode (IQueryPlanNode child)
 
 SingleQueryPlanNode (ObjectData data)
 

Properties

ObjectName ColumnName [get, private set]
 
SqlExpressionType OperatorType [get, private set]
 
SqlExpression Expression [get, private set]
 
- Properties inherited from Deveel.Data.Sql.Query.SingleQueryPlanNode
IQueryPlanNode Child [get, private set]
 Gets the single child node of the plan. More...
 

Private Member Functions

 SimpleSelectNode (ObjectData data)
 

Detailed Description

The node for performing a simple select operation on a table.

The simple select requires a LHS variable, an operator, and an expression representing the RHS.

Definition at line 33 of file SimpleSelectNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.SimpleSelectNode.SimpleSelectNode ( IQueryPlanNode  child,
ObjectName  columnName,
SqlExpressionType  op,
SqlExpression  expression 
)
inline

Definition at line 34 of file SimpleSelectNode.cs.

35  : base(child) {
36  ColumnName = columnName;
37  OperatorType = op;
38  Expression = expression;
39  }
Deveel.Data.Sql.Query.SimpleSelectNode.SimpleSelectNode ( ObjectData  data)
inlineprivate

Definition at line 41 of file SimpleSelectNode.cs.

42  : base(data) {
43  ColumnName = data.GetValue<ObjectName>("Column");
44  OperatorType = (SqlExpressionType) data.GetInt32("Operator");
45  Expression = data.GetValue<SqlExpression>("Expression");
46  }
SqlExpressionType
All the possible type of SqlExpression supported
Defines the base class for instances that represent SQL expression tree nodes.

Member Function Documentation

override ITable Deveel.Data.Sql.Query.SimpleSelectNode.Evaluate ( IRequest  context)
inlinevirtual

Implements Deveel.Data.Sql.Query.SingleQueryPlanNode.

Definition at line 60 of file SimpleSelectNode.cs.

60  {
61  // Solve the child branch result
62  var table = Child.Evaluate(context);
63 
64  // The select operation.
65  return table.SimpleSelect(context, ColumnName, OperatorType, Expression);
66  }
ITable Evaluate(IRequest context)
IQueryPlanNode Child
Gets the single child node of the plan.
override void Deveel.Data.Sql.Query.SimpleSelectNode.GetData ( SerializeData  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Query.SingleQueryPlanNode.

Definition at line 54 of file SimpleSelectNode.cs.

54  {
55  data.SetValue("Column", ColumnName);
56  data.SetValue("Operator", (int)OperatorType);
57  data.SetValue("Expression", Expression);
58  }
void SetValue(string key, Type type, object value)

Property Documentation

ObjectName Deveel.Data.Sql.Query.SimpleSelectNode.ColumnName
getprivate set

Definition at line 48 of file SimpleSelectNode.cs.

SqlExpression Deveel.Data.Sql.Query.SimpleSelectNode.Expression
getprivate set

Definition at line 52 of file SimpleSelectNode.cs.

SqlExpressionType Deveel.Data.Sql.Query.SimpleSelectNode.OperatorType
getprivate set

Definition at line 50 of file SimpleSelectNode.cs.


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