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

Public Member Functions

 FunctionParameterConfiguration (FunctionConfiguration configuration)
 
IFunctionParameterConfiguration Named (string name)
 
IFunctionParameterConfiguration OfType (SqlType type)
 
IFunctionParameterConfiguration Unbounded (bool flag)
 
RoutineParameter AsParameter ()
 

Private Attributes

readonly FunctionConfiguration configuration
 
string parameterName
 
SqlType sqlType
 
ParameterAttributes attributes
 

Detailed Description

Definition at line 246 of file FunctionProvider.cs.

Constructor & Destructor Documentation

Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.FunctionParameterConfiguration ( FunctionConfiguration  configuration)
inline

Definition at line 253 of file FunctionProvider.cs.

253  {
255 
258  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static NumericType Numeric()

Member Function Documentation

RoutineParameter Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.AsParameter ( )
inline
IFunctionParameterConfiguration Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.Named ( string  name)
inline

Implements Deveel.Data.Sql.Fluid.IFunctionParameterConfiguration.

Definition at line 260 of file FunctionProvider.cs.

260  {
261  if (String.IsNullOrEmpty(name))
262  throw new ArgumentNullException("name");
263 
264  if (configuration.HasParameter(name))
265  throw new ArgumentException(String.Format("A parameter with name '{0}' was already configured for the function", name), "name");
266 
267  parameterName = name;
268 
269  return this;
270  }
A long string in the system.
IFunctionParameterConfiguration Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.OfType ( SqlType  type)
inline

Implements Deveel.Data.Sql.Fluid.IFunctionParameterConfiguration.

Definition at line 272 of file FunctionProvider.cs.

272  {
273  if (type == null)
274  throw new ArgumentNullException("type");
275 
276  sqlType = type;
277 
278  return this;
279  }
IFunctionParameterConfiguration Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.Unbounded ( bool  flag)
inline

Implements Deveel.Data.Sql.Fluid.IFunctionParameterConfiguration.

Definition at line 281 of file FunctionProvider.cs.

281  {
283  throw new ArgumentException("An unbounded parameter is already configured");
284 
285  if (flag)
286  attributes |= ParameterAttributes.Unbounded;
287 
288  return this;
289  }

Member Data Documentation

ParameterAttributes Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.attributes
private

Definition at line 251 of file FunctionProvider.cs.

readonly FunctionConfiguration Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.configuration
private

Definition at line 247 of file FunctionProvider.cs.

string Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.parameterName
private

Definition at line 249 of file FunctionProvider.cs.

SqlType Deveel.Data.Routines.FunctionProvider.FunctionParameterConfiguration.sqlType
private

Definition at line 250 of file FunctionProvider.cs.


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