7 namespace Deveel.Data.Sql.Statements {
10 if (
String.IsNullOrEmpty(variableName))
11 throw new ArgumentNullException(
"variableName");
12 if (variableType == null)
13 throw new ArgumentNullException(
"variableType");
15 VariableName = variableName;
16 VariableType = variableType;
19 public string VariableName {
get;
private set; }
21 public SqlType VariableType {
get;
private set; }
23 public bool IsConstant {
get; set; }
27 public bool IsNotNull {
get; set; }
31 if (DefaultExpression != null)
32 statement.DefaultExpression = DefaultExpression.Prepare(preparer);
34 statement.IsConstant = IsConstant;
39 throw new NotImplementedException();
A long string in the system.
Represents the foundation class of SQL statements to be executed.
DeclareVariableStatement(string variableName, SqlType variableType)
An interface used to prepare a SqlExpression object.
Defines the properties of a specific SQL Type and handles the values compatible.
object Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
Defines the base class for instances that represent SQL expression tree nodes.
override void ExecuteStatement(ExecutionContext context)
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...