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.FetchTableNode Class Reference

The node for fetching a table from the current transaction. More...

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

Public Member Functions

 FetchTableNode (ObjectName tableName, ObjectName aliasName)
 
ITable Evaluate (IRequest context)
 

Properties

ObjectName TableName [get, private set]
 The name of the table to fetch. More...
 
ObjectName AliasName [get, private set]
 The name to alias the table as. More...
 

Private Member Functions

 FetchTableNode (ObjectData data)
 
void ISerializable. GetData (SerializeData data)
 

Detailed Description

The node for fetching a table from the current transaction.

This is a tree node and has no children.

Definition at line 32 of file FetchTableNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.FetchTableNode.FetchTableNode ( ObjectName  tableName,
ObjectName  aliasName 
)
inline

Definition at line 33 of file FetchTableNode.cs.

33  {
34  TableName = tableName;
35  AliasName = aliasName;
36  }
ObjectName AliasName
The name to alias the table as.
ObjectName TableName
The name of the table to fetch.
Deveel.Data.Sql.Query.FetchTableNode.FetchTableNode ( ObjectData  data)
inlineprivate

Definition at line 38 of file FetchTableNode.cs.

38  {
39  TableName = data.GetValue<ObjectName>("TableName");
40  AliasName = data.GetValue<ObjectName>("AliasName");
41  }
ObjectName AliasName
The name to alias the table as.
ObjectName TableName
The name of the table to fetch.

Member Function Documentation

ITable Deveel.Data.Sql.Query.FetchTableNode.Evaluate ( IRequest  context)
inline

Implements Deveel.Data.Sql.Query.IQueryPlanNode.

Definition at line 58 of file FetchTableNode.cs.

58  {
59  var t = context.Query.GetTable(TableName);
60  return AliasName != null ? new ReferenceTable(t, AliasName) : t;
61  }
ObjectName AliasName
The name to alias the table as.
ObjectName TableName
The name of the table to fetch.
void ISerializable. Deveel.Data.Sql.Query.FetchTableNode.GetData ( SerializeData  data)
inlineprivate

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 53 of file FetchTableNode.cs.

53  {
54  data.SetValue("TableName", TableName);
55  data.SetValue("AliasName", AliasName);
56  }
ObjectName AliasName
The name to alias the table as.
void SetValue(string key, Type type, object value)
ObjectName TableName
The name of the table to fetch.

Property Documentation

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

The name to alias the table as.

Definition at line 51 of file FetchTableNode.cs.

ObjectName Deveel.Data.Sql.Query.FetchTableNode.TableName
getprivate set

The name of the table to fetch.

Definition at line 46 of file FetchTableNode.cs.


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