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

Public Member Functions

 RoutineParameter (string name, SqlType type, ParameterAttributes attributes)
 
 RoutineParameter (string name, SqlType type)
 
 RoutineParameter (string name, SqlType type, ParameterDirection direction)
 
 RoutineParameter (string name, SqlType type, ParameterDirection direction, ParameterAttributes attributes)
 
override string ToString ()
 

Properties

string Name [get, private set]
 
ParameterDirection Direction [get, private set]
 
SqlType Type [get, private set]
 
ParameterAttributes Attributes [get, private set]
 
int Offset [get, set]
 
bool IsNullable [get]
 
bool IsUnbounded [get]
 
bool IsOutput [get]
 
bool IsInput [get]
 

Detailed Description

Definition at line 23 of file RoutineParameter.cs.

Constructor & Destructor Documentation

Deveel.Data.Routines.RoutineParameter.RoutineParameter ( string  name,
SqlType  type,
ParameterAttributes  attributes 
)
inline

Definition at line 24 of file RoutineParameter.cs.

25  : this(name, type, ParameterDirection.Input, attributes) {
26  }
ParameterDirection
The possible directions of a procedure parameter.
Deveel.Data.Routines.RoutineParameter.RoutineParameter ( string  name,
SqlType  type 
)
inline

Definition at line 28 of file RoutineParameter.cs.

29  : this(name, type, ParameterDirection.Input) {
30  }
ParameterDirection
The possible directions of a procedure parameter.
Deveel.Data.Routines.RoutineParameter.RoutineParameter ( string  name,
SqlType  type,
ParameterDirection  direction 
)
inline

Definition at line 32 of file RoutineParameter.cs.

33  : this(name, type, direction, ParameterAttributes.None) {
34  }
Deveel.Data.Routines.RoutineParameter.RoutineParameter ( string  name,
SqlType  type,
ParameterDirection  direction,
ParameterAttributes  attributes 
)
inline

Definition at line 36 of file RoutineParameter.cs.

36  {
37  Attributes = attributes;
38  Direction = direction;
39  Type = type;
40  Name = name;
41  }

Member Function Documentation

override string Deveel.Data.Routines.RoutineParameter.ToString ( )
inline

Definition at line 69 of file RoutineParameter.cs.

69  {
70  var sb = new StringBuilder();
71  if (IsInput && !IsOutput) {
72  sb.Append("IN");
73  } else if (IsOutput && !IsInput) {
74  sb.Append("OUT");
75  } else if (IsOutput && IsInput) {
76  sb.Append("IN OUT");
77  }
78 
79  sb.Append(Name);
80  sb.Append(" ");
81  sb.Append(Type);
82 
83  if (!IsNullable)
84  sb.Append("NOT NULL");
85 
86  return sb.ToString();
87  }

Property Documentation

ParameterAttributes Deveel.Data.Routines.RoutineParameter.Attributes
getprivate set

Definition at line 49 of file RoutineParameter.cs.

ParameterDirection Deveel.Data.Routines.RoutineParameter.Direction
getprivate set

Definition at line 45 of file RoutineParameter.cs.

bool Deveel.Data.Routines.RoutineParameter.IsInput
get

Definition at line 65 of file RoutineParameter.cs.

bool Deveel.Data.Routines.RoutineParameter.IsNullable
get

Definition at line 53 of file RoutineParameter.cs.

bool Deveel.Data.Routines.RoutineParameter.IsOutput
get

Definition at line 61 of file RoutineParameter.cs.

bool Deveel.Data.Routines.RoutineParameter.IsUnbounded
get

Definition at line 57 of file RoutineParameter.cs.

string Deveel.Data.Routines.RoutineParameter.Name
getprivate set

Definition at line 43 of file RoutineParameter.cs.

int Deveel.Data.Routines.RoutineParameter.Offset
getset

Definition at line 51 of file RoutineParameter.cs.

SqlType Deveel.Data.Routines.RoutineParameter.Type
getprivate set

Definition at line 47 of file RoutineParameter.cs.


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