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