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

Classes

class  Prepared
 

Public Member Functions

 DropViewStatement (string[] viewNames)
 
 DropViewStatement (string[] viewNames, bool ifExists)
 
- Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
ITable Execute (IRequest context)
 Prepares and evaluates this statement into a tabular result. More...
 

Properties

string[] ViewNames [get, private set]
 
bool IfExists [get, 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

IStatement IPreparableStatement. Prepare (IRequest context)
 

Additional Inherited Members

- 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)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
 SqlStatement ()
 
 SqlStatement (ObjectData data)
 
virtual void ExecuteStatement (ExecutionContext context)
 
virtual void GetData (SerializeData data)
 
- Package Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
void SetSource (SqlQuery query)
 

Detailed Description

Definition at line 27 of file DropViewStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.DropViewStatement.DropViewStatement ( string[]  viewNames)
inline

Definition at line 28 of file DropViewStatement.cs.

29  : this(viewNames, false) {
30  }
Deveel.Data.Sql.Statements.DropViewStatement.DropViewStatement ( string[]  viewNames,
bool  ifExists 
)
inline

Definition at line 32 of file DropViewStatement.cs.

Member Function Documentation

IStatement IPreparableStatement. Deveel.Data.Sql.Statements.DropViewStatement.Prepare ( IRequest  context)
inlineprivate

Implements Deveel.Data.Sql.Statements.IPreparableStatement.

Definition at line 41 of file DropViewStatement.cs.

41  {
42  var viewNameList = ViewNames.ToList();
43  var dropViews = new List<string>();
44 
45  foreach (var tableName in viewNameList) {
46  if (dropViews.Contains(tableName, StringComparer.OrdinalIgnoreCase))
47  throw new StatementPrepareException(String.Format("Duplicated table name '{0}' in the list of tables to drop.",
48  tableName));
49 
50  dropViews.Add(tableName);
51  }
52 
53  var resolvedNames = dropViews.Select(context.Query.ResolveObjectName);
54 
55  return new Prepared(resolvedNames.ToArray(), IfExists);
56  }
A long string in the system.

Property Documentation

bool Deveel.Data.Sql.Statements.DropViewStatement.IfExists
getset

Definition at line 39 of file DropViewStatement.cs.

string [] Deveel.Data.Sql.Statements.DropViewStatement.ViewNames
getprivate set

Definition at line 37 of file DropViewStatement.cs.


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