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.Query.FetchViewNode Class Reference
Inheritance diagram for Deveel.Data.Sql.Query.FetchViewNode:
Deveel.Data.Sql.Query.IQueryPlanNode Deveel.Data.Serialization.ISerializable

Public Member Functions

 FetchViewNode (ObjectName viewName, ObjectName aliasName)
 
ITable Evaluate (IRequest context)
 

Properties

ObjectName ViewName [get, private set]
 
ObjectName AliasName [get, private set]
 

Private Member Functions

 FetchViewNode (ObjectData data)
 
IQueryPlanNode CreateChildNode (IRequest context)
 
void ISerializable. GetData (SerializeData data)
 

Detailed Description

Definition at line 26 of file FetchViewNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.FetchViewNode.FetchViewNode ( ObjectName  viewName,
ObjectName  aliasName 
)
inline

Definition at line 27 of file FetchViewNode.cs.

27  {
28  ViewName = viewName;
29  AliasName = aliasName;
30  }
Deveel.Data.Sql.Query.FetchViewNode.FetchViewNode ( ObjectData  data)
inlineprivate

Definition at line 32 of file FetchViewNode.cs.

32  {
33  ViewName = data.GetValue<ObjectName>("ViewName");
34  AliasName = data.GetValue<ObjectName>("AliasName");
35  }

Member Function Documentation

IQueryPlanNode Deveel.Data.Sql.Query.FetchViewNode.CreateChildNode ( IRequest  context)
inlineprivate

Definition at line 41 of file FetchViewNode.cs.

41  {
42  return context.Query.GetViewQueryPlan(ViewName);
43  }
ITable Deveel.Data.Sql.Query.FetchViewNode.Evaluate ( IRequest  context)
inline

Implements Deveel.Data.Sql.Query.IQueryPlanNode.

Definition at line 45 of file FetchViewNode.cs.

45  {
46  IQueryPlanNode node = CreateChildNode(context);
47  var t = node.Evaluate(context);
48 
49  return AliasName != null ? new ReferenceTable(t, AliasName) : t;
50  }
IQueryPlanNode CreateChildNode(IRequest context)
void ISerializable. Deveel.Data.Sql.Query.FetchViewNode.GetData ( SerializeData  data)
inlineprivate

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 52 of file FetchViewNode.cs.

52  {
53  data.SetValue("ViewName", ViewName);
54  data.SetValue("AliasName", AliasName);
55  }
void SetValue(string key, Type type, object value)

Property Documentation

ObjectName Deveel.Data.Sql.Query.FetchViewNode.AliasName
getprivate set

Definition at line 39 of file FetchViewNode.cs.

ObjectName Deveel.Data.Sql.Query.FetchViewNode.ViewName
getprivate set

Definition at line 37 of file FetchViewNode.cs.


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