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

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)
 

Package Functions

 Prepared (TableInfo tableInfo, bool ifNotExists, bool temporary)
 
- Package Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
void SetSource (SqlQuery query)
 

Properties

TableInfo TableInfo [get, private set]
 
bool Temporary [get, private set]
 
bool IfNotExists [get, private 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

 Prepared (ObjectData data)
 

Additional Inherited Members

- Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
ITable Execute (IRequest context)
 Prepares and evaluates this statement into a tabular result. More...
 
- 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)
 

Detailed Description

Definition at line 101 of file CreateTableStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.CreateTableStatement.Prepared.Prepared ( ObjectData  data)
inlineprivate

Definition at line 102 of file CreateTableStatement.cs.

102  {
103  TableInfo = data.GetValue<TableInfo>("TableInfo");
104  Temporary = data.GetBoolean("Temporary");
105  IfNotExists = data.GetBoolean("IfNotExists");
106  }
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41
Deveel.Data.Sql.Statements.CreateTableStatement.Prepared.Prepared ( TableInfo  tableInfo,
bool  ifNotExists,
bool  temporary 
)
inlinepackage

Definition at line 114 of file CreateTableStatement.cs.

114  {
115  TableInfo = tableInfo;
116  IfNotExists = ifNotExists;
117  Temporary = temporary;
118  }
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41

Member Function Documentation

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

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

Definition at line 120 of file CreateTableStatement.cs.

120  {
121  try {
122  context.Request.Query.CreateTable(TableInfo, IfNotExists, Temporary);
123  } catch (SecurityException ex) {
124  throw new StatementException(String.Format("A security error occurred while creating the table '{0}'.", TableInfo.TableName), ex);
125  }
126  }
A long string in the system.
ObjectName TableName
Gets the fully qualified name of the table that is ensured to be unique within the system...
Definition: TableInfo.cs:97
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41
override void Deveel.Data.Sql.Statements.CreateTableStatement.Prepared.GetData ( SerializeData  data)
inlineprotectedvirtual

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

Definition at line 128 of file CreateTableStatement.cs.

128  {
129  data.SetValue("TableInfo", typeof(TableInfo), TableInfo);
130  data.SetValue("Temporary", Temporary);
131  data.SetValue("IfNotExists", IfNotExists);
132  }
void SetValue(string key, Type type, object value)
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41

Property Documentation

bool Deveel.Data.Sql.Statements.CreateTableStatement.Prepared.IfNotExists
getprivate set

Definition at line 112 of file CreateTableStatement.cs.

TableInfo Deveel.Data.Sql.Statements.CreateTableStatement.Prepared.TableInfo
getprivate set

Definition at line 108 of file CreateTableStatement.cs.

bool Deveel.Data.Sql.Statements.CreateTableStatement.Prepared.Temporary
getprivate set

Definition at line 110 of file CreateTableStatement.cs.


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