21 namespace Deveel.Data.Sql.Expressions {
40 if (expression == null)
41 throw new ArgumentNullException(
"expression");
43 Expression = expression;
54 : this(expression, null) {
70 public string Alias {
get;
private set; }
75 ((SqlReferenceExpression) Expression).ReferenceName.IsGlob;
82 ((SqlReferenceExpression) Expression).ReferenceName.IsGlob &&
83 ((SqlReferenceExpression)Expression).ReferenceName.FullName ==
"*";
118 data.
SetValue(
"Expression", Expression);
124 var exp = Expression;
126 exp = exp.Prepare(preparer);
ObjectName ReferenceName
Gets the name of the object referenced by the expression.
void GetData(SerializeData data)
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
An expression that references an object within a context.
SelectColumn(ObjectData data)
SelectColumn(SqlExpression expression)
Constructs a new SelectColumn for the given expression.
void SetValue(string key, Type type, object value)
Describes the name of an object within a database.
An interface used to prepare a SqlExpression object.
Represents a column selected to be in the output of a select statement.
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
object Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
static SqlReferenceExpression Reference(ObjectName objectName)
object GetValue(string key)
Defines the base class for instances that represent SQL expression tree nodes.
static SelectColumn Glob(string glob)
Creates a special SelectColumn that is used to select all the columns in a table. ...
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
string GetString(string key)
SelectColumn(SqlExpression expression, string alias)
Constructs a new SelectColumn for the given expression and aliased with the given name...