DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Static Public Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Views.ViewInfo Class Reference
Inheritance diagram for Deveel.Data.Sql.Views.ViewInfo:
Deveel.Data.Sql.IObjectInfo Deveel.Data.Serialization.ISerializable

Public Member Functions

 ViewInfo (TableInfo tableInfo, SqlQueryExpression queryExpression, IQueryPlanNode queryPlan)
 
SqlBinary AsBinary ()
 

Static Public Member Functions

static void Serialize (ViewInfo viewInfo, BinaryWriter writer)
 
static ViewInfo Deserialize (Stream stream)
 

Properties

TableInfo TableInfo [get, private set]
 
ObjectName ViewName [get]
 
SqlQueryExpression QueryExpression [get, private set]
 
IQueryPlanNode QueryPlan [get, private set]
 
DbObjectType IObjectInfo. ObjectType [get]
 
ObjectName IObjectInfo. FullName [get]
 
- Properties inherited from Deveel.Data.Sql.IObjectInfo
DbObjectType ObjectType [get]
 
ObjectName FullName [get]
 

Private Member Functions

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

Detailed Description

Definition at line 29 of file ViewInfo.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Views.ViewInfo.ViewInfo ( TableInfo  tableInfo,
SqlQueryExpression  queryExpression,
IQueryPlanNode  queryPlan 
)
inline

Definition at line 30 of file ViewInfo.cs.

30  {
31  if (tableInfo == null)
32  throw new ArgumentNullException("tableInfo");
33  if (queryExpression == null)
34  throw new ArgumentNullException("queryExpression");
35 
36  TableInfo = tableInfo;
37  QueryExpression = queryExpression;
38  QueryPlan = queryPlan;
39  }
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41
SqlQueryExpression QueryExpression
Definition: ViewInfo.cs:54
IQueryPlanNode QueryPlan
Definition: ViewInfo.cs:56
Deveel.Data.Sql.Views.ViewInfo.ViewInfo ( ObjectData  data)
inlineprivate

Definition at line 41 of file ViewInfo.cs.

41  {
42  TableInfo = data.GetValue<TableInfo>("TableInfo");
43  QueryExpression = data.GetValue<SqlQueryExpression>("QueryExpression");
44  QueryPlan = data.GetValue<IQueryPlanNode>("QueryPlan");
45 
46  }
A node element of a query plan tree. /summary>
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41
SqlQueryExpression QueryExpression
Definition: ViewInfo.cs:54
IQueryPlanNode QueryPlan
Definition: ViewInfo.cs:56

Member Function Documentation

SqlBinary Deveel.Data.Sql.Views.ViewInfo.AsBinary ( )
inline

Definition at line 112 of file ViewInfo.cs.

112  {
113  using (var stream = new MemoryStream()) {
114  using (var writer = new BinaryWriter(stream, Encoding.Unicode)) {
115  var serializer = new BinarySerializer();
116  serializer.Serialize(writer, this);
117  writer.Flush();
118  }
119 
120  var data = stream.ToArray();
121  return new SqlBinary(data);
122  }
123  }
Implements a BINARY object that handles a limited number of bytes, not exceding MaxLength.
Definition: SqlBinary.cs:27
static ViewInfo Deveel.Data.Sql.Views.ViewInfo.Deserialize ( Stream  stream)
inlinestatic

Definition at line 77 of file ViewInfo.cs.

77  {
78  var serializer = new BinarySerializer();
79  return (ViewInfo) serializer.Deserialize(stream, typeof (ViewInfo));
80  }
ViewInfo(TableInfo tableInfo, SqlQueryExpression queryExpression, IQueryPlanNode queryPlan)
Definition: ViewInfo.cs:30
void ISerializable. Deveel.Data.Sql.Views.ViewInfo.GetData ( SerializeData  data)
inlineprivate

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 66 of file ViewInfo.cs.

66  {
67  data.SetValue("TableInfo", TableInfo);
68  data.SetValue("QueryPlan", QueryPlan);
69  data.SetValue("QueryExpression", QueryExpression);
70  }
void SetValue(string key, Type type, object value)
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41
SqlQueryExpression QueryExpression
Definition: ViewInfo.cs:54
IQueryPlanNode QueryPlan
Definition: ViewInfo.cs:56
static void Deveel.Data.Sql.Views.ViewInfo.Serialize ( ViewInfo  viewInfo,
BinaryWriter  writer 
)
inlinestatic

Definition at line 72 of file ViewInfo.cs.

72  {
73  var serializer = new BinarySerializer();
74  serializer.Serialize(writer, viewInfo);
75  }

Property Documentation

ObjectName IObjectInfo. Deveel.Data.Sql.Views.ViewInfo.FullName
getprivate

Definition at line 62 of file ViewInfo.cs.

DbObjectType IObjectInfo. Deveel.Data.Sql.Views.ViewInfo.ObjectType
getprivate

Definition at line 58 of file ViewInfo.cs.

SqlQueryExpression Deveel.Data.Sql.Views.ViewInfo.QueryExpression
getprivate set

Definition at line 54 of file ViewInfo.cs.

IQueryPlanNode Deveel.Data.Sql.Views.ViewInfo.QueryPlan
getprivate set

Definition at line 56 of file ViewInfo.cs.

TableInfo Deveel.Data.Sql.Views.ViewInfo.TableInfo
getprivate set

Definition at line 48 of file ViewInfo.cs.

ObjectName Deveel.Data.Sql.Views.ViewInfo.ViewName
get

Definition at line 50 of file ViewInfo.cs.


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