1 | |
|
2 | |
|
3 | |
package org.paneris.rimauresq.model.generated; |
4 | |
|
5 | |
import java.sql.Timestamp; |
6 | |
import org.melati.poem.AccessPoemException; |
7 | |
import org.melati.poem.BooleanPoemType; |
8 | |
import org.melati.poem.Column; |
9 | |
import org.melati.poem.Database; |
10 | |
import org.melati.poem.DefinitionSource; |
11 | |
import org.melati.poem.DisplayLevel; |
12 | |
import org.melati.poem.DoublePoemType; |
13 | |
import org.melati.poem.Field; |
14 | |
import org.melati.poem.JdbcPersistent; |
15 | |
import org.melati.poem.Persistent; |
16 | |
import org.melati.poem.PoemException; |
17 | |
import org.melati.poem.ReferencePoemType; |
18 | |
import org.melati.poem.Searchability; |
19 | |
import org.melati.poem.StringPoemType; |
20 | |
import org.melati.poem.TimestampPoemType; |
21 | |
import org.melati.poem.TroidPoemType; |
22 | |
import org.melati.poem.ValidationPoemException; |
23 | |
import org.paneris.rimauresq.model.RimauresqDatabaseTables; |
24 | |
import org.paneris.rimauresq.model.RimauresqTable; |
25 | |
import org.paneris.rimauresq.model.ShopOrder; |
26 | |
import org.paneris.rimauresq.model.User; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
public class ShopOrderTableBase extends RimauresqTable { |
37 | |
|
38 | 4 | private Column col_id = null; |
39 | 4 | private Column col_user = null; |
40 | 4 | private Column col_date = null; |
41 | 4 | private Column col_customerComment = null; |
42 | 4 | private Column col_message = null; |
43 | 4 | private Column col_amount = null; |
44 | 4 | private Column col_delivery = null; |
45 | 4 | private Column col_name = null; |
46 | 4 | private Column col_deliveryName = null; |
47 | 4 | private Column col_email = null; |
48 | 4 | private Column col_address = null; |
49 | 4 | private Column col_town = null; |
50 | 4 | private Column col_tel = null; |
51 | 4 | private Column col_postcode = null; |
52 | 4 | private Column col_country = null; |
53 | 4 | private Column col_spam = null; |
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
public ShopOrderTableBase( |
66 | |
Database database, String name, |
67 | |
DefinitionSource definitionSource) throws PoemException { |
68 | 4 | super(database, name, definitionSource); |
69 | 4 | } |
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public RimauresqDatabaseTables getRimauresqDatabaseTables() { |
79 | 4 | return (RimauresqDatabaseTables)getDatabase(); |
80 | |
} |
81 | |
|
82 | |
public void init() throws PoemException { |
83 | 4 | super.init(); |
84 | 4 | defineColumn(col_id = |
85 | |
new Column(this, "id", |
86 | |
new TroidPoemType(), |
87 | |
DefinitionSource.dsd) { |
88 | |
public Object getCooked(Persistent g) |
89 | |
throws AccessPoemException, PoemException { |
90 | 0 | return ((ShopOrder)g).getId(); |
91 | |
} |
92 | |
|
93 | |
public void setCooked(Persistent g, Object cooked) |
94 | |
throws AccessPoemException, ValidationPoemException { |
95 | 0 | ((ShopOrder)g).setId((Integer)cooked); |
96 | 0 | } |
97 | |
|
98 | |
public Field asField(Persistent g) { |
99 | 0 | return ((ShopOrder)g).getIdField(); |
100 | |
} |
101 | |
|
102 | |
protected boolean defaultUserEditable() { |
103 | 4 | return false; |
104 | |
} |
105 | |
|
106 | |
protected boolean defaultUserCreateable() { |
107 | 4 | return false; |
108 | |
} |
109 | |
|
110 | |
protected DisplayLevel defaultDisplayLevel() { |
111 | 8 | return DisplayLevel.summary; |
112 | |
} |
113 | |
|
114 | |
protected Searchability defaultSearchability() { |
115 | 8 | return Searchability.primary; |
116 | |
} |
117 | |
|
118 | |
protected int defaultDisplayOrder() { |
119 | 4 | return 0; |
120 | |
} |
121 | |
|
122 | |
public Object getRaw_unsafe(Persistent g) |
123 | |
throws AccessPoemException { |
124 | 0 | return ((ShopOrder)g).getId_unsafe(); |
125 | |
} |
126 | |
|
127 | |
public void setRaw_unsafe(Persistent g, Object raw) |
128 | |
throws AccessPoemException { |
129 | 0 | ((ShopOrder)g).setId_unsafe((Integer)raw); |
130 | 0 | } |
131 | |
|
132 | |
public Object getRaw(Persistent g) |
133 | |
throws AccessPoemException { |
134 | 0 | return ((ShopOrder)g).getId(); |
135 | |
} |
136 | |
|
137 | 4 | public void setRaw(Persistent g, Object raw) |
138 | |
throws AccessPoemException { |
139 | 0 | ((ShopOrder)g).setId((Integer)raw); |
140 | 0 | } |
141 | |
}); |
142 | |
|
143 | 4 | defineColumn(col_user = |
144 | |
new Column(this, "user", |
145 | |
new ReferencePoemType(getRimauresqDatabaseTables(). |
146 | |
getUserTable(), false), |
147 | |
DefinitionSource.dsd) { |
148 | |
public Object getCooked(Persistent g) |
149 | |
throws AccessPoemException, PoemException { |
150 | 0 | return ((ShopOrder)g).getUser(); |
151 | |
} |
152 | |
|
153 | |
public void setCooked(Persistent g, Object cooked) |
154 | |
throws AccessPoemException, ValidationPoemException { |
155 | 0 | ((ShopOrder)g).setUser((User)cooked); |
156 | 0 | } |
157 | |
|
158 | |
public Field asField(Persistent g) { |
159 | 0 | return ((ShopOrder)g).getUserField(); |
160 | |
} |
161 | |
|
162 | |
protected DisplayLevel defaultDisplayLevel() { |
163 | 8 | return DisplayLevel.summary; |
164 | |
} |
165 | |
|
166 | |
protected Searchability defaultSearchability() { |
167 | 8 | return Searchability.yes; |
168 | |
} |
169 | |
|
170 | |
protected String defaultDisplayName() { |
171 | 4 | return "User"; |
172 | |
} |
173 | |
|
174 | |
protected int defaultDisplayOrder() { |
175 | 4 | return 1; |
176 | |
} |
177 | |
|
178 | |
protected String defaultDescription() { |
179 | 4 | return "The Customer"; |
180 | |
} |
181 | |
|
182 | |
protected boolean defaultIndexed() { |
183 | 4 | return true; |
184 | |
} |
185 | |
|
186 | |
protected String defaultRenderinfo() { |
187 | 4 | return "SelectionWindow"; |
188 | |
} |
189 | |
|
190 | |
public Object getRaw_unsafe(Persistent g) |
191 | |
throws AccessPoemException { |
192 | 0 | return ((ShopOrder)g).getUser_unsafe(); |
193 | |
} |
194 | |
|
195 | |
public void setRaw_unsafe(Persistent g, Object raw) |
196 | |
throws AccessPoemException { |
197 | 0 | ((ShopOrder)g).setUser_unsafe((Integer)raw); |
198 | 0 | } |
199 | |
|
200 | |
public Object getRaw(Persistent g) |
201 | |
throws AccessPoemException { |
202 | 0 | return ((ShopOrder)g).getUserTroid(); |
203 | |
} |
204 | |
|
205 | 4 | public void setRaw(Persistent g, Object raw) |
206 | |
throws AccessPoemException { |
207 | 0 | ((ShopOrder)g).setUserTroid((Integer)raw); |
208 | 0 | } |
209 | |
}); |
210 | |
|
211 | 4 | defineColumn(col_date = |
212 | |
new Column(this, "date", |
213 | |
new TimestampPoemType(true), |
214 | |
DefinitionSource.dsd) { |
215 | |
public Object getCooked(Persistent g) |
216 | |
throws AccessPoemException, PoemException { |
217 | 0 | return ((ShopOrder)g).getDate(); |
218 | |
} |
219 | |
|
220 | |
public void setCooked(Persistent g, Object cooked) |
221 | |
throws AccessPoemException, ValidationPoemException { |
222 | 0 | ((ShopOrder)g).setDate((Timestamp)cooked); |
223 | 0 | } |
224 | |
|
225 | |
public Field asField(Persistent g) { |
226 | 0 | return ((ShopOrder)g).getDateField(); |
227 | |
} |
228 | |
|
229 | |
protected DisplayLevel defaultDisplayLevel() { |
230 | 8 | return DisplayLevel.summary; |
231 | |
} |
232 | |
|
233 | |
protected Searchability defaultSearchability() { |
234 | 8 | return Searchability.yes; |
235 | |
} |
236 | |
|
237 | |
protected Integer defaultDisplayOrderPriority() { |
238 | 4 | return new Integer(1); |
239 | |
} |
240 | |
|
241 | |
protected boolean defaultSortDescending() { |
242 | 4 | return true; |
243 | |
} |
244 | |
|
245 | |
protected String defaultDisplayName() { |
246 | 4 | return "Date"; |
247 | |
} |
248 | |
|
249 | |
protected int defaultDisplayOrder() { |
250 | 4 | return 2; |
251 | |
} |
252 | |
|
253 | |
protected String defaultDescription() { |
254 | 4 | return "The date that this order was placed (leave blank to autocomplete)"; |
255 | |
} |
256 | |
|
257 | |
public Object getRaw_unsafe(Persistent g) |
258 | |
throws AccessPoemException { |
259 | 0 | return ((ShopOrder)g).getDate_unsafe(); |
260 | |
} |
261 | |
|
262 | |
public void setRaw_unsafe(Persistent g, Object raw) |
263 | |
throws AccessPoemException { |
264 | 0 | ((ShopOrder)g).setDate_unsafe((Timestamp)raw); |
265 | 0 | } |
266 | |
|
267 | |
public Object getRaw(Persistent g) |
268 | |
throws AccessPoemException { |
269 | 0 | return ((ShopOrder)g).getDate(); |
270 | |
} |
271 | |
|
272 | 4 | public void setRaw(Persistent g, Object raw) |
273 | |
throws AccessPoemException { |
274 | 0 | ((ShopOrder)g).setDate((Timestamp)raw); |
275 | 0 | } |
276 | |
}); |
277 | |
|
278 | 4 | defineColumn(col_customerComment = |
279 | |
new Column(this, "customerComment", |
280 | |
new StringPoemType(true, -1), |
281 | |
DefinitionSource.dsd) { |
282 | |
public Object getCooked(Persistent g) |
283 | |
throws AccessPoemException, PoemException { |
284 | 0 | return ((ShopOrder)g).getCustomerComment(); |
285 | |
} |
286 | |
|
287 | |
public void setCooked(Persistent g, Object cooked) |
288 | |
throws AccessPoemException, ValidationPoemException { |
289 | 0 | ((ShopOrder)g).setCustomerComment((String)cooked); |
290 | 0 | } |
291 | |
|
292 | |
public Field asField(Persistent g) { |
293 | 0 | return ((ShopOrder)g).getCustomerCommentField(); |
294 | |
} |
295 | |
|
296 | |
protected DisplayLevel defaultDisplayLevel() { |
297 | 8 | return DisplayLevel.record; |
298 | |
} |
299 | |
|
300 | |
protected Searchability defaultSearchability() { |
301 | 8 | return Searchability.no; |
302 | |
} |
303 | |
|
304 | |
protected String defaultDisplayName() { |
305 | 4 | return "Comment"; |
306 | |
} |
307 | |
|
308 | |
protected int defaultDisplayOrder() { |
309 | 4 | return 3; |
310 | |
} |
311 | |
|
312 | |
protected String defaultDescription() { |
313 | 4 | return "Commends by the customer reguarding this order"; |
314 | |
} |
315 | |
|
316 | |
protected int defaultWidth() { |
317 | 4 | return 30; |
318 | |
} |
319 | |
|
320 | |
protected int defaultHeight() { |
321 | 4 | return 5; |
322 | |
} |
323 | |
|
324 | |
public Object getRaw_unsafe(Persistent g) |
325 | |
throws AccessPoemException { |
326 | 0 | return ((ShopOrder)g).getCustomerComment_unsafe(); |
327 | |
} |
328 | |
|
329 | |
public void setRaw_unsafe(Persistent g, Object raw) |
330 | |
throws AccessPoemException { |
331 | 0 | ((ShopOrder)g).setCustomerComment_unsafe((String)raw); |
332 | 0 | } |
333 | |
|
334 | |
public Object getRaw(Persistent g) |
335 | |
throws AccessPoemException { |
336 | 0 | return ((ShopOrder)g).getCustomerComment(); |
337 | |
} |
338 | |
|
339 | 4 | public void setRaw(Persistent g, Object raw) |
340 | |
throws AccessPoemException { |
341 | 0 | ((ShopOrder)g).setCustomerComment((String)raw); |
342 | 0 | } |
343 | |
}); |
344 | |
|
345 | 4 | defineColumn(col_message = |
346 | |
new Column(this, "message", |
347 | |
new StringPoemType(true, -1), |
348 | |
DefinitionSource.dsd) { |
349 | |
public Object getCooked(Persistent g) |
350 | |
throws AccessPoemException, PoemException { |
351 | 0 | return ((ShopOrder)g).getMessage(); |
352 | |
} |
353 | |
|
354 | |
public void setCooked(Persistent g, Object cooked) |
355 | |
throws AccessPoemException, ValidationPoemException { |
356 | 0 | ((ShopOrder)g).setMessage((String)cooked); |
357 | 0 | } |
358 | |
|
359 | |
public Field asField(Persistent g) { |
360 | 0 | return ((ShopOrder)g).getMessageField(); |
361 | |
} |
362 | |
|
363 | |
protected DisplayLevel defaultDisplayLevel() { |
364 | 8 | return DisplayLevel.record; |
365 | |
} |
366 | |
|
367 | |
protected Searchability defaultSearchability() { |
368 | 8 | return Searchability.yes; |
369 | |
} |
370 | |
|
371 | |
protected String defaultDisplayName() { |
372 | 4 | return "Message"; |
373 | |
} |
374 | |
|
375 | |
protected int defaultDisplayOrder() { |
376 | 4 | return 4; |
377 | |
} |
378 | |
|
379 | |
protected String defaultDescription() { |
380 | 4 | return "A message to be included with this order"; |
381 | |
} |
382 | |
|
383 | |
protected int defaultWidth() { |
384 | 4 | return 30; |
385 | |
} |
386 | |
|
387 | |
protected int defaultHeight() { |
388 | 4 | return 5; |
389 | |
} |
390 | |
|
391 | |
public Object getRaw_unsafe(Persistent g) |
392 | |
throws AccessPoemException { |
393 | 0 | return ((ShopOrder)g).getMessage_unsafe(); |
394 | |
} |
395 | |
|
396 | |
public void setRaw_unsafe(Persistent g, Object raw) |
397 | |
throws AccessPoemException { |
398 | 0 | ((ShopOrder)g).setMessage_unsafe((String)raw); |
399 | 0 | } |
400 | |
|
401 | |
public Object getRaw(Persistent g) |
402 | |
throws AccessPoemException { |
403 | 0 | return ((ShopOrder)g).getMessage(); |
404 | |
} |
405 | |
|
406 | 4 | public void setRaw(Persistent g, Object raw) |
407 | |
throws AccessPoemException { |
408 | 0 | ((ShopOrder)g).setMessage((String)raw); |
409 | 0 | } |
410 | |
}); |
411 | |
|
412 | 4 | defineColumn(col_amount = |
413 | |
new Column(this, "amount", |
414 | |
new DoublePoemType(false), |
415 | |
DefinitionSource.dsd) { |
416 | |
public Object getCooked(Persistent g) |
417 | |
throws AccessPoemException, PoemException { |
418 | 0 | return ((ShopOrder)g).getAmount(); |
419 | |
} |
420 | |
|
421 | |
public void setCooked(Persistent g, Object cooked) |
422 | |
throws AccessPoemException, ValidationPoemException { |
423 | 0 | ((ShopOrder)g).setAmount((Double)cooked); |
424 | 0 | } |
425 | |
|
426 | |
public Field asField(Persistent g) { |
427 | 0 | return ((ShopOrder)g).getAmountField(); |
428 | |
} |
429 | |
|
430 | |
protected DisplayLevel defaultDisplayLevel() { |
431 | 8 | return DisplayLevel.record; |
432 | |
} |
433 | |
|
434 | |
protected Searchability defaultSearchability() { |
435 | 8 | return Searchability.no; |
436 | |
} |
437 | |
|
438 | |
protected String defaultDisplayName() { |
439 | 4 | return "Total Amount (in GBP)"; |
440 | |
} |
441 | |
|
442 | |
protected int defaultDisplayOrder() { |
443 | 4 | return 5; |
444 | |
} |
445 | |
|
446 | |
protected String defaultDescription() { |
447 | 4 | return "The total amount of the order (in GBP)"; |
448 | |
} |
449 | |
|
450 | |
public Object getRaw_unsafe(Persistent g) |
451 | |
throws AccessPoemException { |
452 | 0 | return ((ShopOrder)g).getAmount_unsafe(); |
453 | |
} |
454 | |
|
455 | |
public void setRaw_unsafe(Persistent g, Object raw) |
456 | |
throws AccessPoemException { |
457 | 0 | ((ShopOrder)g).setAmount_unsafe((Double)raw); |
458 | 0 | } |
459 | |
|
460 | |
public Object getRaw(Persistent g) |
461 | |
throws AccessPoemException { |
462 | 0 | return ((ShopOrder)g).getAmount(); |
463 | |
} |
464 | |
|
465 | 4 | public void setRaw(Persistent g, Object raw) |
466 | |
throws AccessPoemException { |
467 | 0 | ((ShopOrder)g).setAmount((Double)raw); |
468 | 0 | } |
469 | |
}); |
470 | |
|
471 | 4 | defineColumn(col_delivery = |
472 | |
new Column(this, "delivery", |
473 | |
new DoublePoemType(false), |
474 | |
DefinitionSource.dsd) { |
475 | |
public Object getCooked(Persistent g) |
476 | |
throws AccessPoemException, PoemException { |
477 | 0 | return ((ShopOrder)g).getDelivery(); |
478 | |
} |
479 | |
|
480 | |
public void setCooked(Persistent g, Object cooked) |
481 | |
throws AccessPoemException, ValidationPoemException { |
482 | 0 | ((ShopOrder)g).setDelivery((Double)cooked); |
483 | 0 | } |
484 | |
|
485 | |
public Field asField(Persistent g) { |
486 | 0 | return ((ShopOrder)g).getDeliveryField(); |
487 | |
} |
488 | |
|
489 | |
protected DisplayLevel defaultDisplayLevel() { |
490 | 8 | return DisplayLevel.record; |
491 | |
} |
492 | |
|
493 | |
protected Searchability defaultSearchability() { |
494 | 8 | return Searchability.no; |
495 | |
} |
496 | |
|
497 | |
protected String defaultDisplayName() { |
498 | 4 | return "Total Delivery (in GBP)"; |
499 | |
} |
500 | |
|
501 | |
protected int defaultDisplayOrder() { |
502 | 4 | return 6; |
503 | |
} |
504 | |
|
505 | |
protected String defaultDescription() { |
506 | 4 | return "The total delivery charge for the order (in GBP)"; |
507 | |
} |
508 | |
|
509 | |
public Object getRaw_unsafe(Persistent g) |
510 | |
throws AccessPoemException { |
511 | 0 | return ((ShopOrder)g).getDelivery_unsafe(); |
512 | |
} |
513 | |
|
514 | |
public void setRaw_unsafe(Persistent g, Object raw) |
515 | |
throws AccessPoemException { |
516 | 0 | ((ShopOrder)g).setDelivery_unsafe((Double)raw); |
517 | 0 | } |
518 | |
|
519 | |
public Object getRaw(Persistent g) |
520 | |
throws AccessPoemException { |
521 | 0 | return ((ShopOrder)g).getDelivery(); |
522 | |
} |
523 | |
|
524 | 4 | public void setRaw(Persistent g, Object raw) |
525 | |
throws AccessPoemException { |
526 | 0 | ((ShopOrder)g).setDelivery((Double)raw); |
527 | 0 | } |
528 | |
}); |
529 | |
|
530 | 4 | defineColumn(col_name = |
531 | |
new Column(this, "name", |
532 | |
new StringPoemType(false, -1), |
533 | |
DefinitionSource.dsd) { |
534 | |
public Object getCooked(Persistent g) |
535 | |
throws AccessPoemException, PoemException { |
536 | 0 | return ((ShopOrder)g).getName(); |
537 | |
} |
538 | |
|
539 | |
public void setCooked(Persistent g, Object cooked) |
540 | |
throws AccessPoemException, ValidationPoemException { |
541 | 0 | ((ShopOrder)g).setName((String)cooked); |
542 | 0 | } |
543 | |
|
544 | |
public Field asField(Persistent g) { |
545 | 0 | return ((ShopOrder)g).getNameField(); |
546 | |
} |
547 | |
|
548 | |
protected DisplayLevel defaultDisplayLevel() { |
549 | 8 | return DisplayLevel.record; |
550 | |
} |
551 | |
|
552 | |
protected String defaultDisplayName() { |
553 | 4 | return "Full name"; |
554 | |
} |
555 | |
|
556 | |
protected int defaultDisplayOrder() { |
557 | 4 | return 7; |
558 | |
} |
559 | |
|
560 | |
protected String defaultDescription() { |
561 | 4 | return "The user's real name"; |
562 | |
} |
563 | |
|
564 | |
protected int defaultWidth() { |
565 | 4 | return 40; |
566 | |
} |
567 | |
|
568 | |
public Object getRaw_unsafe(Persistent g) |
569 | |
throws AccessPoemException { |
570 | 0 | return ((ShopOrder)g).getName_unsafe(); |
571 | |
} |
572 | |
|
573 | |
public void setRaw_unsafe(Persistent g, Object raw) |
574 | |
throws AccessPoemException { |
575 | 0 | ((ShopOrder)g).setName_unsafe((String)raw); |
576 | 0 | } |
577 | |
|
578 | |
public Object getRaw(Persistent g) |
579 | |
throws AccessPoemException { |
580 | 0 | return ((ShopOrder)g).getName(); |
581 | |
} |
582 | |
|
583 | 4 | public void setRaw(Persistent g, Object raw) |
584 | |
throws AccessPoemException { |
585 | 0 | ((ShopOrder)g).setName((String)raw); |
586 | 0 | } |
587 | |
}); |
588 | |
|
589 | 4 | defineColumn(col_deliveryName = |
590 | |
new Column(this, "deliveryName", |
591 | |
new StringPoemType(true, -1), |
592 | |
DefinitionSource.dsd) { |
593 | |
public Object getCooked(Persistent g) |
594 | |
throws AccessPoemException, PoemException { |
595 | 0 | return ((ShopOrder)g).getDeliveryName(); |
596 | |
} |
597 | |
|
598 | |
public void setCooked(Persistent g, Object cooked) |
599 | |
throws AccessPoemException, ValidationPoemException { |
600 | 0 | ((ShopOrder)g).setDeliveryName((String)cooked); |
601 | 0 | } |
602 | |
|
603 | |
public Field asField(Persistent g) { |
604 | 0 | return ((ShopOrder)g).getDeliveryNameField(); |
605 | |
} |
606 | |
|
607 | |
protected DisplayLevel defaultDisplayLevel() { |
608 | 8 | return DisplayLevel.record; |
609 | |
} |
610 | |
|
611 | |
protected String defaultDisplayName() { |
612 | 4 | return "Delivery name"; |
613 | |
} |
614 | |
|
615 | |
protected int defaultDisplayOrder() { |
616 | 4 | return 8; |
617 | |
} |
618 | |
|
619 | |
protected String defaultDescription() { |
620 | 4 | return "The name of the persone to whom we are delivering"; |
621 | |
} |
622 | |
|
623 | |
protected int defaultWidth() { |
624 | 4 | return 40; |
625 | |
} |
626 | |
|
627 | |
public Object getRaw_unsafe(Persistent g) |
628 | |
throws AccessPoemException { |
629 | 0 | return ((ShopOrder)g).getDeliveryName_unsafe(); |
630 | |
} |
631 | |
|
632 | |
public void setRaw_unsafe(Persistent g, Object raw) |
633 | |
throws AccessPoemException { |
634 | 0 | ((ShopOrder)g).setDeliveryName_unsafe((String)raw); |
635 | 0 | } |
636 | |
|
637 | |
public Object getRaw(Persistent g) |
638 | |
throws AccessPoemException { |
639 | 0 | return ((ShopOrder)g).getDeliveryName(); |
640 | |
} |
641 | |
|
642 | 4 | public void setRaw(Persistent g, Object raw) |
643 | |
throws AccessPoemException { |
644 | 0 | ((ShopOrder)g).setDeliveryName((String)raw); |
645 | 0 | } |
646 | |
}); |
647 | |
|
648 | 4 | defineColumn(col_email = |
649 | |
new Column(this, "email", |
650 | |
new StringPoemType(true, -1), |
651 | |
DefinitionSource.dsd) { |
652 | |
public Object getCooked(Persistent g) |
653 | |
throws AccessPoemException, PoemException { |
654 | 0 | return ((ShopOrder)g).getEmail(); |
655 | |
} |
656 | |
|
657 | |
public void setCooked(Persistent g, Object cooked) |
658 | |
throws AccessPoemException, ValidationPoemException { |
659 | 0 | ((ShopOrder)g).setEmail((String)cooked); |
660 | 0 | } |
661 | |
|
662 | |
public Field asField(Persistent g) { |
663 | 0 | return ((ShopOrder)g).getEmailField(); |
664 | |
} |
665 | |
|
666 | |
protected DisplayLevel defaultDisplayLevel() { |
667 | 8 | return DisplayLevel.record; |
668 | |
} |
669 | |
|
670 | |
protected Searchability defaultSearchability() { |
671 | 8 | return Searchability.no; |
672 | |
} |
673 | |
|
674 | |
protected int defaultDisplayOrder() { |
675 | 4 | return 9; |
676 | |
} |
677 | |
|
678 | |
protected String defaultDescription() { |
679 | 4 | return "email"; |
680 | |
} |
681 | |
|
682 | |
protected int defaultWidth() { |
683 | 4 | return 40; |
684 | |
} |
685 | |
|
686 | |
public Object getRaw_unsafe(Persistent g) |
687 | |
throws AccessPoemException { |
688 | 0 | return ((ShopOrder)g).getEmail_unsafe(); |
689 | |
} |
690 | |
|
691 | |
public void setRaw_unsafe(Persistent g, Object raw) |
692 | |
throws AccessPoemException { |
693 | 0 | ((ShopOrder)g).setEmail_unsafe((String)raw); |
694 | 0 | } |
695 | |
|
696 | |
public Object getRaw(Persistent g) |
697 | |
throws AccessPoemException { |
698 | 0 | return ((ShopOrder)g).getEmail(); |
699 | |
} |
700 | |
|
701 | 4 | public void setRaw(Persistent g, Object raw) |
702 | |
throws AccessPoemException { |
703 | 0 | ((ShopOrder)g).setEmail((String)raw); |
704 | 0 | } |
705 | |
}); |
706 | |
|
707 | 4 | defineColumn(col_address = |
708 | |
new Column(this, "address", |
709 | |
new StringPoemType(false, -1), |
710 | |
DefinitionSource.dsd) { |
711 | |
public Object getCooked(Persistent g) |
712 | |
throws AccessPoemException, PoemException { |
713 | 0 | return ((ShopOrder)g).getAddress(); |
714 | |
} |
715 | |
|
716 | |
public void setCooked(Persistent g, Object cooked) |
717 | |
throws AccessPoemException, ValidationPoemException { |
718 | 0 | ((ShopOrder)g).setAddress((String)cooked); |
719 | 0 | } |
720 | |
|
721 | |
public Field asField(Persistent g) { |
722 | 0 | return ((ShopOrder)g).getAddressField(); |
723 | |
} |
724 | |
|
725 | |
protected DisplayLevel defaultDisplayLevel() { |
726 | 8 | return DisplayLevel.record; |
727 | |
} |
728 | |
|
729 | |
protected String defaultDisplayName() { |
730 | 4 | return "Address"; |
731 | |
} |
732 | |
|
733 | |
protected int defaultDisplayOrder() { |
734 | 4 | return 10; |
735 | |
} |
736 | |
|
737 | |
protected int defaultWidth() { |
738 | 4 | return 30; |
739 | |
} |
740 | |
|
741 | |
protected int defaultHeight() { |
742 | 4 | return 4; |
743 | |
} |
744 | |
|
745 | |
public Object getRaw_unsafe(Persistent g) |
746 | |
throws AccessPoemException { |
747 | 0 | return ((ShopOrder)g).getAddress_unsafe(); |
748 | |
} |
749 | |
|
750 | |
public void setRaw_unsafe(Persistent g, Object raw) |
751 | |
throws AccessPoemException { |
752 | 0 | ((ShopOrder)g).setAddress_unsafe((String)raw); |
753 | 0 | } |
754 | |
|
755 | |
public Object getRaw(Persistent g) |
756 | |
throws AccessPoemException { |
757 | 0 | return ((ShopOrder)g).getAddress(); |
758 | |
} |
759 | |
|
760 | 4 | public void setRaw(Persistent g, Object raw) |
761 | |
throws AccessPoemException { |
762 | 0 | ((ShopOrder)g).setAddress((String)raw); |
763 | 0 | } |
764 | |
}); |
765 | |
|
766 | 4 | defineColumn(col_town = |
767 | |
new Column(this, "town", |
768 | |
new StringPoemType(false, -1), |
769 | |
DefinitionSource.dsd) { |
770 | |
public Object getCooked(Persistent g) |
771 | |
throws AccessPoemException, PoemException { |
772 | 0 | return ((ShopOrder)g).getTown(); |
773 | |
} |
774 | |
|
775 | |
public void setCooked(Persistent g, Object cooked) |
776 | |
throws AccessPoemException, ValidationPoemException { |
777 | 0 | ((ShopOrder)g).setTown((String)cooked); |
778 | 0 | } |
779 | |
|
780 | |
public Field asField(Persistent g) { |
781 | 0 | return ((ShopOrder)g).getTownField(); |
782 | |
} |
783 | |
|
784 | |
protected DisplayLevel defaultDisplayLevel() { |
785 | 8 | return DisplayLevel.record; |
786 | |
} |
787 | |
|
788 | |
protected String defaultDisplayName() { |
789 | 4 | return "Town / City"; |
790 | |
} |
791 | |
|
792 | |
protected int defaultDisplayOrder() { |
793 | 4 | return 11; |
794 | |
} |
795 | |
|
796 | |
protected int defaultWidth() { |
797 | 4 | return 30; |
798 | |
} |
799 | |
|
800 | |
public Object getRaw_unsafe(Persistent g) |
801 | |
throws AccessPoemException { |
802 | 0 | return ((ShopOrder)g).getTown_unsafe(); |
803 | |
} |
804 | |
|
805 | |
public void setRaw_unsafe(Persistent g, Object raw) |
806 | |
throws AccessPoemException { |
807 | 0 | ((ShopOrder)g).setTown_unsafe((String)raw); |
808 | 0 | } |
809 | |
|
810 | |
public Object getRaw(Persistent g) |
811 | |
throws AccessPoemException { |
812 | 0 | return ((ShopOrder)g).getTown(); |
813 | |
} |
814 | |
|
815 | 4 | public void setRaw(Persistent g, Object raw) |
816 | |
throws AccessPoemException { |
817 | 0 | ((ShopOrder)g).setTown((String)raw); |
818 | 0 | } |
819 | |
}); |
820 | |
|
821 | 4 | defineColumn(col_tel = |
822 | |
new Column(this, "tel", |
823 | |
new StringPoemType(false, -1), |
824 | |
DefinitionSource.dsd) { |
825 | |
public Object getCooked(Persistent g) |
826 | |
throws AccessPoemException, PoemException { |
827 | 0 | return ((ShopOrder)g).getTel(); |
828 | |
} |
829 | |
|
830 | |
public void setCooked(Persistent g, Object cooked) |
831 | |
throws AccessPoemException, ValidationPoemException { |
832 | 0 | ((ShopOrder)g).setTel((String)cooked); |
833 | 0 | } |
834 | |
|
835 | |
public Field asField(Persistent g) { |
836 | 0 | return ((ShopOrder)g).getTelField(); |
837 | |
} |
838 | |
|
839 | |
protected DisplayLevel defaultDisplayLevel() { |
840 | 8 | return DisplayLevel.record; |
841 | |
} |
842 | |
|
843 | |
protected String defaultDisplayName() { |
844 | 4 | return "Telephone"; |
845 | |
} |
846 | |
|
847 | |
protected int defaultDisplayOrder() { |
848 | 4 | return 12; |
849 | |
} |
850 | |
|
851 | |
protected String defaultDescription() { |
852 | 4 | return "Order telephone number"; |
853 | |
} |
854 | |
|
855 | |
public Object getRaw_unsafe(Persistent g) |
856 | |
throws AccessPoemException { |
857 | 0 | return ((ShopOrder)g).getTel_unsafe(); |
858 | |
} |
859 | |
|
860 | |
public void setRaw_unsafe(Persistent g, Object raw) |
861 | |
throws AccessPoemException { |
862 | 0 | ((ShopOrder)g).setTel_unsafe((String)raw); |
863 | 0 | } |
864 | |
|
865 | |
public Object getRaw(Persistent g) |
866 | |
throws AccessPoemException { |
867 | 0 | return ((ShopOrder)g).getTel(); |
868 | |
} |
869 | |
|
870 | 4 | public void setRaw(Persistent g, Object raw) |
871 | |
throws AccessPoemException { |
872 | 0 | ((ShopOrder)g).setTel((String)raw); |
873 | 0 | } |
874 | |
}); |
875 | |
|
876 | 4 | defineColumn(col_postcode = |
877 | |
new Column(this, "postcode", |
878 | |
new StringPoemType(false, -1), |
879 | |
DefinitionSource.dsd) { |
880 | |
public Object getCooked(Persistent g) |
881 | |
throws AccessPoemException, PoemException { |
882 | 0 | return ((ShopOrder)g).getPostcode(); |
883 | |
} |
884 | |
|
885 | |
public void setCooked(Persistent g, Object cooked) |
886 | |
throws AccessPoemException, ValidationPoemException { |
887 | 0 | ((ShopOrder)g).setPostcode((String)cooked); |
888 | 0 | } |
889 | |
|
890 | |
public Field asField(Persistent g) { |
891 | 0 | return ((ShopOrder)g).getPostcodeField(); |
892 | |
} |
893 | |
|
894 | |
protected DisplayLevel defaultDisplayLevel() { |
895 | 8 | return DisplayLevel.record; |
896 | |
} |
897 | |
|
898 | |
protected String defaultDisplayName() { |
899 | 4 | return "Postcode"; |
900 | |
} |
901 | |
|
902 | |
protected int defaultDisplayOrder() { |
903 | 4 | return 13; |
904 | |
} |
905 | |
|
906 | |
protected String defaultDescription() { |
907 | 4 | return "Order postcode"; |
908 | |
} |
909 | |
|
910 | |
public Object getRaw_unsafe(Persistent g) |
911 | |
throws AccessPoemException { |
912 | 0 | return ((ShopOrder)g).getPostcode_unsafe(); |
913 | |
} |
914 | |
|
915 | |
public void setRaw_unsafe(Persistent g, Object raw) |
916 | |
throws AccessPoemException { |
917 | 0 | ((ShopOrder)g).setPostcode_unsafe((String)raw); |
918 | 0 | } |
919 | |
|
920 | |
public Object getRaw(Persistent g) |
921 | |
throws AccessPoemException { |
922 | 0 | return ((ShopOrder)g).getPostcode(); |
923 | |
} |
924 | |
|
925 | 4 | public void setRaw(Persistent g, Object raw) |
926 | |
throws AccessPoemException { |
927 | 0 | ((ShopOrder)g).setPostcode((String)raw); |
928 | 0 | } |
929 | |
}); |
930 | |
|
931 | 4 | defineColumn(col_country = |
932 | |
new Column(this, "country", |
933 | |
new StringPoemType(false, -1), |
934 | |
DefinitionSource.dsd) { |
935 | |
public Object getCooked(Persistent g) |
936 | |
throws AccessPoemException, PoemException { |
937 | 0 | return ((ShopOrder)g).getCountry(); |
938 | |
} |
939 | |
|
940 | |
public void setCooked(Persistent g, Object cooked) |
941 | |
throws AccessPoemException, ValidationPoemException { |
942 | 0 | ((ShopOrder)g).setCountry((String)cooked); |
943 | 0 | } |
944 | |
|
945 | |
public Field asField(Persistent g) { |
946 | 0 | return ((ShopOrder)g).getCountryField(); |
947 | |
} |
948 | |
|
949 | |
protected DisplayLevel defaultDisplayLevel() { |
950 | 8 | return DisplayLevel.record; |
951 | |
} |
952 | |
|
953 | |
protected Searchability defaultSearchability() { |
954 | 8 | return Searchability.yes; |
955 | |
} |
956 | |
|
957 | |
protected String defaultDisplayName() { |
958 | 4 | return "Country"; |
959 | |
} |
960 | |
|
961 | |
protected int defaultDisplayOrder() { |
962 | 4 | return 14; |
963 | |
} |
964 | |
|
965 | |
public Object getRaw_unsafe(Persistent g) |
966 | |
throws AccessPoemException { |
967 | 0 | return ((ShopOrder)g).getCountry_unsafe(); |
968 | |
} |
969 | |
|
970 | |
public void setRaw_unsafe(Persistent g, Object raw) |
971 | |
throws AccessPoemException { |
972 | 0 | ((ShopOrder)g).setCountry_unsafe((String)raw); |
973 | 0 | } |
974 | |
|
975 | |
public Object getRaw(Persistent g) |
976 | |
throws AccessPoemException { |
977 | 0 | return ((ShopOrder)g).getCountry(); |
978 | |
} |
979 | |
|
980 | 4 | public void setRaw(Persistent g, Object raw) |
981 | |
throws AccessPoemException { |
982 | 0 | ((ShopOrder)g).setCountry((String)raw); |
983 | 0 | } |
984 | |
}); |
985 | |
|
986 | 4 | defineColumn(col_spam = |
987 | |
new Column(this, "spam", |
988 | |
new BooleanPoemType(false), |
989 | |
DefinitionSource.dsd) { |
990 | |
public Object getCooked(Persistent g) |
991 | |
throws AccessPoemException, PoemException { |
992 | 0 | return ((ShopOrder)g).getSpam(); |
993 | |
} |
994 | |
|
995 | |
public void setCooked(Persistent g, Object cooked) |
996 | |
throws AccessPoemException, ValidationPoemException { |
997 | 0 | ((ShopOrder)g).setSpam((Boolean)cooked); |
998 | 0 | } |
999 | |
|
1000 | |
public Field asField(Persistent g) { |
1001 | 0 | return ((ShopOrder)g).getSpamField(); |
1002 | |
} |
1003 | |
|
1004 | |
protected DisplayLevel defaultDisplayLevel() { |
1005 | 8 | return DisplayLevel.record; |
1006 | |
} |
1007 | |
|
1008 | |
protected Searchability defaultSearchability() { |
1009 | 8 | return Searchability.no; |
1010 | |
} |
1011 | |
|
1012 | |
protected String defaultDisplayName() { |
1013 | 4 | return "Want Spam?"; |
1014 | |
} |
1015 | |
|
1016 | |
protected int defaultDisplayOrder() { |
1017 | 4 | return 15; |
1018 | |
} |
1019 | |
|
1020 | |
protected String defaultDescription() { |
1021 | 4 | return "Does the user want to receive spam email?"; |
1022 | |
} |
1023 | |
|
1024 | |
public Object getRaw_unsafe(Persistent g) |
1025 | |
throws AccessPoemException { |
1026 | 0 | return ((ShopOrder)g).getSpam_unsafe(); |
1027 | |
} |
1028 | |
|
1029 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1030 | |
throws AccessPoemException { |
1031 | 0 | ((ShopOrder)g).setSpam_unsafe((Boolean)raw); |
1032 | 0 | } |
1033 | |
|
1034 | |
public Object getRaw(Persistent g) |
1035 | |
throws AccessPoemException { |
1036 | 0 | return ((ShopOrder)g).getSpam(); |
1037 | |
} |
1038 | |
|
1039 | 4 | public void setRaw(Persistent g, Object raw) |
1040 | |
throws AccessPoemException { |
1041 | 0 | ((ShopOrder)g).setSpam((Boolean)raw); |
1042 | 0 | } |
1043 | |
}); |
1044 | 4 | } |
1045 | |
|
1046 | |
|
1047 | |
|
1048 | |
|
1049 | |
|
1050 | |
|
1051 | |
|
1052 | |
|
1053 | |
|
1054 | |
public final Column getIdColumn() { |
1055 | 0 | return col_id; |
1056 | |
} |
1057 | |
|
1058 | |
|
1059 | |
|
1060 | |
|
1061 | |
|
1062 | |
|
1063 | |
|
1064 | |
|
1065 | |
|
1066 | |
public final Column getUserColumn() { |
1067 | 0 | return col_user; |
1068 | |
} |
1069 | |
|
1070 | |
|
1071 | |
|
1072 | |
|
1073 | |
|
1074 | |
|
1075 | |
|
1076 | |
|
1077 | |
|
1078 | |
public final Column getDateColumn() { |
1079 | 0 | return col_date; |
1080 | |
} |
1081 | |
|
1082 | |
|
1083 | |
|
1084 | |
|
1085 | |
|
1086 | |
|
1087 | |
|
1088 | |
|
1089 | |
|
1090 | |
public final Column getCustomerCommentColumn() { |
1091 | 0 | return col_customerComment; |
1092 | |
} |
1093 | |
|
1094 | |
|
1095 | |
|
1096 | |
|
1097 | |
|
1098 | |
|
1099 | |
|
1100 | |
|
1101 | |
|
1102 | |
public final Column getMessageColumn() { |
1103 | 0 | return col_message; |
1104 | |
} |
1105 | |
|
1106 | |
|
1107 | |
|
1108 | |
|
1109 | |
|
1110 | |
|
1111 | |
|
1112 | |
|
1113 | |
|
1114 | |
public final Column getAmountColumn() { |
1115 | 0 | return col_amount; |
1116 | |
} |
1117 | |
|
1118 | |
|
1119 | |
|
1120 | |
|
1121 | |
|
1122 | |
|
1123 | |
|
1124 | |
|
1125 | |
|
1126 | |
public final Column getDeliveryColumn() { |
1127 | 0 | return col_delivery; |
1128 | |
} |
1129 | |
|
1130 | |
|
1131 | |
|
1132 | |
|
1133 | |
|
1134 | |
|
1135 | |
|
1136 | |
|
1137 | |
|
1138 | |
public final Column getNameColumn() { |
1139 | 0 | return col_name; |
1140 | |
} |
1141 | |
|
1142 | |
|
1143 | |
|
1144 | |
|
1145 | |
|
1146 | |
|
1147 | |
|
1148 | |
|
1149 | |
|
1150 | |
public final Column getDeliveryNameColumn() { |
1151 | 0 | return col_deliveryName; |
1152 | |
} |
1153 | |
|
1154 | |
|
1155 | |
|
1156 | |
|
1157 | |
|
1158 | |
|
1159 | |
|
1160 | |
|
1161 | |
|
1162 | |
public final Column getEmailColumn() { |
1163 | 0 | return col_email; |
1164 | |
} |
1165 | |
|
1166 | |
|
1167 | |
|
1168 | |
|
1169 | |
|
1170 | |
|
1171 | |
|
1172 | |
|
1173 | |
|
1174 | |
public final Column getAddressColumn() { |
1175 | 0 | return col_address; |
1176 | |
} |
1177 | |
|
1178 | |
|
1179 | |
|
1180 | |
|
1181 | |
|
1182 | |
|
1183 | |
|
1184 | |
|
1185 | |
|
1186 | |
public final Column getTownColumn() { |
1187 | 0 | return col_town; |
1188 | |
} |
1189 | |
|
1190 | |
|
1191 | |
|
1192 | |
|
1193 | |
|
1194 | |
|
1195 | |
|
1196 | |
|
1197 | |
|
1198 | |
public final Column getTelColumn() { |
1199 | 0 | return col_tel; |
1200 | |
} |
1201 | |
|
1202 | |
|
1203 | |
|
1204 | |
|
1205 | |
|
1206 | |
|
1207 | |
|
1208 | |
|
1209 | |
|
1210 | |
public final Column getPostcodeColumn() { |
1211 | 0 | return col_postcode; |
1212 | |
} |
1213 | |
|
1214 | |
|
1215 | |
|
1216 | |
|
1217 | |
|
1218 | |
|
1219 | |
|
1220 | |
|
1221 | |
|
1222 | |
public final Column getCountryColumn() { |
1223 | 0 | return col_country; |
1224 | |
} |
1225 | |
|
1226 | |
|
1227 | |
|
1228 | |
|
1229 | |
|
1230 | |
|
1231 | |
|
1232 | |
|
1233 | |
|
1234 | |
public final Column getSpamColumn() { |
1235 | 0 | return col_spam; |
1236 | |
} |
1237 | |
|
1238 | |
|
1239 | |
|
1240 | |
|
1241 | |
|
1242 | |
|
1243 | |
|
1244 | |
|
1245 | |
|
1246 | |
public ShopOrder getShopOrderObject(Integer troid) { |
1247 | 0 | return (ShopOrder)getObject(troid); |
1248 | |
} |
1249 | |
|
1250 | |
|
1251 | |
|
1252 | |
|
1253 | |
|
1254 | |
|
1255 | |
|
1256 | |
|
1257 | |
|
1258 | |
public ShopOrder getShopOrderObject(int troid) { |
1259 | 0 | return (ShopOrder)getObject(troid); |
1260 | |
} |
1261 | |
|
1262 | |
protected JdbcPersistent _newPersistent() { |
1263 | 0 | return new ShopOrder(); |
1264 | |
} |
1265 | |
protected String defaultDisplayName() { |
1266 | 4 | return "Order"; |
1267 | |
} |
1268 | |
|
1269 | |
protected String defaultDescription() { |
1270 | 4 | return "A Customer's Order"; |
1271 | |
} |
1272 | |
|
1273 | |
protected String defaultCategory() { |
1274 | 4 | return "Data"; |
1275 | |
} |
1276 | |
|
1277 | |
protected int defaultDisplayOrder() { |
1278 | 4 | return 60; |
1279 | |
} |
1280 | |
} |
1281 | |
|