DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Routines.RoutineExtensions Class Reference

Static Public Member Functions

static InvokeResult Execute (this IRoutine routine)
 
static InvokeResult Execute (this IRoutine routine, SqlExpression[] args)
 
static InvokeResult Execute (this IRoutine routine, SqlExpression[] args, IQuery context)
 
static InvokeResult Execute (this IRoutine routine, SqlExpression[] args, IQuery query, IVariableResolver resolver)
 
static InvokeResult Execute (this IRoutine routine, IQuery query)
 
static InvokeResult Execute (this IRoutine routine, IQuery query, IVariableResolver resolver)
 
static InvokeResult Execute (this IRoutine routine, IQuery query, IVariableResolver resolver, IGroupResolver group)
 
static InvokeResult Execute (this IRoutine routine, SqlExpression[] args, IQuery query, IVariableResolver resolver, IGroupResolver group)
 
static InvokeResult Execute (this IRoutine routine, DataObject[] args)
 

Detailed Description

Definition at line 25 of file RoutineExtensions.cs.

Member Function Documentation

static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine)
inlinestatic

Definition at line 26 of file RoutineExtensions.cs.

26  {
27  return Execute(routine, new SqlExpression[0]);
28  }
static InvokeResult Execute(this IRoutine routine)
Defines the base class for instances that represent SQL expression tree nodes.
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
SqlExpression[]  args 
)
inlinestatic

Definition at line 30 of file RoutineExtensions.cs.

30  {
31  return Execute(routine, args, null);
32  }
static InvokeResult Execute(this IRoutine routine)
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
SqlExpression[]  args,
IQuery  context 
)
inlinestatic

Definition at line 34 of file RoutineExtensions.cs.

34  {
35  return Execute(routine, args, context, null);
36  }
static InvokeResult Execute(this IRoutine routine)
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
SqlExpression[]  args,
IQuery  query,
IVariableResolver  resolver 
)
inlinestatic

Definition at line 38 of file RoutineExtensions.cs.

38  {
39  return Execute(routine, args, query, resolver, null);
40  }
static InvokeResult Execute(this IRoutine routine)
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
IQuery  query 
)
inlinestatic

Definition at line 42 of file RoutineExtensions.cs.

42  {
43  return Execute(routine, query, null);
44  }
static InvokeResult Execute(this IRoutine routine)
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
IQuery  query,
IVariableResolver  resolver 
)
inlinestatic

Definition at line 46 of file RoutineExtensions.cs.

46  {
47  return Execute(routine, query, resolver, null);
48  }
static InvokeResult Execute(this IRoutine routine)
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
IQuery  query,
IVariableResolver  resolver,
IGroupResolver  group 
)
inlinestatic

Definition at line 50 of file RoutineExtensions.cs.

50  {
51  return Execute(routine, new SqlExpression[0], query, resolver, group);
52  }
static InvokeResult Execute(this IRoutine routine)
Defines the base class for instances that represent SQL expression tree nodes.
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
SqlExpression[]  args,
IQuery  query,
IVariableResolver  resolver,
IGroupResolver  group 
)
inlinestatic

Definition at line 54 of file RoutineExtensions.cs.

54  {
55  var request = new Invoke(routine.FullName, args);
56 
57  if (query != null &&
58  !query.UserCanExecuteFunction(request))
59  throw new InvalidOperationException();
60 
61  var executeContext = new InvokeContext(request, routine, resolver, group, query);
62  return routine.Execute(executeContext);
63  }
static InvokeResult Deveel.Data.Routines.RoutineExtensions.Execute ( this IRoutine  routine,
DataObject[]  args 
)
inlinestatic

Definition at line 65 of file RoutineExtensions.cs.

65  {
66  var exps = new SqlExpression[0];
67  if (args != null && args.Length > 0) {
68  exps = new SqlExpression[args.Length];
69 
70  for (int i = 0; i < args.Length; i++) {
71  exps[i] = SqlExpression.Constant(args[i]);
72  }
73  }
74 
75  return routine.Execute(exps);
76  }
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)

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