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