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

Public Member Functions

 CursorParameter (string parameterName, SqlType parameterType)
 

Static Public Member Functions

static void Serialize (CursorParameter parameter, BinaryWriter writer)
 
static CursorParameter Deserialize (BinaryReader reader)
 

Properties

string ParameterName [get, private set]
 
SqlType ParameterType [get, private set]
 
int Offset [get, set]
 

Detailed Description

Definition at line 23 of file CursorParameter.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Cursors.CursorParameter.CursorParameter ( string  parameterName,
SqlType  parameterType 
)
inline

Definition at line 24 of file CursorParameter.cs.

24  {
25  if (String.IsNullOrEmpty(parameterName))
26  throw new ArgumentNullException("parameterName");
27  if (parameterType == null)
28  throw new ArgumentNullException("parameterType");
29 
30  ParameterName = parameterName;
31  ParameterType = parameterType;
32  }
A long string in the system.

Member Function Documentation

static CursorParameter Deveel.Data.Sql.Cursors.CursorParameter.Deserialize ( BinaryReader  reader)
inlinestatic

Definition at line 46 of file CursorParameter.cs.

46  {
47  var paramName = reader.ReadString();
48  // TODO: Type Resolver!!!
49  var paramType = TypeSerializer.Deserialize(reader, null);
50  var offset = reader.ReadInt32();
51 
52  return new CursorParameter(paramName, paramType) {
53  Offset = offset
54  };
55  }
static SqlType Deserialize(BinaryReader reader, ITypeResolver resolver)
CursorParameter(string parameterName, SqlType parameterType)
static void Deveel.Data.Sql.Cursors.CursorParameter.Serialize ( CursorParameter  parameter,
BinaryWriter  writer 
)
inlinestatic

Definition at line 40 of file CursorParameter.cs.

40  {
41  writer.Write(parameter.ParameterName);
42  TypeSerializer.SerializeTo(writer, parameter.ParameterType);
43  writer.Write(parameter.Offset);
44  }
static void SerializeTo(BinaryWriter writer, SqlType type)

Property Documentation

int Deveel.Data.Sql.Cursors.CursorParameter.Offset
getset

Definition at line 38 of file CursorParameter.cs.

string Deveel.Data.Sql.Cursors.CursorParameter.ParameterName
getprivate set

Definition at line 34 of file CursorParameter.cs.

SqlType Deveel.Data.Sql.Cursors.CursorParameter.ParameterType
getprivate set

Definition at line 36 of file CursorParameter.cs.


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