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.SelectIntoStatement Class Reference
Inheritance diagram for Deveel.Data.Sql.Statements.SelectIntoStatement:
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

 SelectIntoStatement (SqlQueryExpression queryExpression, SqlExpression reference)
 
- 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

SqlQueryExpression QueryExpression [get, private set]
 
SqlExpression Reference [get, private set]
 
bool IsVariableReference [get]
 
bool IsObjectReference [get]
 
- 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 26 of file SelectIntoStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.SelectIntoStatement.SelectIntoStatement ( SqlQueryExpression  queryExpression,
SqlExpression  reference 
)
inline

Definition at line 27 of file SelectIntoStatement.cs.

27  {
28  if (queryExpression == null)
29  throw new ArgumentNullException("queryExpression");
30  if (reference == null)
31  throw new ArgumentNullException("reference");
32 
33  QueryExpression = queryExpression;
34  Reference = reference;
35  }

Member Function Documentation

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

Implements Deveel.Data.Sql.Statements.IPreparableStatement.

Definition at line 49 of file SelectIntoStatement.cs.

49  {
50  var queryPlan = context.Query.Context.QueryPlanner().PlanQuery(new QueryInfo(context, QueryExpression));
51 
52  if (IsObjectReference) {
53  var tableRef = ((SqlReferenceExpression) Reference).ReferenceName;
54  return new Prepared(queryPlan, tableRef);
55  }
56 
57  if (IsVariableReference) {
58  throw new NotImplementedException();
59  }
60 
61  // Other (impossible) case...
62  throw new NotSupportedException();
63  }
An expression that references an object within a context.

Property Documentation

bool Deveel.Data.Sql.Statements.SelectIntoStatement.IsObjectReference
get

Definition at line 45 of file SelectIntoStatement.cs.

bool Deveel.Data.Sql.Statements.SelectIntoStatement.IsVariableReference
get

Definition at line 41 of file SelectIntoStatement.cs.

SqlQueryExpression Deveel.Data.Sql.Statements.SelectIntoStatement.QueryExpression
getprivate set

Definition at line 37 of file SelectIntoStatement.cs.

SqlExpression Deveel.Data.Sql.Statements.SelectIntoStatement.Reference
getprivate set

Definition at line 39 of file SelectIntoStatement.cs.


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