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

Public Member Functions

 ContextVariableResolver (IContext context)
 
DataObject Resolve (ObjectName variableName)
 Returns the value of a given variable. More...
 
SqlType ReturnType (ObjectName variableName)
 Returns the SqlType of object the given variable is. More...
 
void Dispose ()
 

Private Attributes

IContext context
 

Detailed Description

Definition at line 140 of file ContextExtensions.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Variables.ContextExtensions.ContextVariableResolver.ContextVariableResolver ( IContext  context)
inline

Definition at line 143 of file ContextExtensions.cs.

Member Function Documentation

void Deveel.Data.Sql.Variables.ContextExtensions.ContextVariableResolver.Dispose ( )
inline

Definition at line 163 of file ContextExtensions.cs.

DataObject Deveel.Data.Sql.Variables.ContextExtensions.ContextVariableResolver.Resolve ( ObjectName  variable)
inline

Returns the value of a given variable.

Parameters
variable
Returns

Implements Deveel.Data.Sql.IVariableResolver.

Definition at line 147 of file ContextExtensions.cs.

147  {
148  var variable = context.FindVariable(variableName.Name);
149  if (variable == null)
150  return null;
151 
152  return variable.Value;
153  }
SqlType Deveel.Data.Sql.Variables.ContextExtensions.ContextVariableResolver.ReturnType ( ObjectName  variable)
inline

Returns the SqlType of object the given variable is.

Parameters
variable
Returns

Implements Deveel.Data.Sql.IVariableResolver.

Definition at line 155 of file ContextExtensions.cs.

155  {
156  var variable = context.FindVariable(variableName.Name);
157  if (variable == null)
158  return null;
159 
160  return variable.Type;
161  }

Member Data Documentation

IContext Deveel.Data.Sql.Variables.ContextExtensions.ContextVariableResolver.context
private

Definition at line 141 of file ContextExtensions.cs.


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