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.Expressions.SqlQueryExpression Class Reference
Inheritance diagram for Deveel.Data.Sql.Expressions.SqlQueryExpression:
Deveel.Data.Sql.Expressions.SqlExpression Deveel.Data.Serialization.ISerializable

Public Member Functions

 SqlQueryExpression (IEnumerable< SelectColumn > selectColumns)
 
- Public Member Functions inherited from Deveel.Data.Sql.Expressions.SqlExpression
virtual SqlExpression Prepare (IExpressionPreparer preparer)
 
virtual SqlExpression Accept (SqlExpressionVisitor visitor)
 
virtual SqlExpression Evaluate (EvaluateContext context)
 When overridden by a derived class, this method evaluates the expression within the provided context. More...
 
SqlExpression Evaluate ()
 Statically evaluates the expression, outside any context. More...
 
SqlExpression Evaluate (IRequest context, IVariableResolver variables)
 
SqlExpression Evaluate (IRequest context, IVariableResolver variables, IGroupResolver group)
 
override string ToString ()
 

Protected Member Functions

override void GetData (SerializeData data)
 

Properties

IEnumerable< SelectColumnSelectColumns [get, private set]
 
FromClause FromClause [get, set]
 
SqlExpression WhereExpression [get, set]
 
SqlExpression HavingExpression [get, set]
 
IEnumerable< SqlExpressionGroupBy [get, set]
 
ObjectName GroupMax [get, set]
 
SqlQueryExpression NextComposite [get, set]
 
override SqlExpressionType ExpressionType [get]
 
override bool CanEvaluate [get]
 
CompositeFunction CompositeFunction [get, set]
 
bool IsCompositeAll [get, set]
 
bool Distinct [get, set]
 
- Properties inherited from Deveel.Data.Sql.Expressions.SqlExpression
abstract SqlExpressionType ExpressionType [get]
 Gets the type code of this SQL expression. More...
 
virtual bool CanEvaluate [get]
 Gets a value indicating whether the expression can be evaluated to another simpler one. More...
 
int EvaluatePrecedence [get, set]
 

Private Member Functions

 SqlQueryExpression (ObjectData data)
 

Additional Inherited Members

- Static Public Member Functions inherited from Deveel.Data.Sql.Expressions.SqlExpression
static SqlExpression Parse (string s)
 Parses the given SQL string to an expression that can be evaluated. More...
 
static SqlExpression Parse (string s, ISystemContext context)
 Parses the given SQL string to an expression that can be evaluated. More...
 
static SqlConstantExpression Constant (object value)
 
static SqlConstantExpression Constant (DataObject value)
 
static SqlCastExpression Cast (SqlExpression value, SqlType destType)
 
static SqlFunctionCallExpression FunctionCall (ObjectName functionName)
 
static SqlFunctionCallExpression FunctionCall (ObjectName functionName, SqlExpression[] args)
 
static SqlFunctionCallExpression FunctionCall (string functionName)
 
static SqlFunctionCallExpression FunctionCall (string functionName, SqlExpression[] args)
 
static SqlReferenceExpression Reference (ObjectName objectName)
 
static SqlVariableReferenceExpression VariableReference (string varName)
 
static SqlConditionalExpression Conditional (SqlExpression testExpression, SqlExpression ifTrue)
 
static SqlConditionalExpression Conditional (SqlExpression testExpression, SqlExpression ifTrue, SqlExpression ifFalse)
 
static SqlBinaryExpression Binary (SqlExpression left, SqlExpressionType expressionType, SqlExpression right)
 
