DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Expressions.AggregateChecker Class Reference
Inheritance diagram for Deveel.Data.Sql.Expressions.AggregateChecker:
Deveel.Data.Sql.Expressions.SqlExpressionVisitor

Public Member Functions

 AggregateChecker (IRequest query)
 
override SqlExpression VisitFunctionCall (SqlFunctionCallExpression expression)
 Visits the expression that calls the function defined. More...
 
override SqlExpression VisitConstant (SqlConstantExpression constant)
 
bool HasAggregate (SqlExpression expression)
 
- Public Member Functions inherited from Deveel.Data.Sql.Expressions.SqlExpressionVisitor
virtual SqlExpression Visit (SqlExpression expression)
 Visits a given SQL expression. More...
 
virtual SqlExpression[] VisitExpressionList (SqlExpression[] list)
 Visits a list of expressions given. More...
 
virtual SqlExpression VisitBinary (SqlBinaryExpression binaryEpression)
 
virtual SqlExpression VisitUnary (SqlUnaryExpression unary)
 
virtual SqlExpression VisitCast (SqlCastExpression castExpression)
 
virtual SqlExpression VisitReference (SqlReferenceExpression reference)
 
virtual SqlExpression VisitVariableReference (SqlVariableReferenceExpression reference)
 
virtual SqlExpression VisitAssign (SqlAssignExpression assign)
 
virtual SqlExpression VisitConditional (SqlConditionalExpression conditional)
 
virtual SqlExpression VisitTuple (SqlTupleExpression expression)
 
virtual SqlExpression VisitQuery (SqlQueryExpression query)
 

Private Attributes

readonly IRequest query
 
bool aggFunFound
 

Detailed Description

Definition at line 23 of file AggregateChecker.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Expressions.AggregateChecker.AggregateChecker ( IRequest  query)
inline

Definition at line 27 of file AggregateChecker.cs.

27  {
28  this.query = query;
29  }

Member Function Documentation

bool Deveel.Data.Sql.Expressions.AggregateChecker.HasAggregate ( SqlExpression  expression)
inline

Definition at line 43 of file AggregateChecker.cs.

43  {
44  Visit(expression);
45  return aggFunFound;
46  }
virtual SqlExpression Visit(SqlExpression expression)
Visits a given SQL expression.
override SqlExpression Deveel.Data.Sql.Expressions.AggregateChecker.VisitConstant ( SqlConstantExpression  constant)
inlinevirtual

Parameters
constant
Returns

Reimplemented from Deveel.Data.Sql.Expressions.SqlExpressionVisitor.

Definition at line 38 of file AggregateChecker.cs.

38  {
39  // TODO: if the value is an array iterate
40  return base.VisitConstant(constant);
41  }
override SqlExpression Deveel.Data.Sql.Expressions.AggregateChecker.VisitFunctionCall ( SqlFunctionCallExpression  expression)
inlinevirtual

Visits the expression that calls the function defined.

Parameters
expressionThe SqlFunctionCallExpression to visit.
Returns

Reimplemented from Deveel.Data.Sql.Expressions.SqlExpressionVisitor.

Definition at line 31 of file AggregateChecker.cs.

31  {
32  var invoke = new Invoke(expression.FunctioName, expression.Arguments);
33  aggFunFound = invoke.IsAggregate(query);
34 
35  return base.VisitFunctionCall(expression);
36  }
The information about the invocation of a routine, including the full name and arguments (as SqlExpre...
Definition: Invoke.cs:30

Member Data Documentation

bool Deveel.Data.Sql.Expressions.AggregateChecker.aggFunFound
private

Definition at line 25 of file AggregateChecker.cs.

readonly IRequest Deveel.Data.Sql.Expressions.AggregateChecker.query
private

Definition at line 24 of file AggregateChecker.cs.


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