-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathQvxTablesColumnsTypes.cs
145 lines (120 loc) · 3.91 KB
/
QvxTablesColumnsTypes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/*
This Library is to have an easy access to Qvx Files and the Qlikview
Connector Interface.
Copyright (C) 2011 Konrad Mattheis ([email protected])
This Software is available under the GPL and a comercial licence.
For further information to the comercial licence please contact
Konrad Mattheis.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
namespace QvxLib
{
#region Usings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
#endregion
#region QvxTablesRow
public class QvxTablesRow
{
private static QvxSerializer<QvxTablesRow> serializer = null;
public static void Serialize(IEnumerable<QvxTablesRow> rows, BinaryWriter bw)
{
if (serializer == null)
serializer = new QvxSerializer<QvxTablesRow>();
serializer.Serialize(rows, bw);
}
#region Properties
/// <summary>
/// Field [0] - TABLE_NAME
/// </summary>
public string TABLE_NAME { get; set; }
/// <summary>
/// Field [1] - TABLE_TYPE. Value: "TABLE"
/// </summary>
public string TABLE_TYPE
{
get
{
return "TABLE";
}
set
{
}
}
/// <summary>
/// Field [2] - CATALOG_NAME (optional)
/// </summary>
public string CATALOG_NAME { get; set; }
/// <summary>
/// Field [3] - SCHEMA_NAME (optional)
/// </summary>
public string SCHEMA_NAME { get; set; }
/// <summary>
/// Field [4] - REMARKS (optional)
/// </summary>
public string REMARKS { get; set; }
#endregion
#region Constructor
public QvxTablesRow(string TABLE_NAME)
{
this.TABLE_NAME = TABLE_NAME;
}
#endregion
}
#endregion
#region QvxColumsRow
public class QvxColumsRow
{
private static QvxSerializer<QvxColumsRow> serializer = null;
public static void Serialize(IEnumerable<QvxColumsRow> rows, BinaryWriter bw)
{
if (serializer == null)
serializer = new QvxSerializer<QvxColumsRow>();
serializer.Serialize(rows, bw);
}
#region Properties
/// <summary>
/// Field [0] - TABLE_NAME
/// </summary>
public string TABLE_NAME { get; set; }
/// <summary>
/// Field [1] - COLUMN_NAME
/// </summary>
public string COLUMN_NAME { get; set; }
/// <summary>
/// Field [2] - DATA_TYPE (optional).
/// </summary>
public string DATA_TYPE { get; set; }
/// <summary>
/// Field [3] - IS_NULLABLE (optional). Value the way it will be represented to the user.
/// </summary>
public string IS_NULLABLE { get; set; }
/// <summary>
/// Field [4] - REMARKS (optional)
/// </summary>
public string REMARKS { get; set; }
/// <summary>
/// Field [5] - IS_BLOB (optional). Values"true" or "false" (default)
/// </summary>
public string IS_BLOB { get; set; }
#endregion
#region Conctructor
public QvxColumsRow(string TABLE_NAME, string COLUMN_NAME)
{
this.TABLE_NAME = TABLE_NAME;
this.COLUMN_NAME = COLUMN_NAME;
}
#endregion
}
#endregion
}