static SqlBinaryExpression Equal (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression NotEqual (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Is (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression IsNot (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression SmallerOrEqualThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression GreaterOrEqualThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression SmallerThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression GreaterThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Like (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression NotLike (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression And (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Or (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression XOr (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Add (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Subtract (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Multiply (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Divide (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Modulo (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression Any (SqlExpression left, SqlExpressionType anyType, SqlExpression right)
 
static SqlBinaryExpression AnyEqual (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AnyNotEqual (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AnyGreaterThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AnyGreaterOrEqualThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AnySmallerThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AnySmallerOrEqualThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression All (SqlExpression left, SqlExpressionType allType, SqlExpression right)
 
static SqlBinaryExpression AllEqual (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AllNotEqual (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AllGreaterThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AllGreaterOrEqualThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AllSmallerThan (SqlExpression left, SqlExpression right)
 
static SqlBinaryExpression AllSmallerOrEqualThan (SqlExpression left, SqlExpression right)
 
static SqlUnaryExpression Unary (SqlExpressionType expressionType, SqlExpression operand)
 
static SqlUnaryExpression Not (SqlExpression operand)
 
static SqlUnaryExpression Negate (SqlExpression operand)
 
static SqlUnaryExpression UnaryPlus (SqlExpression operand)
 
static SqlAssignExpression Assign (SqlExpression reference, SqlExpression valueExpression)
 
static SqlTupleExpression Tuple (SqlExpression[] expressions)
 
static SqlTupleExpression Tuple (SqlExpression expr1, SqlExpression exp2)
 
static SqlTupleExpression Tuple (SqlExpression expr1, SqlExpression expr2, SqlExpression expr3)
 
- Package Functions inherited from Deveel.Data.Sql.Expressions.SqlExpression
 SqlExpression ()
 Internally constructs the SQL expression, avoiding external implementations to be allowed to inherit this class. More...
 
 SqlExpression (ObjectData data)
 
- Static Package Functions inherited from Deveel.Data.Sql.Expressions.SqlExpression
static void Serialize (SqlExpression expression, BinaryWriter writer)
 
static SqlExpression Deserialize (BinaryReader reader)
 

Detailed Description

Definition at line 25 of file SqlQueryExpression.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Expressions.SqlQueryExpression.SqlQueryExpression ( IEnumerable< SelectColumn selectColumns)
inline

Definition at line 26 of file SqlQueryExpression.cs.

26  {
27  SelectColumns = selectColumns;
28  FromClause = new FromClause();
29  }
Deveel.Data.Sql.Expressions.SqlQueryExpression.SqlQueryExpression ( ObjectData  data)
inlineprivate

Definition at line 31 of file SqlQueryExpression.cs.

31  {
32  if (data.HasValue("Columns"))
33  SelectColumns = data.GetValue<SelectColumn[]>("Columns");
34 
35  Distinct = data.GetBoolean("Distinct");
36  FromClause = data.GetValue<FromClause>("From");
37  WhereExpression = data.GetValue<SqlExpression>("Where");
38  HavingExpression = data.GetValue<SqlExpression>("Having");
39  GroupBy = data.GetValue<SqlExpression[]>("GroupBy");
40  GroupMax = data.GetValue<ObjectName>("GroupMax");
41  NextComposite = data.GetValue<SqlQueryExpression>("NextComposite");
42 
43  if (data.HasValue("CompositeFunction"))
44  CompositeFunction = (CompositeFunction) data.GetInt32("CompositeFunction");
45 
46  IsCompositeAll = data.GetBoolean("CompositeAll");
47  }
SqlExpression()
Internally constructs the SQL expression, avoiding external implementations to be allowed to inherit ...
SqlQueryExpression(IEnumerable< SelectColumn > selectColumns)

Member Function Documentation

override void Deveel.Data.Sql.Expressions.SqlQueryExpression.GetData ( SerializeData  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Expressions.SqlExpression.

Definition at line 77 of file SqlQueryExpression.cs.

77  {
78  if (SelectColumns != null)
79  data.SetValue("Columns", SelectColumns.ToArray());
80 
81  data.SetValue("Distinct", Distinct);
82  data.SetValue("From", FromClause);
83  data.SetValue("Where", WhereExpression);
84  data.SetValue("Having", HavingExpression);
85 
86  if (GroupBy != null)
87  data.SetValue("GroupBy", GroupBy.ToArray());
88 
89  data.SetValue("GroupMax", GroupMax);
90  data.SetValue("NextComposite", NextComposite);
91  data.SetValue("CompositeFunction", (int)CompositeFunction);
92  data.SetValue("CompositeAll", IsCompositeAll);
93  }
void SetValue(string key, Type type, object value)

Property Documentation

override bool Deveel.Data.Sql.Expressions.SqlQueryExpression.CanEvaluate
get

Definition at line 67 of file SqlQueryExpression.cs.

CompositeFunction Deveel.Data.Sql.Expressions.SqlQueryExpression.CompositeFunction
getset

Definition at line 71 of file SqlQueryExpression.cs.

bool Deveel.Data.Sql.Expressions.SqlQueryExpression.Distinct
getset

Definition at line 75 of file SqlQueryExpression.cs.

override SqlExpressionType Deveel.Data.Sql.Expressions.SqlQueryExpression.ExpressionType
get

Definition at line 63 of file SqlQueryExpression.cs.

FromClause Deveel.Data.Sql.Expressions.SqlQueryExpression.FromClause
getset

Definition at line 51 of file SqlQueryExpression.cs.

IEnumerable<SqlExpression> Deveel.Data.Sql.Expressions.SqlQueryExpression.GroupBy
getset

Definition at line 57 of file SqlQueryExpression.cs.

ObjectName Deveel.Data.Sql.Expressions.SqlQueryExpression.GroupMax
getset

Definition at line 59 of file SqlQueryExpression.cs.

SqlExpression Deveel.Data.Sql.Expressions.SqlQueryExpression.HavingExpression
getset

Definition at line 55 of file SqlQueryExpression.cs.

bool Deveel.Data.Sql.Expressions.SqlQueryExpression.IsCompositeAll
getset

Definition at line 73 of file SqlQueryExpression.cs.

SqlQueryExpression Deveel.Data.Sql.Expressions.SqlQueryExpression.NextComposite
getset

Definition at line 61 of file SqlQueryExpression.cs.

IEnumerable<SelectColumn> Deveel.Data.Sql.Expressions.SqlQueryExpression.SelectColumns
getprivate set

Definition at line 49 of file SqlQueryExpression.cs.

SqlExpression Deveel.Data.Sql.Expressions.SqlQueryExpression.WhereExpression
getset

Definition at line 53 of file SqlQueryExpression.cs.


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