Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
311 lines (264 loc) · 7.64 KB

File metadata and controls

311 lines (264 loc) · 7.64 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
package loggerForms;
import java.sql.Types;
import generalDatabase.EmptyTableDefinition;
import generalDatabase.PamTableItem;
/**
*
* @author Graham Weatherup
* @extends EmptyTableDefinition
*
*/
public class UDFTableDefinition extends EmptyTableDefinition {
private PamTableItem order; //Integer
private PamTableItem type; //String 50
private PamTableItem title; //String 50
private PamTableItem postTitle; //String 50
private PamTableItem dbTitle; //String 50
private PamTableItem length; //Integer
private PamTableItem topic; //String 50
private PamTableItem nmeaModule; //String 50 //Spaces to deal with
private PamTableItem nmeaString; //String 50 //Spaces to deal with
private PamTableItem nmeaPosition; //Integer //Spaces to deal with
private PamTableItem required; //Boolean
private PamTableItem autoUpdate; //Integer
private PamTableItem autoclear; //Boolean
private PamTableItem forceGps; //Boolean
private PamTableItem hint; //String 100
private PamTableItem adcChannel; //Integer //Spaces to deal with
private PamTableItem adcGain; //Integer //Spaces to deal with
private PamTableItem analogueMultiply; //Single(What) //Spaces to deal with
private PamTableItem analogueAdd; //Single(What) //Spaces to deal with
private PamTableItem plot; //Boolean
private PamTableItem height; //Integer
private PamTableItem colour; //String 20
private PamTableItem minValue; //Single(What)
private PamTableItem maxValue; //Single(What)
private PamTableItem readOnly; //Boolean
private PamTableItem sendControlName; //String 50 //Spaces to deal with
private PamTableItem controlOnSubform; //String 50 //Spaces to deal with
private PamTableItem getControlData; //String 50 //Spaces to deal with
private PamTableItem defaultValue; //String 50 //Needs suffixed with 'Value'
public UDFTableDefinition(String tableName) {
super(tableName);
//getColumnNames(tableName);
// no need to Id item - it's already in the EmptyTableDefinition.
addTableItem(order = new PamTableItem("Order" , Types.INTEGER)); // problems in MySQL
addTableItem(type = new PamTableItem("Type" , Types.CHAR, 50));
addTableItem(title = new PamTableItem("Title" , Types.CHAR, 50));
addTableItem(postTitle = new PamTableItem("PostTitle" , Types.CHAR, 50));
addTableItem(dbTitle = new PamTableItem("DbTitle" , Types.CHAR, 50));
addTableItem(length = new PamTableItem("Length" , Types.INTEGER));
addTableItem(topic = new PamTableItem("Topic" , Types.CHAR,50));
addTableItem(nmeaModule = new PamTableItem("NMEA_Module" , Types.CHAR,50)); //Space here
addTableItem(nmeaString = new PamTableItem("NMEA_String" , Types.CHAR,50)); //Space here
addTableItem(nmeaPosition = new PamTableItem("NMEA_Position" , Types.INTEGER)); //Space here
addTableItem(required = new PamTableItem("Required" , Types.BOOLEAN));
addTableItem(autoUpdate = new PamTableItem("AutoUpdate" , Types.INTEGER));
addTableItem(autoclear = new PamTableItem("Autoclear" , Types.BOOLEAN));
addTableItem(forceGps = new PamTableItem("ForceGps" , Types.BOOLEAN));
addTableItem(hint = new PamTableItem("Hint" , Types.CHAR, 100));
addTableItem(adcChannel = new PamTableItem("ADC_Channel" , Types.INTEGER)); //Space here
addTableItem(adcGain = new PamTableItem("ADC_Gain" , Types.REAL)); //Space here
addTableItem(analogueMultiply = new PamTableItem("Analog_Multiply" , Types.REAL)); //Space here
addTableItem(analogueAdd = new PamTableItem("Analog_Add" , Types.REAL)); //Space here
addTableItem(plot = new PamTableItem("Plot" , Types.BOOLEAN));
addTableItem(height = new PamTableItem("Height" , Types.INTEGER));
addTableItem(colour = new PamTableItem("Colour" , Types.CHAR, 20));
addTableItem(minValue = new PamTableItem("MinValue" , Types.REAL));
addTableItem(maxValue = new PamTableItem("MaxValue" , Types.REAL)); // problems with MySQL
addTableItem(readOnly = new PamTableItem("ReadOnly" , Types.BOOLEAN));
addTableItem(sendControlName = new PamTableItem("Send_Control_Name" , Types.CHAR,50)); //Space here
addTableItem(controlOnSubform = new PamTableItem("Control_on_Subform" , Types.CHAR,50)); //Space here
addTableItem(getControlData = new PamTableItem("Get_Control_Data" , Types.CHAR,50)); //Space here
addTableItem(defaultValue = new PamTableItem("Default" , Types.CHAR,50));
}
/*
private void getColumnNames(String tableName) {
// TODO Auto-generated method stub
DatabaseMetaData dbmd = dbCon.getMetaData();
String[]types = {"TABLE"};
ResultSet resultSet = dbmd.getTables(null, null, "%", types);
//Loop through database tables
while (resultSet.next()){
String tableName = resultSet.getString(3);
//If starts with 'UDF_' create form description from it.
if( tableName.startsWith(this.tableName)){
udfTableNameList.add(tableName);
}
}
} */
/**
* @return the order
*/
public PamTableItem getOrder() {
return order;
}
/**
* @return the type
*/
public PamTableItem getType() {
return type;
}
/**
* @return the title
*/
public PamTableItem getTitle() {
return title;
}
/**
* @return the postTitle
*/
public PamTableItem getPostTitle() {
return postTitle;
}
/**
* @return the dbTitle
*/
public PamTableItem getDbTitle() {
return dbTitle;
}
/**
* @return the length
*/
public PamTableItem getLength() {
return length;
}
/**
* @return the topic
*/
public PamTableItem getTopic() {
return topic;
}
/**
* @return the nmeaString
*/
public PamTableItem getNmeaModule() {
return nmeaModule;
}
/**
* @return the nmeaString
*/
public PamTableItem getNmeaString() {
return nmeaString;
}
/**
* @return the nmeaPosition
*/
public PamTableItem getNmeaPosition() {
return nmeaPosition;
}
/**
* @return the required
*/
public PamTableItem getRequired() {
return required;
}
/**
* @return the autoUpdate
*/
public PamTableItem getAutoUpdate() {
return autoUpdate;
}
/**
* @return the autoclear
*/
public PamTableItem getAutoclear() {
return autoclear;
}
/**
* @return the forceGps
*/
public PamTableItem getForceGps() {
return forceGps;
}
/**
* @return the hint
*/
public PamTableItem getHint() {
return hint;
}
/**
* @return the adcChannel
*/
public PamTableItem getAdcChannel() {
return adcChannel;
}
/**
* @return the adcGain
*/
public PamTableItem getAdcGain() {
return adcGain;
}
/**
* @return the analogueMultiply
*/
public PamTableItem getAnalogueMultiply() {
return analogueMultiply;
}
/**
* @return the analogueAdd
*/
public PamTableItem getAnalogueAdd() {
return analogueAdd;
}
/**
* @return the plot
*/
public PamTableItem getPlot() {
return plot;
}
/**
* @return the height
*/
public PamTableItem getHeight() {
return height;
}
/**
* @return the colour
*/
public PamTableItem getColour() {
return colour;
}
/**
* @return the minValue
*/
public PamTableItem getMinValue() {
return minValue;
}
/**
* @return the maxValue
*/
public PamTableItem getMaxValue() {
return maxValue;
}
/**
* @return the readOnly
*/
public PamTableItem getReadOnly() {
return readOnly;
}
/**
* @return the sendControlName
*/
public PamTableItem getSendControlName() {
return sendControlName;
}
/**
* @return the controlOnSubform
*/
public PamTableItem getControlOnSubform() {
return controlOnSubform;
}
/**
* @return the getControlData
*/
public PamTableItem getGetControlData() {
return getControlData;
}
/**
* @return the defaultValue
*/
public PamTableItem getDefaultValue() {
return defaultValue;
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.