DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Package Functions | Properties | List of all members
Deveel.Data.Routines.RoutineInfo Class Referenceabstract

Defines the metadata for a routine that are used to resolve within a context. More...

Inheritance diagram for Deveel.Data.Routines.RoutineInfo:
Deveel.Data.Sql.IObjectInfo Deveel.Data.Routines.FunctionInfo Deveel.Data.Routines.ProcedureInfo

Public Member Functions

override string ToString ()
 

Protected Member Functions

 RoutineInfo (ObjectName routineName)
 Constructs a routine info with the given name. More...
 
 RoutineInfo (ObjectName routineName, RoutineParameter[] parameters)
 Constructs the routine info with the given signature. More...
 

Package Functions

abstract bool MatchesInvoke (Invoke request, IQuery query)
 

Properties

DbObjectType IObjectInfo. ObjectType [get]
 
ObjectName IObjectInfo. FullName [get]
 
ObjectName RoutineName [get, private set]
 Gets the name of the routine that uniquely identifies it in a system context. More...
 
abstract RoutineType RoutineType [get]
 
RoutineParameter[] Parameters [get, private set]
 Gets an array of parameters for the routine. More...
 
string ExternalMethodName [get, set]
 
Type ExternalType [get, set]
 
- Properties inherited from Deveel.Data.Sql.IObjectInfo
DbObjectType ObjectType [get]
 
ObjectName FullName [get]
 

Detailed Description

Defines the metadata for a routine that are used to resolve within a context.

Definition at line 28 of file RoutineInfo.cs.

Constructor & Destructor Documentation

Deveel.Data.Routines.RoutineInfo.RoutineInfo ( ObjectName  routineName)
inlineprotected

Constructs a routine info with the given name.

Parameters
routineNameThe name uniquely identifying the routine.

Definition at line 33 of file RoutineInfo.cs.

34  : this(routineName, new RoutineParameter[] {}) {
35  }
Deveel.Data.Routines.RoutineInfo.RoutineInfo ( ObjectName  routineName,
RoutineParameter[]  parameters 
)
inlineprotected

Constructs the routine info with the given signature.

Parameters
routineNameThe name uniquely identifying the routine.
parametersThe list of parameter information of the routine.

Definition at line 42 of file RoutineInfo.cs.

42  {
43  if (routineName == null)
44  throw new ArgumentNullException("routineName");
45 
46  if (parameters == null)
47  parameters = new RoutineParameter[0];
48 
49  RoutineName = routineName;
50  Parameters = parameters;
51  // TODO: Body = new RoutineBody(this);
52  }
RoutineParameter[] Parameters
Gets an array of parameters for the routine.
Definition: RoutineInfo.cs:72
ObjectName RoutineName
Gets the name of the routine that uniquely identifies it in a system context.
Definition: RoutineInfo.cs:65

Member Function Documentation

abstract bool Deveel.Data.Routines.RoutineInfo.MatchesInvoke ( Invoke  request,
IQuery  query 
)
packagepure virtual
override string Deveel.Data.Routines.RoutineInfo.ToString ( )
inline

Definition at line 82 of file RoutineInfo.cs.

82  {
83  var sb = new StringBuilder();
84  sb.Append(RoutineName);
85  if (Parameters != null && Parameters.Length > 0) {
86  sb.Append('(');
87  for (int i = 0; i < Parameters.Length; i++) {
88  sb.Append(Parameters[i]);
89 
90  if (i < Parameters.Length - 1)
91  sb.Append(", ");
92  }
93  sb.Append(')');
94  }
95  return sb.ToString();
96  }
RoutineParameter[] Parameters
Gets an array of parameters for the routine.
Definition: RoutineInfo.cs:72
ObjectName RoutineName
Gets the name of the routine that uniquely identifies it in a system context.
Definition: RoutineInfo.cs:65

Property Documentation

string Deveel.Data.Routines.RoutineInfo.ExternalMethodName
getset

Definition at line 74 of file RoutineInfo.cs.

Type Deveel.Data.Routines.RoutineInfo.ExternalType
getset

Definition at line 76 of file RoutineInfo.cs.

ObjectName IObjectInfo. Deveel.Data.Routines.RoutineInfo.FullName
getprivate

Definition at line 58 of file RoutineInfo.cs.

DbObjectType IObjectInfo. Deveel.Data.Routines.RoutineInfo.ObjectType
getprivate

Definition at line 54 of file RoutineInfo.cs.

RoutineParameter [] Deveel.Data.Routines.RoutineInfo.Parameters
getprivate set

Gets an array of parameters for the routine.

Definition at line 72 of file RoutineInfo.cs.

ObjectName Deveel.Data.Routines.RoutineInfo.RoutineName
getprivate set

Gets the name of the routine that uniquely identifies it in a system context.

Definition at line 65 of file RoutineInfo.cs.

abstract RoutineType Deveel.Data.Routines.RoutineInfo.RoutineType
get

Definition at line 67 of file RoutineInfo.cs.


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