DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Sql.Expressions.EvaluateContext Class Reference

Encapsulates the elements needed to evaluate an SqlExpression More...

Public Member Functions

 EvaluateContext (IRequest request, IVariableResolver variableResolver)
 
 EvaluateContext (IRequest request, IVariableResolver variableResolver, IGroupResolver groupResolver)
 

Properties

IVariableResolver VariableResolver [get, private set]
 Gets an object used to resolve variables from within the expression. More...
 
IGroupResolver GroupResolver [get, private set]
 Gets the object that aggregate functions will use to resolve variable groups More...
 
IRequest Request [get, private set]
 Gets the query in which an expression is evaluated. More...
 
User User [get]
 Gets the current user of the context. More...
 

Detailed Description

Encapsulates the elements needed to evaluate an SqlExpression

Definition at line 26 of file EvaluateContext.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Expressions.EvaluateContext.EvaluateContext ( IRequest  request,
IVariableResolver  variableResolver 
)
inline

Definition at line 27 of file EvaluateContext.cs.

28  : this(request, variableResolver, null) {
29  }
Deveel.Data.Sql.Expressions.EvaluateContext.EvaluateContext ( IRequest  request,
IVariableResolver  variableResolver,
IGroupResolver  groupResolver 
)
inline

Definition at line 31 of file EvaluateContext.cs.

31  {
32  GroupResolver = groupResolver;
33  VariableResolver = variableResolver;
34  Request = request;
35  }
IRequest Request
Gets the query in which an expression is evaluated.
IGroupResolver GroupResolver
Gets the object that aggregate functions will use to resolve variable groups
IVariableResolver VariableResolver
Gets an object used to resolve variables from within the expression.

Property Documentation

IGroupResolver Deveel.Data.Sql.Expressions.EvaluateContext.GroupResolver
getprivate set

Gets the object that aggregate functions will use to resolve variable groups

Definition at line 51 of file EvaluateContext.cs.

IRequest Deveel.Data.Sql.Expressions.EvaluateContext.Request
getprivate set

Gets the query in which an expression is evaluated.

Definition at line 56 of file EvaluateContext.cs.

User Deveel.Data.Sql.Expressions.EvaluateContext.User
get

Gets the current user of the context.

See also
User, Security.User

Definition at line 64 of file EvaluateContext.cs.

IVariableResolver Deveel.Data.Sql.Expressions.EvaluateContext.VariableResolver
getprivate set

Gets an object used to resolve variables from within the expression.

A variable can be resolved against an encapsulated context (for example a stored procedure or a statement within the procedure), or against the global context of the system (for example a static variable of the database or a session variable).

Definition at line 46 of file EvaluateContext.cs.


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