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

Public Member Functions

 DeclareVariableStatement (string variableName, SqlType variableType)
 
- Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
ITable Execute (IRequest context)
 Prepares and evaluates this statement into a tabular result. More...
 

Protected Member Functions

override void ExecuteStatement (ExecutionContext context)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
 SqlStatement ()
 
 SqlStatement (ObjectData data)
 
virtual void GetData (SerializeData data)
 

Properties

string VariableName [get, private set]
 
SqlType VariableType [get, private set]
 
bool IsConstant [get, set]
 
SqlExpression DefaultExpression [get, set]
 
bool IsNotNull [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

object IPreparable. Prepare (IExpressionPreparer preparer)
 Converts the underlying value of this instance into an object that can be evaluated by an expression. More...
 

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)
 
- Package Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
void SetSource (SqlQuery query)
 

Detailed Description

Definition at line 8 of file DeclareVariableStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.DeclareVariableStatement.DeclareVariableStatement ( string  variableName,
SqlType  variableType 
)
inline

Definition at line 9 of file DeclareVariableStatement.cs.

9  {
10  if (String.IsNullOrEmpty(variableName))
11  throw new ArgumentNullException("variableName");
12  if (variableType == null)
13  throw new ArgumentNullException("variableType");
14 
15  VariableName = variableName;
16  VariableType = variableType;
17  }
A long string in the system.

Member Function Documentation

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

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

Definition at line 38 of file DeclareVariableStatement.cs.

38  {
39  throw new NotImplementedException();
40  }
object IPreparable. Deveel.Data.Sql.Statements.DeclareVariableStatement.Prepare ( IExpressionPreparer  preparer)
inlineprivate

Converts the underlying value of this instance into an object that can be evaluated by an expression.

Parameters
preparerThe context used to prepare this object.
Returns
Returns an object that can be evaluated by an expression.

Implements Deveel.Data.Sql.Expressions.IPreparable.

Definition at line 29 of file DeclareVariableStatement.cs.

29  {
31  if (DefaultExpression != null)
32  statement.DefaultExpression = DefaultExpression.Prepare(preparer);
33 
34  statement.IsConstant = IsConstant;
35  return statement;
36  }
DeclareVariableStatement(string variableName, SqlType variableType)
virtual SqlExpression Prepare(IExpressionPreparer preparer)

Property Documentation

SqlExpression Deveel.Data.Sql.Statements.DeclareVariableStatement.DefaultExpression
getset

Definition at line 25 of file DeclareVariableStatement.cs.

bool Deveel.Data.Sql.Statements.DeclareVariableStatement.IsConstant
getset

Definition at line 23 of file DeclareVariableStatement.cs.

bool Deveel.Data.Sql.Statements.DeclareVariableStatement.IsNotNull
getset

Definition at line 27 of file DeclareVariableStatement.cs.

string Deveel.Data.Sql.Statements.DeclareVariableStatement.VariableName
getprivate set

Definition at line 19 of file DeclareVariableStatement.cs.

SqlType Deveel.Data.Sql.Statements.DeclareVariableStatement.VariableType
getprivate set

Definition at line 21 of file DeclareVariableStatement.cs.


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