1
2
3 package org.paneris.jammyjoes.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.jammyjoes.model.Affiliate;
24 import org.paneris.jammyjoes.model.DeliveryZone;
25 import org.paneris.jammyjoes.model.JammyjoesDatabaseTables;
26 import org.paneris.jammyjoes.model.JammyjoesTable;
27 import org.paneris.jammyjoes.model.OrderStatus;
28 import org.paneris.jammyjoes.model.OrderType;
29 import org.paneris.jammyjoes.model.ShopCurrency;
30 import org.paneris.jammyjoes.model.ShopOrder;
31 import org.paneris.jammyjoes.model.User;
32 import org.paneris.jammyjoes.model.Wrapping;
33
34
35 /**
36 * Melati POEM generated base class for
37 <code>Table</code> <code>ShopOrder</code>.
38 *
39 * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava
40 */
41
42 public class ShopOrderTableBase extends JammyjoesTable {
43
44 private Column col_id = null;
45 private Column col_user = null;
46 private Column col_operator = null;
47 private Column col_status = null;
48 private Column col_type = null;
49 private Column col_date = null;
50 private Column col_fufilleddate = null;
51 private Column col_comment = null;
52 private Column col_customerComment = null;
53 private Column col_alert = null;
54 private Column col_message = null;
55 private Column col_amount = null;
56 private Column col_delivery = null;
57 private Column col_amountUK = null;
58 private Column col_deliveryUK = null;
59 private Column col_name = null;
60 private Column col_deliveryName = null;
61 private Column col_email = null;
62 private Column col_address = null;
63 private Column col_town = null;
64 private Column col_tel = null;
65 private Column col_postcode = null;
66 private Column col_country = null;
67 private Column col_currency = null;
68 private Column col_zone = null;
69 private Column col_wrapping = null;
70 private Column col_affiliate = null;
71 private Column col_affiliatepaid = null;
72 private Column col_comission = null;
73 private Column col_spam = null;
74
75 /**
76 * Constructor.
77 *
78 * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava
79 * @param database the POEM database we are using
80 * @param name the name of this <code>Table</code>
81 * @param definitionSource which definition is being used
82 * @throws PoemException if anything goes wrong
83 */
84
85 public ShopOrderTableBase(
86 Database database, String name,
87 DefinitionSource definitionSource) throws PoemException {
88 super(database, name, definitionSource);
89 }
90
91
92 /**
93 * Get the database tables.
94 *
95 * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava
96 * @return the database tables
97 */
98 public JammyjoesDatabaseTables getJammyjoesDatabaseTables() {
99 return (JammyjoesDatabaseTables)getDatabase();
100 }
101
102 public void init() throws PoemException {
103 super.init();
104 defineColumn(col_id =
105 new Column(this, "id",
106 new TroidPoemType(),
107 DefinitionSource.dsd) {
108 public Object getCooked(Persistent g)
109 throws AccessPoemException, PoemException {
110 return ((ShopOrder)g).getId();
111 }
112
113 public void setCooked(Persistent g, Object cooked)
114 throws AccessPoemException, ValidationPoemException {
115 ((ShopOrder)g).setId((Integer)cooked);
116 }
117
118 public Field asField(Persistent g) {
119 return ((ShopOrder)g).getIdField();
120 }
121
122 protected boolean defaultUserEditable() {
123 return false;
124 }
125
126 protected boolean defaultUserCreateable() {
127 return false;
128 }
129
130 protected DisplayLevel defaultDisplayLevel() {
131 return DisplayLevel.summary;
132 }
133
134 protected Searchability defaultSearchability() {
135 return Searchability.primary;
136 }
137
138 protected int defaultDisplayOrder() {
139 return 0;
140 }
141
142 public Object getRaw_unsafe(Persistent g)
143 throws AccessPoemException {
144 return ((ShopOrder)g).getId_unsafe();
145 }
146
147 public void setRaw_unsafe(Persistent g, Object raw)
148 throws AccessPoemException {
149 ((ShopOrder)g).setId_unsafe((Integer)raw);
150 }
151
152 public Object getRaw(Persistent g)
153 throws AccessPoemException {
154 return ((ShopOrder)g).getId();
155 }
156
157 public void setRaw(Persistent g, Object raw)
158 throws AccessPoemException {
159 ((ShopOrder)g).setId((Integer)raw);
160 }
161 });
162
163 defineColumn(col_user =
164 new Column(this, "user",
165 new ReferencePoemType(getJammyjoesDatabaseTables().
166 getUserTable(), false),
167 DefinitionSource.dsd) {
168 public Object getCooked(Persistent g)
169 throws AccessPoemException, PoemException {
170 return ((ShopOrder)g).getUser();
171 }
172
173 public void setCooked(Persistent g, Object cooked)
174 throws AccessPoemException, ValidationPoemException {
175 ((ShopOrder)g).setUser((User)cooked);
176 }
177
178 public Field asField(Persistent g) {
179 return ((ShopOrder)g).getUserField();
180 }
181
182 protected DisplayLevel defaultDisplayLevel() {
183 return DisplayLevel.summary;
184 }
185
186 protected Searchability defaultSearchability() {
187 return Searchability.yes;
188 }
189
190 protected String defaultDisplayName() {
191 return "User";
192 }
193
194 protected int defaultDisplayOrder() {
195 return 1;
196 }
197
198 protected String defaultDescription() {
199 return "The Customer";
200 }
201
202 protected boolean defaultIndexed() {
203 return true;
204 }
205
206 protected String defaultRenderinfo() {
207 return "SelectionWindow";
208 }
209
210 public Object getRaw_unsafe(Persistent g)
211 throws AccessPoemException {
212 return ((ShopOrder)g).getUser_unsafe();
213 }
214
215 public void setRaw_unsafe(Persistent g, Object raw)
216 throws AccessPoemException {
217 ((ShopOrder)g).setUser_unsafe((Integer)raw);
218 }
219
220 public Object getRaw(Persistent g)
221 throws AccessPoemException {
222 return ((ShopOrder)g).getUserTroid();
223 }
224
225 public void setRaw(Persistent g, Object raw)
226 throws AccessPoemException {
227 ((ShopOrder)g).setUserTroid((Integer)raw);
228 }
229 });
230
231 defineColumn(col_operator =
232 new Column(this, "operator",
233 new ReferencePoemType(getJammyjoesDatabaseTables().
234 getUserTable(), true),
235 DefinitionSource.dsd) {
236 public Object getCooked(Persistent g)
237 throws AccessPoemException, PoemException {
238 return ((ShopOrder)g).getOperator();
239 }
240
241 public void setCooked(Persistent g, Object cooked)
242 throws AccessPoemException, ValidationPoemException {
243 ((ShopOrder)g).setOperator((User)cooked);
244 }
245
246 public Field asField(Persistent g) {
247 return ((ShopOrder)g).getOperatorField();
248 }
249
250 protected DisplayLevel defaultDisplayLevel() {
251 return DisplayLevel.record;
252 }
253
254 protected Searchability defaultSearchability() {
255 return Searchability.yes;
256 }
257
258 protected String defaultDisplayName() {
259 return "Operator";
260 }
261
262 protected int defaultDisplayOrder() {
263 return 2;
264 }
265
266 protected String defaultDescription() {
267 return "The Operator who took this Order";
268 }
269
270 protected boolean defaultIndexed() {
271 return true;
272 }
273
274 protected String defaultRenderinfo() {
275 return "SelectionWindow";
276 }
277
278 public Object getRaw_unsafe(Persistent g)
279 throws AccessPoemException {
280 return ((ShopOrder)g).getOperator_unsafe();
281 }
282
283 public void setRaw_unsafe(Persistent g, Object raw)
284 throws AccessPoemException {
285 ((ShopOrder)g).setOperator_unsafe((Integer)raw);
286 }
287
288 public Object getRaw(Persistent g)
289 throws AccessPoemException {
290 return ((ShopOrder)g).getOperatorTroid();
291 }
292
293 public void setRaw(Persistent g, Object raw)
294 throws AccessPoemException {
295 ((ShopOrder)g).setOperatorTroid((Integer)raw);
296 }
297 });
298
299 defineColumn(col_status =
300 new Column(this, "status",
301 new ReferencePoemType(getJammyjoesDatabaseTables().
302 getOrderStatusTable(), false),
303 DefinitionSource.dsd) {
304 public Object getCooked(Persistent g)
305 throws AccessPoemException, PoemException {
306 return ((ShopOrder)g).getStatus();
307 }
308
309 public void setCooked(Persistent g, Object cooked)
310 throws AccessPoemException, ValidationPoemException {
311 ((ShopOrder)g).setStatus((OrderStatus)cooked);
312 }
313
314 public Field asField(Persistent g) {
315 return ((ShopOrder)g).getStatusField();
316 }
317
318 protected DisplayLevel defaultDisplayLevel() {
319 return DisplayLevel.summary;
320 }
321
322 protected Searchability defaultSearchability() {
323 return Searchability.yes;
324 }
325
326 protected String defaultDisplayName() {
327 return "Status";
328 }
329
330 protected int defaultDisplayOrder() {
331 return 3;
332 }
333
334 protected String defaultDescription() {
335 return "The status of this order";
336 }
337
338 protected boolean defaultIndexed() {
339 return true;
340 }
341
342 public Object getRaw_unsafe(Persistent g)
343 throws AccessPoemException {
344 return ((ShopOrder)g).getStatus_unsafe();
345 }
346
347 public void setRaw_unsafe(Persistent g, Object raw)
348 throws AccessPoemException {
349 ((ShopOrder)g).setStatus_unsafe((Integer)raw);
350 }
351
352 public Object getRaw(Persistent g)
353 throws AccessPoemException {
354 return ((ShopOrder)g).getStatusTroid();
355 }
356
357 public void setRaw(Persistent g, Object raw)
358 throws AccessPoemException {
359 ((ShopOrder)g).setStatusTroid((Integer)raw);
360 }
361 });
362
363 defineColumn(col_type =
364 new Column(this, "type",
365 new ReferencePoemType(getJammyjoesDatabaseTables().
366 getOrderTypeTable(), false),
367 DefinitionSource.dsd) {
368 public Object getCooked(Persistent g)
369 throws AccessPoemException, PoemException {
370 return ((ShopOrder)g).getType();
371 }
372
373 public void setCooked(Persistent g, Object cooked)
374 throws AccessPoemException, ValidationPoemException {
375 ((ShopOrder)g).setType((OrderType)cooked);
376 }
377
378 public Field asField(Persistent g) {
379 return ((ShopOrder)g).getTypeField();
380 }
381
382 protected DisplayLevel defaultDisplayLevel() {
383 return DisplayLevel.record;
384 }
385
386 protected Searchability defaultSearchability() {
387 return Searchability.yes;
388 }
389
390 protected String defaultDisplayName() {
391 return "Type";
392 }
393
394 protected int defaultDisplayOrder() {
395 return 4;
396 }
397
398 protected String defaultDescription() {
399 return "The type of this order";
400 }
401
402 protected boolean defaultIndexed() {
403 return true;
404 }
405
406 public Object getRaw_unsafe(Persistent g)
407 throws AccessPoemException {
408 return ((ShopOrder)g).getType_unsafe();
409 }
410
411 public void setRaw_unsafe(Persistent g, Object raw)
412 throws AccessPoemException {
413 ((ShopOrder)g).setType_unsafe((Integer)raw);
414 }
415
416 public Object getRaw(Persistent g)
417 throws AccessPoemException {
418 return ((ShopOrder)g).getTypeTroid();
419 }
420
421 public void setRaw(Persistent g, Object raw)
422 throws AccessPoemException {
423 ((ShopOrder)g).setTypeTroid((Integer)raw);
424 }
425 });
426
427 defineColumn(col_date =
428 new Column(this, "date",
429 new TimestampPoemType(true),
430 DefinitionSource.dsd) {
431 public Object getCooked(Persistent g)
432 throws AccessPoemException, PoemException {
433 return ((ShopOrder)g).getDate();
434 }
435
436 public void setCooked(Persistent g, Object cooked)
437 throws AccessPoemException, ValidationPoemException {
438 ((ShopOrder)g).setDate((Timestamp)cooked);
439 }
440
441 public Field asField(Persistent g) {
442 return ((ShopOrder)g).getDateField();
443 }
444
445 protected DisplayLevel defaultDisplayLevel() {
446 return DisplayLevel.summary;
447 }
448
449 protected Searchability defaultSearchability() {
450 return Searchability.yes;
451 }
452
453 protected Integer defaultDisplayOrderPriority() {
454 return new Integer(1);
455 }
456
457 protected boolean defaultSortDescending() {
458 return true;
459 }
460
461 protected String defaultDisplayName() {
462 return "Date";
463 }
464
465 protected int defaultDisplayOrder() {
466 return 5;
467 }
468
469 protected String defaultDescription() {
470 return "The date that this order was placed (leave blank to autocomplete)";
471 }
472
473 public Object getRaw_unsafe(Persistent g)
474 throws AccessPoemException {
475 return ((ShopOrder)g).getDate_unsafe();
476 }
477
478 public void setRaw_unsafe(Persistent g, Object raw)
479 throws AccessPoemException {
480 ((ShopOrder)g).setDate_unsafe((Timestamp)raw);
481 }
482
483 public Object getRaw(Persistent g)
484 throws AccessPoemException {
485 return ((ShopOrder)g).getDate();
486 }
487
488 public void setRaw(Persistent g, Object raw)
489 throws AccessPoemException {
490 ((ShopOrder)g).setDate((Timestamp)raw);
491 }
492 });
493
494 defineColumn(col_fufilleddate =
495 new Column(this, "fufilleddate",
496 new TimestampPoemType(true),
497 DefinitionSource.dsd) {
498 public Object getCooked(Persistent g)
499 throws AccessPoemException, PoemException {
500 return ((ShopOrder)g).getFufilleddate();
501 }
502
503 public void setCooked(Persistent g, Object cooked)
504 throws AccessPoemException, ValidationPoemException {
505 ((ShopOrder)g).setFufilleddate((Timestamp)cooked);
506 }
507
508 public Field asField(Persistent g) {
509 return ((ShopOrder)g).getFufilleddateField();
510 }
511
512 protected DisplayLevel defaultDisplayLevel() {
513 return DisplayLevel.record;
514 }
515
516 protected Searchability defaultSearchability() {
517 return Searchability.no;
518 }
519
520 protected boolean defaultSortDescending() {
521 return true;
522 }
523
524 protected String defaultDisplayName() {
525 return "Fufilled Date";
526 }
527
528 protected int defaultDisplayOrder() {
529 return 6;
530 }
531
532 protected String defaultDescription() {
533 return "The date that this order was fufilled (leave blank to autocomplete)";
534 }
535
536 public Object getRaw_unsafe(Persistent g)
537 throws AccessPoemException {
538 return ((ShopOrder)g).getFufilleddate_unsafe();
539 }
540
541 public void setRaw_unsafe(Persistent g, Object raw)
542 throws AccessPoemException {
543 ((ShopOrder)g).setFufilleddate_unsafe((Timestamp)raw);
544 }
545
546 public Object getRaw(Persistent g)
547 throws AccessPoemException {
548 return ((ShopOrder)g).getFufilleddate();
549 }
550
551 public void setRaw(Persistent g, Object raw)
552 throws AccessPoemException {
553 ((ShopOrder)g).setFufilleddate((Timestamp)raw);
554 }
555 });
556
557 defineColumn(col_comment =
558 new Column(this, "comment",
559 new StringPoemType(true, -1),
560 DefinitionSource.dsd) {
561 public Object getCooked(Persistent g)
562 throws AccessPoemException, PoemException {
563 return ((ShopOrder)g).getComment();
564 }
565
566 public void setCooked(Persistent g, Object cooked)
567 throws AccessPoemException, ValidationPoemException {
568 ((ShopOrder)g).setComment((String)cooked);
569 }
570
571 public Field asField(Persistent g) {
572 return ((ShopOrder)g).getCommentField();
573 }
574
575 protected DisplayLevel defaultDisplayLevel() {
576 return DisplayLevel.record;
577 }
578
579 protected Searchability defaultSearchability() {
580 return Searchability.yes;
581 }
582
583 protected String defaultDisplayName() {
584 return "Comment";
585 }
586
587 protected int defaultDisplayOrder() {
588 return 7;
589 }
590
591 protected String defaultDescription() {
592 return "Any comments by JammyJoes people reguarding this order";
593 }
594
595 protected int defaultWidth() {
596 return 30;
597 }
598
599 protected int defaultHeight() {
600 return 5;
601 }
602
603 public Object getRaw_unsafe(Persistent g)
604 throws AccessPoemException {
605 return ((ShopOrder)g).getComment_unsafe();
606 }
607
608 public void setRaw_unsafe(Persistent g, Object raw)
609 throws AccessPoemException {
610 ((ShopOrder)g).setComment_unsafe((String)raw);
611 }
612
613 public Object getRaw(Persistent g)
614 throws AccessPoemException {
615 return ((ShopOrder)g).getComment();
616 }
617
618 public void setRaw(Persistent g, Object raw)
619 throws AccessPoemException {
620 ((ShopOrder)g).setComment((String)raw);
621 }
622 });
623
624 defineColumn(col_customerComment =
625 new Column(this, "customerComment",
626 new StringPoemType(true, -1),
627 DefinitionSource.dsd) {
628 public Object getCooked(Persistent g)
629 throws AccessPoemException, PoemException {
630 return ((ShopOrder)g).getCustomerComment();
631 }
632
633 public void setCooked(Persistent g, Object cooked)
634 throws AccessPoemException, ValidationPoemException {
635 ((ShopOrder)g).setCustomerComment((String)cooked);
636 }
637
638 public Field asField(Persistent g) {
639 return ((ShopOrder)g).getCustomerCommentField();
640 }
641
642 protected DisplayLevel defaultDisplayLevel() {
643 return DisplayLevel.record;
644 }
645
646 protected Searchability defaultSearchability() {
647 return Searchability.no;
648 }
649
650 protected String defaultDisplayName() {
651 return "Comment";
652 }
653
654 protected int defaultDisplayOrder() {
655 return 8;
656 }
657
658 protected String defaultDescription() {
659 return "Commends by the customer reguarding this order";
660 }
661
662 protected int defaultWidth() {
663 return 30;
664 }
665
666 protected int defaultHeight() {
667 return 5;
668 }
669
670 public Object getRaw_unsafe(Persistent g)
671 throws AccessPoemException {
672 return ((ShopOrder)g).getCustomerComment_unsafe();
673 }
674
675 public void setRaw_unsafe(Persistent g, Object raw)
676 throws AccessPoemException {
677 ((ShopOrder)g).setCustomerComment_unsafe((String)raw);
678 }
679
680 public Object getRaw(Persistent g)
681 throws AccessPoemException {
682 return ((ShopOrder)g).getCustomerComment();
683 }
684
685 public void setRaw(Persistent g, Object raw)
686 throws AccessPoemException {
687 ((ShopOrder)g).setCustomerComment((String)raw);
688 }
689 });
690
691 defineColumn(col_alert =
692 new Column(this, "alert",
693 new BooleanPoemType(false),
694 DefinitionSource.dsd) {
695 public Object getCooked(Persistent g)
696 throws AccessPoemException, PoemException {
697 return ((ShopOrder)g).getAlert();
698 }
699
700 public void setCooked(Persistent g, Object cooked)
701 throws AccessPoemException, ValidationPoemException {
702 ((ShopOrder)g).setAlert((Boolean)cooked);
703 }
704
705 public Field asField(Persistent g) {
706 return ((ShopOrder)g).getAlertField();
707 }
708
709 protected DisplayLevel defaultDisplayLevel() {
710 return DisplayLevel.record;
711 }
712
713 protected Searchability defaultSearchability() {
714 return Searchability.yes;
715 }
716
717 protected Integer defaultDisplayOrderPriority() {
718 return new Integer(0);
719 }
720
721 protected boolean defaultSortDescending() {
722 return true;
723 }
724
725 protected String defaultDisplayName() {
726 return "Alert!";
727 }
728
729 protected int defaultDisplayOrder() {
730 return 9;
731 }
732
733 protected String defaultDescription() {
734 return "Please read the comments to find out new actions for this order";
735 }
736
737 public Object getRaw_unsafe(Persistent g)
738 throws AccessPoemException {
739 return ((ShopOrder)g).getAlert_unsafe();
740 }
741
742 public void setRaw_unsafe(Persistent g, Object raw)
743 throws AccessPoemException {
744 ((ShopOrder)g).setAlert_unsafe((Boolean)raw);
745 }
746
747 public Object getRaw(Persistent g)
748 throws AccessPoemException {
749 return ((ShopOrder)g).getAlert();
750 }
751
752 public void setRaw(Persistent g, Object raw)
753 throws AccessPoemException {
754 ((ShopOrder)g).setAlert((Boolean)raw);
755 }
756 });
757
758 defineColumn(col_message =
759 new Column(this, "message",
760 new StringPoemType(true, -1),
761 DefinitionSource.dsd) {
762 public Object getCooked(Persistent g)
763 throws AccessPoemException, PoemException {
764 return ((ShopOrder)g).getMessage();
765 }
766
767 public void setCooked(Persistent g, Object cooked)
768 throws AccessPoemException, ValidationPoemException {
769 ((ShopOrder)g).setMessage((String)cooked);
770 }
771
772 public Field asField(Persistent g) {
773 return ((ShopOrder)g).getMessageField();
774 }
775
776 protected DisplayLevel defaultDisplayLevel() {
777 return DisplayLevel.record;
778 }
779
780 protected Searchability defaultSearchability() {
781 return Searchability.yes;
782 }
783
784 protected String defaultDisplayName() {
785 return "Message";
786 }
787
788 protected int defaultDisplayOrder() {
789 return 10;
790 }
791
792 protected String defaultDescription() {
793 return "A message to be included with this order";
794 }
795
796 protected int defaultWidth() {
797 return 30;
798 }
799
800 protected int defaultHeight() {
801 return 5;
802 }
803
804 public Object getRaw_unsafe(Persistent g)
805 throws AccessPoemException {
806 return ((ShopOrder)g).getMessage_unsafe();
807 }
808
809 public void setRaw_unsafe(Persistent g, Object raw)
810 throws AccessPoemException {
811 ((ShopOrder)g).setMessage_unsafe((String)raw);
812 }
813
814 public Object getRaw(Persistent g)
815 throws AccessPoemException {
816 return ((ShopOrder)g).getMessage();
817 }
818
819 public void setRaw(Persistent g, Object raw)
820 throws AccessPoemException {
821 ((ShopOrder)g).setMessage((String)raw);
822 }
823 });
824
825 defineColumn(col_amount =
826 new Column(this, "amount",
827 new DoublePoemType(false),
828 DefinitionSource.dsd) {
829 public Object getCooked(Persistent g)
830 throws AccessPoemException, PoemException {
831 return ((ShopOrder)g).getAmount();
832 }
833
834 public void setCooked(Persistent g, Object cooked)
835 throws AccessPoemException, ValidationPoemException {
836 ((ShopOrder)g).setAmount((Double)cooked);
837 }
838
839 public Field asField(Persistent g) {
840 return ((ShopOrder)g).getAmountField();
841 }
842
843 protected DisplayLevel defaultDisplayLevel() {
844 return DisplayLevel.record;
845 }
846
847 protected Searchability defaultSearchability() {
848 return Searchability.no;
849 }
850
851 protected String defaultDisplayName() {
852 return "Total Amount (in customer's currency)";
853 }
854
855 protected int defaultDisplayOrder() {
856 return 11;
857 }
858
859 protected String defaultDescription() {
860 return "The total amount of the order (in customer's currency)";
861 }
862
863 public Object getRaw_unsafe(Persistent g)
864 throws AccessPoemException {
865 return ((ShopOrder)g).getAmount_unsafe();
866 }
867
868 public void setRaw_unsafe(Persistent g, Object raw)
869 throws AccessPoemException {
870 ((ShopOrder)g).setAmount_unsafe((Double)raw);
871 }
872
873 public Object getRaw(Persistent g)
874 throws AccessPoemException {
875 return ((ShopOrder)g).getAmount();
876 }
877
878 public void setRaw(Persistent g, Object raw)
879 throws AccessPoemException {
880 ((ShopOrder)g).setAmount((Double)raw);
881 }
882 });
883
884 defineColumn(col_delivery =
885 new Column(this, "delivery",
886 new DoublePoemType(false),
887 DefinitionSource.dsd) {
888 public Object getCooked(Persistent g)
889 throws AccessPoemException, PoemException {
890 return ((ShopOrder)g).getDelivery();
891 }
892
893 public void setCooked(Persistent g, Object cooked)
894 throws AccessPoemException, ValidationPoemException {
895 ((ShopOrder)g).setDelivery((Double)cooked);
896 }
897
898 public Field asField(Persistent g) {
899 return ((ShopOrder)g).getDeliveryField();
900 }
901
902 protected DisplayLevel defaultDisplayLevel() {
903 return DisplayLevel.record;
904 }
905
906 protected Searchability defaultSearchability() {
907 return Searchability.no;
908 }
909
910 protected String defaultDisplayName() {
911 return "Total Delivery (in customer's currency)";
912 }
913
914 protected int defaultDisplayOrder() {
915 return 12;
916 }
917
918 protected String defaultDescription() {
919 return "The total delivery charge for the order (in customer's currency)";
920 }
921
922 public Object getRaw_unsafe(Persistent g)
923 throws AccessPoemException {
924 return ((ShopOrder)g).getDelivery_unsafe();
925 }
926
927 public void setRaw_unsafe(Persistent g, Object raw)
928 throws AccessPoemException {
929 ((ShopOrder)g).setDelivery_unsafe((Double)raw);
930 }
931
932 public Object getRaw(Persistent g)
933 throws AccessPoemException {
934 return ((ShopOrder)g).getDelivery();
935 }
936
937 public void setRaw(Persistent g, Object raw)
938 throws AccessPoemException {
939 ((ShopOrder)g).setDelivery((Double)raw);
940 }
941 });
942
943 defineColumn(col_amountUK =
944 new Column(this, "amountUK",
945 new DoublePoemType(false),
946 DefinitionSource.dsd) {
947 public Object getCooked(Persistent g)
948 throws AccessPoemException, PoemException {
949 return ((ShopOrder)g).getAmountUK();
950 }
951
952 public void setCooked(Persistent g, Object cooked)
953 throws AccessPoemException, ValidationPoemException {
954 ((ShopOrder)g).setAmountUK((Double)cooked);
955 }
956
957 public Field asField(Persistent g) {
958 return ((ShopOrder)g).getAmountUKField();
959 }
960
961 protected DisplayLevel defaultDisplayLevel() {
962 return DisplayLevel.summary;
963 }
964
965 protected Searchability defaultSearchability() {
966 return Searchability.no;
967 }
968
969 protected String defaultDisplayName() {
970 return "Total Amount";
971 }
972
973 protected int defaultDisplayOrder() {
974 return 13;
975 }
976
977 protected String defaultDescription() {
978 return "The total amount of the order (UK Sterling Equivalent)";
979 }
980
981 public Object getRaw_unsafe(Persistent g)
982 throws AccessPoemException {
983 return ((ShopOrder)g).getAmountUK_unsafe();
984 }
985
986 public void setRaw_unsafe(Persistent g, Object raw)
987 throws AccessPoemException {
988 ((ShopOrder)g).setAmountUK_unsafe((Double)raw);
989 }
990
991 public Object getRaw(Persistent g)
992 throws AccessPoemException {
993 return ((ShopOrder)g).getAmountUK();
994 }
995
996 public void setRaw(Persistent g, Object raw)
997 throws AccessPoemException {
998 ((ShopOrder)g).setAmountUK((Double)raw);
999 }
1000 });
1001
1002 defineColumn(col_deliveryUK =
1003 new Column(this, "deliveryUK",
1004 new DoublePoemType(false),
1005 DefinitionSource.dsd) {
1006 public Object getCooked(Persistent g)
1007 throws AccessPoemException, PoemException {
1008 return ((ShopOrder)g).getDeliveryUK();
1009 }
1010
1011 public void setCooked(Persistent g, Object cooked)
1012 throws AccessPoemException, ValidationPoemException {
1013 ((ShopOrder)g).setDeliveryUK((Double)cooked);
1014 }
1015
1016 public Field asField(Persistent g) {
1017 return ((ShopOrder)g).getDeliveryUKField();
1018 }
1019
1020 protected DisplayLevel defaultDisplayLevel() {
1021 return DisplayLevel.record;
1022 }
1023
1024 protected Searchability defaultSearchability() {
1025 return Searchability.no;
1026 }
1027
1028 protected String defaultDisplayName() {
1029 return "Total Delivery (UK Sterling Equivalent)";
1030 }
1031
1032 protected int defaultDisplayOrder() {
1033 return 14;
1034 }
1035
1036 protected String defaultDescription() {
1037 return "The total delivery charge for the order (UK Sterling Equivalent)";
1038 }
1039
1040 public Object getRaw_unsafe(Persistent g)
1041 throws AccessPoemException {
1042 return ((ShopOrder)g).getDeliveryUK_unsafe();
1043 }
1044
1045 public void setRaw_unsafe(Persistent g, Object raw)
1046 throws AccessPoemException {
1047 ((ShopOrder)g).setDeliveryUK_unsafe((Double)raw);
1048 }
1049
1050 public Object getRaw(Persistent g)
1051 throws AccessPoemException {
1052 return ((ShopOrder)g).getDeliveryUK();
1053 }
1054
1055 public void setRaw(Persistent g, Object raw)
1056 throws AccessPoemException {
1057 ((ShopOrder)g).setDeliveryUK((Double)raw);
1058 }
1059 });
1060
1061 defineColumn(col_name =
1062 new Column(this, "name",
1063 new StringPoemType(false, -1),
1064 DefinitionSource.dsd) {
1065 public Object getCooked(Persistent g)
1066 throws AccessPoemException, PoemException {
1067 return ((ShopOrder)g).getName();
1068 }
1069
1070 public void setCooked(Persistent g, Object cooked)
1071 throws AccessPoemException, ValidationPoemException {
1072 ((ShopOrder)g).setName((String)cooked);
1073 }
1074
1075 public Field asField(Persistent g) {
1076 return ((ShopOrder)g).getNameField();
1077 }
1078
1079 protected DisplayLevel defaultDisplayLevel() {
1080 return DisplayLevel.record;
1081 }
1082
1083 protected String defaultDisplayName() {
1084 return "Full name";
1085 }
1086
1087 protected int defaultDisplayOrder() {
1088 return 15;
1089 }
1090
1091 protected String defaultDescription() {
1092 return "The user's real name";
1093 }
1094
1095 public Object getRaw_unsafe(Persistent g)
1096 throws AccessPoemException {
1097 return ((ShopOrder)g).getName_unsafe();
1098 }
1099
1100 public void setRaw_unsafe(Persistent g, Object raw)
1101 throws AccessPoemException {
1102 ((ShopOrder)g).setName_unsafe((String)raw);
1103 }
1104
1105 public Object getRaw(Persistent g)
1106 throws AccessPoemException {
1107 return ((ShopOrder)g).getName();
1108 }
1109
1110 public void setRaw(Persistent g, Object raw)
1111 throws AccessPoemException {
1112 ((ShopOrder)g).setName((String)raw);
1113 }
1114 });
1115
1116 defineColumn(col_deliveryName =
1117 new Column(this, "deliveryName",
1118 new StringPoemType(true, -1),
1119 DefinitionSource.dsd) {
1120 public Object getCooked(Persistent g)
1121 throws AccessPoemException, PoemException {
1122 return ((ShopOrder)g).getDeliveryName();
1123 }
1124
1125 public void setCooked(Persistent g, Object cooked)
1126 throws AccessPoemException, ValidationPoemException {
1127 ((ShopOrder)g).setDeliveryName((String)cooked);
1128 }
1129
1130 public Field asField(Persistent g) {
1131 return ((ShopOrder)g).getDeliveryNameField();
1132 }
1133
1134 protected DisplayLevel defaultDisplayLevel() {
1135 return DisplayLevel.record;
1136 }
1137
1138 protected String defaultDisplayName() {
1139 return "Delivery name";
1140 }
1141
1142 protected int defaultDisplayOrder() {
1143 return 16;
1144 }
1145
1146 protected String defaultDescription() {
1147 return "The name of the persone to whom we are delivering";
1148 }
1149
1150 public Object getRaw_unsafe(Persistent g)
1151 throws AccessPoemException {
1152 return ((ShopOrder)g).getDeliveryName_unsafe();
1153 }
1154
1155 public void setRaw_unsafe(Persistent g, Object raw)
1156 throws AccessPoemException {
1157 ((ShopOrder)g).setDeliveryName_unsafe((String)raw);
1158 }
1159
1160 public Object getRaw(Persistent g)
1161 throws AccessPoemException {
1162 return ((ShopOrder)g).getDeliveryName();
1163 }
1164
1165 public void setRaw(Persistent g, Object raw)
1166 throws AccessPoemException {
1167 ((ShopOrder)g).setDeliveryName((String)raw);
1168 }
1169 });
1170
1171 defineColumn(col_email =
1172 new Column(this, "email",
1173 new StringPoemType(true, -1),
1174 DefinitionSource.dsd) {
1175 public Object getCooked(Persistent g)
1176 throws AccessPoemException, PoemException {
1177 return ((ShopOrder)g).getEmail();
1178 }
1179
1180 public void setCooked(Persistent g, Object cooked)
1181 throws AccessPoemException, ValidationPoemException {
1182 ((ShopOrder)g).setEmail((String)cooked);
1183 }
1184
1185 public Field asField(Persistent g) {
1186 return ((ShopOrder)g).getEmailField();
1187 }
1188
1189 protected DisplayLevel defaultDisplayLevel() {
1190 return DisplayLevel.record;
1191 }
1192
1193 protected Searchability defaultSearchability() {
1194 return Searchability.no;
1195 }
1196
1197 protected int defaultDisplayOrder() {
1198 return 17;
1199 }
1200
1201 protected String defaultDescription() {
1202 return "email";
1203 }
1204
1205 protected int defaultWidth() {
1206 return 40;
1207 }
1208
1209 public Object getRaw_unsafe(Persistent g)
1210 throws AccessPoemException {
1211 return ((ShopOrder)g).getEmail_unsafe();
1212 }
1213
1214 public void setRaw_unsafe(Persistent g, Object raw)
1215 throws AccessPoemException {
1216 ((ShopOrder)g).setEmail_unsafe((String)raw);
1217 }
1218
1219 public Object getRaw(Persistent g)
1220 throws AccessPoemException {
1221 return ((ShopOrder)g).getEmail();
1222 }
1223
1224 public void setRaw(Persistent g, Object raw)
1225 throws AccessPoemException {
1226 ((ShopOrder)g).setEmail((String)raw);
1227 }
1228 });
1229
1230 defineColumn(col_address =
1231 new Column(this, "address",
1232 new StringPoemType(false, -1),
1233 DefinitionSource.dsd) {
1234 public Object getCooked(Persistent g)
1235 throws AccessPoemException, PoemException {
1236 return ((ShopOrder)g).getAddress();
1237 }
1238
1239 public void setCooked(Persistent g, Object cooked)
1240 throws AccessPoemException, ValidationPoemException {
1241 ((ShopOrder)g).setAddress((String)cooked);
1242 }
1243
1244 public Field asField(Persistent g) {
1245 return ((ShopOrder)g).getAddressField();
1246 }
1247
1248 protected DisplayLevel defaultDisplayLevel() {
1249 return DisplayLevel.record;
1250 }
1251
1252 protected String defaultDisplayName() {
1253 return "Address";
1254 }
1255
1256 protected int defaultDisplayOrder() {
1257 return 18;
1258 }
1259
1260 protected int defaultWidth() {
1261 return 30;
1262 }
1263
1264 protected int defaultHeight() {
1265 return 4;
1266 }
1267
1268 public Object getRaw_unsafe(Persistent g)
1269 throws AccessPoemException {
1270 return ((ShopOrder)g).getAddress_unsafe();
1271 }
1272
1273 public void setRaw_unsafe(Persistent g, Object raw)
1274 throws AccessPoemException {
1275 ((ShopOrder)g).setAddress_unsafe((String)raw);
1276 }
1277
1278 public Object getRaw(Persistent g)
1279 throws AccessPoemException {
1280 return ((ShopOrder)g).getAddress();
1281 }
1282
1283 public void setRaw(Persistent g, Object raw)
1284 throws AccessPoemException {
1285 ((ShopOrder)g).setAddress((String)raw);
1286 }
1287 });
1288
1289 defineColumn(col_town =
1290 new Column(this, "town",
1291 new StringPoemType(false, -1),
1292 DefinitionSource.dsd) {
1293 public Object getCooked(Persistent g)
1294 throws AccessPoemException, PoemException {
1295 return ((ShopOrder)g).getTown();
1296 }
1297
1298 public void setCooked(Persistent g, Object cooked)
1299 throws AccessPoemException, ValidationPoemException {
1300 ((ShopOrder)g).setTown((String)cooked);
1301 }
1302
1303 public Field asField(Persistent g) {
1304 return ((ShopOrder)g).getTownField();
1305 }
1306
1307 protected DisplayLevel defaultDisplayLevel() {
1308 return DisplayLevel.record;
1309 }
1310
1311 protected String defaultDisplayName() {
1312 return "Town / City";
1313 }
1314
1315 protected int defaultDisplayOrder() {
1316 return 19;
1317 }
1318
1319 protected int defaultWidth() {
1320 return 30;
1321 }
1322
1323 public Object getRaw_unsafe(Persistent g)
1324 throws AccessPoemException {
1325 return ((ShopOrder)g).getTown_unsafe();
1326 }
1327
1328 public void setRaw_unsafe(Persistent g, Object raw)
1329 throws AccessPoemException {
1330 ((ShopOrder)g).setTown_unsafe((String)raw);
1331 }
1332
1333 public Object getRaw(Persistent g)
1334 throws AccessPoemException {
1335 return ((ShopOrder)g).getTown();
1336 }
1337
1338 public void setRaw(Persistent g, Object raw)
1339 throws AccessPoemException {
1340 ((ShopOrder)g).setTown((String)raw);
1341 }
1342 });
1343
1344 defineColumn(col_tel =
1345 new Column(this, "tel",
1346 new StringPoemType(false, -1),
1347 DefinitionSource.dsd) {
1348 public Object getCooked(Persistent g)
1349 throws AccessPoemException, PoemException {
1350 return ((ShopOrder)g).getTel();
1351 }
1352
1353 public void setCooked(Persistent g, Object cooked)
1354 throws AccessPoemException, ValidationPoemException {
1355 ((ShopOrder)g).setTel((String)cooked);
1356 }
1357
1358 public Field asField(Persistent g) {
1359 return ((ShopOrder)g).getTelField();
1360 }
1361
1362 protected DisplayLevel defaultDisplayLevel() {
1363 return DisplayLevel.record;
1364 }
1365
1366 protected String defaultDisplayName() {
1367 return "Telephone";
1368 }
1369
1370 protected int defaultDisplayOrder() {
1371 return 20;
1372 }
1373
1374 protected String defaultDescription() {
1375 return "Order telephone number";
1376 }
1377
1378 public Object getRaw_unsafe(Persistent g)
1379 throws AccessPoemException {
1380 return ((ShopOrder)g).getTel_unsafe();
1381 }
1382
1383 public void setRaw_unsafe(Persistent g, Object raw)
1384 throws AccessPoemException {
1385 ((ShopOrder)g).setTel_unsafe((String)raw);
1386 }
1387
1388 public Object getRaw(Persistent g)
1389 throws AccessPoemException {
1390 return ((ShopOrder)g).getTel();
1391 }
1392
1393 public void setRaw(Persistent g, Object raw)
1394 throws AccessPoemException {
1395 ((ShopOrder)g).setTel((String)raw);
1396 }
1397 });
1398
1399 defineColumn(col_postcode =
1400 new Column(this, "postcode",
1401 new StringPoemType(false, -1),
1402 DefinitionSource.dsd) {
1403 public Object getCooked(Persistent g)
1404 throws AccessPoemException, PoemException {
1405 return ((ShopOrder)g).getPostcode();
1406 }
1407
1408 public void setCooked(Persistent g, Object cooked)
1409 throws AccessPoemException, ValidationPoemException {
1410 ((ShopOrder)g).setPostcode((String)cooked);
1411 }
1412
1413 public Field asField(Persistent g) {
1414 return ((ShopOrder)g).getPostcodeField();
1415 }
1416
1417 protected DisplayLevel defaultDisplayLevel() {
1418 return DisplayLevel.record;
1419 }
1420
1421 protected String defaultDisplayName() {
1422 return "Postcode";
1423 }
1424
1425 protected int defaultDisplayOrder() {
1426 return 21;
1427 }
1428
1429 protected String defaultDescription() {
1430 return "Order postcode";
1431 }
1432
1433 public Object getRaw_unsafe(Persistent g)
1434 throws AccessPoemException {
1435 return ((ShopOrder)g).getPostcode_unsafe();
1436 }
1437
1438 public void setRaw_unsafe(Persistent g, Object raw)
1439 throws AccessPoemException {
1440 ((ShopOrder)g).setPostcode_unsafe((String)raw);
1441 }
1442
1443 public Object getRaw(Persistent g)
1444 throws AccessPoemException {
1445 return ((ShopOrder)g).getPostcode();
1446 }
1447
1448 public void setRaw(Persistent g, Object raw)
1449 throws AccessPoemException {
1450 ((ShopOrder)g).setPostcode((String)raw);
1451 }
1452 });
1453
1454 defineColumn(col_country =
1455 new Column(this, "country",
1456 new StringPoemType(false, -1),
1457 DefinitionSource.dsd) {
1458 public Object getCooked(Persistent g)
1459 throws AccessPoemException, PoemException {
1460 return ((ShopOrder)g).getCountry();
1461 }
1462
1463 public void setCooked(Persistent g, Object cooked)
1464 throws AccessPoemException, ValidationPoemException {
1465 ((ShopOrder)g).setCountry((String)cooked);
1466 }
1467
1468 public Field asField(Persistent g) {
1469 return ((ShopOrder)g).getCountryField();
1470 }
1471
1472 protected DisplayLevel defaultDisplayLevel() {
1473 return DisplayLevel.record;
1474 }
1475
1476 protected Searchability defaultSearchability() {
1477 return Searchability.yes;
1478 }
1479
1480 protected String defaultDisplayName() {
1481 return "Country";
1482 }
1483
1484 protected int defaultDisplayOrder() {
1485 return 22;
1486 }
1487
1488 public Object getRaw_unsafe(Persistent g)
1489 throws AccessPoemException {
1490 return ((ShopOrder)g).getCountry_unsafe();
1491 }
1492
1493 public void setRaw_unsafe(Persistent g, Object raw)
1494 throws AccessPoemException {
1495 ((ShopOrder)g).setCountry_unsafe((String)raw);
1496 }
1497
1498 public Object getRaw(Persistent g)
1499 throws AccessPoemException {
1500 return ((ShopOrder)g).getCountry();
1501 }
1502
1503 public void setRaw(Persistent g, Object raw)
1504 throws AccessPoemException {
1505 ((ShopOrder)g).setCountry((String)raw);
1506 }
1507 });
1508
1509 defineColumn(col_currency =
1510 new Column(this, "currency",
1511 new ReferencePoemType(getJammyjoesDatabaseTables().
1512 getShopCurrencyTable(), false),
1513 DefinitionSource.dsd) {
1514 public Object getCooked(Persistent g)
1515 throws AccessPoemException, PoemException {
1516 return ((ShopOrder)g).getCurrency();
1517 }
1518
1519 public void setCooked(Persistent g, Object cooked)
1520 throws AccessPoemException, ValidationPoemException {
1521 ((ShopOrder)g).setCurrency((ShopCurrency)cooked);
1522 }
1523
1524 public Field asField(Persistent g) {
1525 return ((ShopOrder)g).getCurrencyField();
1526 }
1527
1528 protected DisplayLevel defaultDisplayLevel() {
1529 return DisplayLevel.record;
1530 }
1531
1532 protected int defaultDisplayOrder() {
1533 return 23;
1534 }
1535
1536 protected String defaultDescription() {
1537 return "The currency for this order";
1538 }
1539
1540 public Object getRaw_unsafe(Persistent g)
1541 throws AccessPoemException {
1542 return ((ShopOrder)g).getCurrency_unsafe();
1543 }
1544
1545 public void setRaw_unsafe(Persistent g, Object raw)
1546 throws AccessPoemException {
1547 ((ShopOrder)g).setCurrency_unsafe((Integer)raw);
1548 }
1549
1550 public Object getRaw(Persistent g)
1551 throws AccessPoemException {
1552 return ((ShopOrder)g).getCurrencyTroid();
1553 }
1554
1555 public void setRaw(Persistent g, Object raw)
1556 throws AccessPoemException {
1557 ((ShopOrder)g).setCurrencyTroid((Integer)raw);
1558 }
1559 });
1560
1561 defineColumn(col_zone =
1562 new Column(this, "zone",
1563 new ReferencePoemType(getJammyjoesDatabaseTables().
1564 getDeliveryZoneTable(), false),
1565 DefinitionSource.dsd) {
1566 public Object getCooked(Persistent g)
1567 throws AccessPoemException, PoemException {
1568 return ((ShopOrder)g).getZone();
1569 }
1570
1571 public void setCooked(Persistent g, Object cooked)
1572 throws AccessPoemException, ValidationPoemException {
1573 ((ShopOrder)g).setZone((DeliveryZone)cooked);
1574 }
1575
1576 public Field asField(Persistent g) {
1577 return ((ShopOrder)g).getZoneField();
1578 }
1579
1580 protected DisplayLevel defaultDisplayLevel() {
1581 return DisplayLevel.record;
1582 }
1583
1584 protected int defaultDisplayOrder() {
1585 return 24;
1586 }
1587
1588 protected String defaultDescription() {
1589 return "The delivery zone for this order";
1590 }
1591
1592 public Object getRaw_unsafe(Persistent g)
1593 throws AccessPoemException {
1594 return ((ShopOrder)g).getZone_unsafe();
1595 }
1596
1597 public void setRaw_unsafe(Persistent g, Object raw)
1598 throws AccessPoemException {
1599 ((ShopOrder)g).setZone_unsafe((Integer)raw);
1600 }
1601
1602 public Object getRaw(Persistent g)
1603 throws AccessPoemException {
1604 return ((ShopOrder)g).getZoneTroid();
1605 }
1606
1607 public void setRaw(Persistent g, Object raw)
1608 throws AccessPoemException {
1609 ((ShopOrder)g).setZoneTroid((Integer)raw);
1610 }
1611 });
1612
1613 defineColumn(col_wrapping =
1614 new Column(this, "wrapping",
1615 new ReferencePoemType(getJammyjoesDatabaseTables().
1616 getWrappingTable(), false),
1617 DefinitionSource.dsd) {
1618 public Object getCooked(Persistent g)
1619 throws AccessPoemException, PoemException {
1620 return ((ShopOrder)g).getWrapping();
1621 }
1622
1623 public void setCooked(Persistent g, Object cooked)
1624 throws AccessPoemException, ValidationPoemException {
1625 ((ShopOrder)g).setWrapping((Wrapping)cooked);
1626 }
1627
1628 public Field asField(Persistent g) {
1629 return ((ShopOrder)g).getWrappingField();
1630 }
1631
1632 protected DisplayLevel defaultDisplayLevel() {
1633 return DisplayLevel.record;
1634 }
1635
1636 protected int defaultDisplayOrder() {
1637 return 25;
1638 }
1639
1640 protected String defaultDescription() {
1641 return "What kind of wrapping paper should be used";
1642 }
1643
1644 public Object getRaw_unsafe(Persistent g)
1645 throws AccessPoemException {
1646 return ((ShopOrder)g).getWrapping_unsafe();
1647 }
1648
1649 public void setRaw_unsafe(Persistent g, Object raw)
1650 throws AccessPoemException {
1651 ((ShopOrder)g).setWrapping_unsafe((Integer)raw);
1652 }
1653
1654 public Object getRaw(Persistent g)
1655 throws AccessPoemException {
1656 return ((ShopOrder)g).getWrappingTroid();
1657 }
1658
1659 public void setRaw(Persistent g, Object raw)
1660 throws AccessPoemException {
1661 ((ShopOrder)g).setWrappingTroid((Integer)raw);
1662 }
1663 });
1664
1665 defineColumn(col_affiliate =
1666 new Column(this, "affiliate",
1667 new ReferencePoemType(getJammyjoesDatabaseTables().
1668 getAffiliateTable(), true),
1669 DefinitionSource.dsd) {
1670 public Object getCooked(Persistent g)
1671 throws AccessPoemException, PoemException {
1672 return ((ShopOrder)g).getAffiliate();
1673 }
1674
1675 public void setCooked(Persistent g, Object cooked)
1676 throws AccessPoemException, ValidationPoemException {
1677 ((ShopOrder)g).setAffiliate((Affiliate)cooked);
1678 }
1679
1680 public Field asField(Persistent g) {
1681 return ((ShopOrder)g).getAffiliateField();
1682 }
1683
1684 protected DisplayLevel defaultDisplayLevel() {
1685 return DisplayLevel.record;
1686 }
1687
1688 protected int defaultDisplayOrder() {
1689 return 26;
1690 }
1691
1692 protected String defaultDescription() {
1693 return "The affiliate for this order (if any)";
1694 }
1695
1696 public Object getRaw_unsafe(Persistent g)
1697 throws AccessPoemException {
1698 return ((ShopOrder)g).getAffiliate_unsafe();
1699 }
1700
1701 public void setRaw_unsafe(Persistent g, Object raw)
1702 throws AccessPoemException {
1703 ((ShopOrder)g).setAffiliate_unsafe((Integer)raw);
1704 }
1705
1706 public Object getRaw(Persistent g)
1707 throws AccessPoemException {
1708 return ((ShopOrder)g).getAffiliateTroid();
1709 }
1710
1711 public void setRaw(Persistent g, Object raw)
1712 throws AccessPoemException {
1713 ((ShopOrder)g).setAffiliateTroid((Integer)raw);
1714 }
1715 });
1716
1717 defineColumn(col_affiliatepaid =
1718 new Column(this, "affiliatepaid",
1719 new BooleanPoemType(false),
1720 DefinitionSource.dsd) {
1721 public Object getCooked(Persistent g)
1722 throws AccessPoemException, PoemException {
1723 return ((ShopOrder)g).getAffiliatepaid();
1724 }
1725
1726 public void setCooked(Persistent g, Object cooked)
1727 throws AccessPoemException, ValidationPoemException {
1728 ((ShopOrder)g).setAffiliatepaid((Boolean)cooked);
1729 }
1730
1731 public Field asField(Persistent g) {
1732 return ((ShopOrder)g).getAffiliatepaidField();
1733 }
1734
1735 protected DisplayLevel defaultDisplayLevel() {
1736 return DisplayLevel.record;
1737 }
1738
1739 protected Searchability defaultSearchability() {
1740 return Searchability.no;
1741 }
1742
1743 protected String defaultDisplayName() {
1744 return "Affiliate Paid?";
1745 }
1746
1747 protected int defaultDisplayOrder() {
1748 return 27;
1749 }
1750
1751 protected String defaultDescription() {
1752 return "Has the Affiliate been paid for this order?";
1753 }
1754
1755 public Object getRaw_unsafe(Persistent g)
1756 throws AccessPoemException {
1757 return ((ShopOrder)g).getAffiliatepaid_unsafe();
1758 }
1759
1760 public void setRaw_unsafe(Persistent g, Object raw)
1761 throws AccessPoemException {
1762 ((ShopOrder)g).setAffiliatepaid_unsafe((Boolean)raw);
1763 }
1764
1765 public Object getRaw(Persistent g)
1766 throws AccessPoemException {
1767 return ((ShopOrder)g).getAffiliatepaid();
1768 }
1769
1770 public void setRaw(Persistent g, Object raw)
1771 throws AccessPoemException {
1772 ((ShopOrder)g).setAffiliatepaid((Boolean)raw);
1773 }
1774 });
1775
1776 defineColumn(col_comission =
1777 new Column(this, "comission",
1778 new DoublePoemType(false),
1779 DefinitionSource.dsd) {
1780 public Object getCooked(Persistent g)
1781 throws AccessPoemException, PoemException {
1782 return ((ShopOrder)g).getComission();
1783 }
1784
1785 public void setCooked(Persistent g, Object cooked)
1786 throws AccessPoemException, ValidationPoemException {
1787 ((ShopOrder)g).setComission((Double)cooked);
1788 }
1789
1790 public Field asField(Persistent g) {
1791 return ((ShopOrder)g).getComissionField();
1792 }
1793
1794 protected DisplayLevel defaultDisplayLevel() {
1795 return DisplayLevel.record;
1796 }
1797
1798 protected Searchability defaultSearchability() {
1799 return Searchability.no;
1800 }
1801
1802 protected String defaultDisplayName() {
1803 return "Commission Percentage";
1804 }
1805
1806 protected int defaultDisplayOrder() {
1807 return 28;
1808 }
1809
1810 protected String defaultDescription() {
1811 return "The Commission Percentage to go to the Affiliate";
1812 }
1813
1814 public Object getRaw_unsafe(Persistent g)
1815 throws AccessPoemException {
1816 return ((ShopOrder)g).getComission_unsafe();
1817 }
1818
1819 public void setRaw_unsafe(Persistent g, Object raw)
1820 throws AccessPoemException {
1821 ((ShopOrder)g).setComission_unsafe((Double)raw);
1822 }
1823
1824 public Object getRaw(Persistent g)
1825 throws AccessPoemException {
1826 return ((ShopOrder)g).getComission();
1827 }
1828
1829 public void setRaw(Persistent g, Object raw)
1830 throws AccessPoemException {
1831 ((ShopOrder)g).setComission((Double)raw);
1832 }
1833 });
1834
1835 defineColumn(col_spam =
1836 new Column(this, "spam",
1837 new BooleanPoemType(false),
1838 DefinitionSource.dsd) {
1839 public Object getCooked(Persistent g)
1840 throws AccessPoemException, PoemException {
1841 return ((ShopOrder)g).getSpam();
1842 }
1843
1844 public void setCooked(Persistent g, Object cooked)
1845 throws AccessPoemException, ValidationPoemException {
1846 ((ShopOrder)g).setSpam((Boolean)cooked);
1847 }
1848
1849 public Field asField(Persistent g) {
1850 return ((ShopOrder)g).getSpamField();
1851 }
1852
1853 protected DisplayLevel defaultDisplayLevel() {
1854 return DisplayLevel.record;
1855 }
1856
1857 protected Searchability defaultSearchability() {
1858 return Searchability.no;
1859 }
1860
1861 protected String defaultDisplayName() {
1862 return "Want Spam?";
1863 }
1864
1865 protected int defaultDisplayOrder() {
1866 return 29;
1867 }
1868
1869 protected String defaultDescription() {
1870 return "Does the user want to receive spam email?";
1871 }
1872
1873 public Object getRaw_unsafe(Persistent g)
1874 throws AccessPoemException {
1875 return ((ShopOrder)g).getSpam_unsafe();
1876 }
1877
1878 public void setRaw_unsafe(Persistent g, Object raw)
1879 throws AccessPoemException {
1880 ((ShopOrder)g).setSpam_unsafe((Boolean)raw);
1881 }
1882
1883 public Object getRaw(Persistent g)
1884 throws AccessPoemException {
1885 return ((ShopOrder)g).getSpam();
1886 }
1887
1888 public void setRaw(Persistent g, Object raw)
1889 throws AccessPoemException {
1890 ((ShopOrder)g).setSpam((Boolean)raw);
1891 }
1892 });
1893 }
1894
1895
1896 /**
1897 * Retrieves the <code>Id</code> <code>Column</code> for this
1898 * <code>ShopOrder</code> <code>Table</code>.
1899 *
1900 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1901 * @return the id <code>Column</code>
1902 */
1903 public final Column getIdColumn() {
1904 return col_id;
1905 }
1906
1907
1908 /**
1909 * Retrieves the <code>User</code> <code>Column</code> for this
1910 * <code>ShopOrder</code> <code>Table</code>.
1911 *
1912 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1913 * @return the user <code>Column</code>
1914 */
1915 public final Column getUserColumn() {
1916 return col_user;
1917 }
1918
1919
1920 /**
1921 * Retrieves the <code>Operator</code> <code>Column</code> for this
1922 * <code>ShopOrder</code> <code>Table</code>.
1923 *
1924 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1925 * @return the operator <code>Column</code>
1926 */
1927 public final Column getOperatorColumn() {
1928 return col_operator;
1929 }
1930
1931
1932 /**
1933 * Retrieves the <code>Status</code> <code>Column</code> for this
1934 * <code>ShopOrder</code> <code>Table</code>.
1935 *
1936 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1937 * @return the status <code>Column</code>
1938 */
1939 public final Column getStatusColumn() {
1940 return col_status;
1941 }
1942
1943
1944 /**
1945 * Retrieves the <code>Type</code> <code>Column</code> for this
1946 * <code>ShopOrder</code> <code>Table</code>.
1947 *
1948 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1949 * @return the type <code>Column</code>
1950 */
1951 public final Column getTypeColumn() {
1952 return col_type;
1953 }
1954
1955
1956 /**
1957 * Retrieves the <code>Date</code> <code>Column</code> for this
1958 * <code>ShopOrder</code> <code>Table</code>.
1959 *
1960 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1961 * @return the date <code>Column</code>
1962 */
1963 public final Column getDateColumn() {
1964 return col_date;
1965 }
1966
1967
1968 /**
1969 * Retrieves the <code>Fufilleddate</code> <code>Column</code> for this
1970 * <code>ShopOrder</code> <code>Table</code>.
1971 *
1972 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1973 * @return the fufilleddate <code>Column</code>
1974 */
1975 public final Column getFufilleddateColumn() {
1976 return col_fufilleddate;
1977 }
1978
1979
1980 /**
1981 * Retrieves the <code>Comment</code> <code>Column</code> for this
1982 * <code>ShopOrder</code> <code>Table</code>.
1983 *
1984 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1985 * @return the comment <code>Column</code>
1986 */
1987 public final Column getCommentColumn() {
1988 return col_comment;
1989 }
1990
1991
1992 /**
1993 * Retrieves the <code>CustomerComment</code> <code>Column</code> for this
1994 * <code>ShopOrder</code> <code>Table</code>.
1995 *
1996 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
1997 * @return the customerComment <code>Column</code>
1998 */
1999 public final Column getCustomerCommentColumn() {
2000 return col_customerComment;
2001 }
2002
2003
2004 /**
2005 * Retrieves the <code>Alert</code> <code>Column</code> for this
2006 * <code>ShopOrder</code> <code>Table</code>.
2007 *
2008 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2009 * @return the alert <code>Column</code>
2010 */
2011 public final Column getAlertColumn() {
2012 return col_alert;
2013 }
2014
2015
2016 /**
2017 * Retrieves the <code>Message</code> <code>Column</code> for this
2018 * <code>ShopOrder</code> <code>Table</code>.
2019 *
2020 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2021 * @return the message <code>Column</code>
2022 */
2023 public final Column getMessageColumn() {
2024 return col_message;
2025 }
2026
2027
2028 /**
2029 * Retrieves the <code>Amount</code> <code>Column</code> for this
2030 * <code>ShopOrder</code> <code>Table</code>.
2031 *
2032 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2033 * @return the amount <code>Column</code>
2034 */
2035 public final Column getAmountColumn() {
2036 return col_amount;
2037 }
2038
2039
2040 /**
2041 * Retrieves the <code>Delivery</code> <code>Column</code> for this
2042 * <code>ShopOrder</code> <code>Table</code>.
2043 *
2044 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2045 * @return the delivery <code>Column</code>
2046 */
2047 public final Column getDeliveryColumn() {
2048 return col_delivery;
2049 }
2050
2051
2052 /**
2053 * Retrieves the <code>AmountUK</code> <code>Column</code> for this
2054 * <code>ShopOrder</code> <code>Table</code>.
2055 *
2056 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2057 * @return the amountUK <code>Column</code>
2058 */
2059 public final Column getAmountUKColumn() {
2060 return col_amountUK;
2061 }
2062
2063
2064 /**
2065 * Retrieves the <code>DeliveryUK</code> <code>Column</code> for this
2066 * <code>ShopOrder</code> <code>Table</code>.
2067 *
2068 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2069 * @return the deliveryUK <code>Column</code>
2070 */
2071 public final Column getDeliveryUKColumn() {
2072 return col_deliveryUK;
2073 }
2074
2075
2076 /**
2077 * Retrieves the <code>Name</code> <code>Column</code> for this
2078 * <code>ShopOrder</code> <code>Table</code>.
2079 *
2080 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2081 * @return the name <code>Column</code>
2082 */
2083 public final Column getNameColumn() {
2084 return col_name;
2085 }
2086
2087
2088 /**
2089 * Retrieves the <code>DeliveryName</code> <code>Column</code> for this
2090 * <code>ShopOrder</code> <code>Table</code>.
2091 *
2092 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2093 * @return the deliveryName <code>Column</code>
2094 */
2095 public final Column getDeliveryNameColumn() {
2096 return col_deliveryName;
2097 }
2098
2099
2100 /**
2101 * Retrieves the <code>Email</code> <code>Column</code> for this
2102 * <code>ShopOrder</code> <code>Table</code>.
2103 *
2104 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2105 * @return the email <code>Column</code>
2106 */
2107 public final Column getEmailColumn() {
2108 return col_email;
2109 }
2110
2111
2112 /**
2113 * Retrieves the <code>Address</code> <code>Column</code> for this
2114 * <code>ShopOrder</code> <code>Table</code>.
2115 *
2116 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2117 * @return the address <code>Column</code>
2118 */
2119 public final Column getAddressColumn() {
2120 return col_address;
2121 }
2122
2123
2124 /**
2125 * Retrieves the <code>Town</code> <code>Column</code> for this
2126 * <code>ShopOrder</code> <code>Table</code>.
2127 *
2128 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2129 * @return the town <code>Column</code>
2130 */
2131 public final Column getTownColumn() {
2132 return col_town;
2133 }
2134
2135
2136 /**
2137 * Retrieves the <code>Tel</code> <code>Column</code> for this
2138 * <code>ShopOrder</code> <code>Table</code>.
2139 *
2140 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2141 * @return the tel <code>Column</code>
2142 */
2143 public final Column getTelColumn() {
2144 return col_tel;
2145 }
2146
2147
2148 /**
2149 * Retrieves the <code>Postcode</code> <code>Column</code> for this
2150 * <code>ShopOrder</code> <code>Table</code>.
2151 *
2152 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2153 * @return the postcode <code>Column</code>
2154 */
2155 public final Column getPostcodeColumn() {
2156 return col_postcode;
2157 }
2158
2159
2160 /**
2161 * Retrieves the <code>Country</code> <code>Column</code> for this
2162 * <code>ShopOrder</code> <code>Table</code>.
2163 *
2164 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2165 * @return the country <code>Column</code>
2166 */
2167 public final Column getCountryColumn() {
2168 return col_country;
2169 }
2170
2171
2172 /**
2173 * Retrieves the <code>Currency</code> <code>Column</code> for this
2174 * <code>ShopOrder</code> <code>Table</code>.
2175 *
2176 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2177 * @return the currency <code>Column</code>
2178 */
2179 public final Column getCurrencyColumn() {
2180 return col_currency;
2181 }
2182
2183
2184 /**
2185 * Retrieves the <code>Zone</code> <code>Column</code> for this
2186 * <code>ShopOrder</code> <code>Table</code>.
2187 *
2188 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2189 * @return the zone <code>Column</code>
2190 */
2191 public final Column getZoneColumn() {
2192 return col_zone;
2193 }
2194
2195
2196 /**
2197 * Retrieves the <code>Wrapping</code> <code>Column</code> for this
2198 * <code>ShopOrder</code> <code>Table</code>.
2199 *
2200 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2201 * @return the wrapping <code>Column</code>
2202 */
2203 public final Column getWrappingColumn() {
2204 return col_wrapping;
2205 }
2206
2207
2208 /**
2209 * Retrieves the <code>Affiliate</code> <code>Column</code> for this
2210 * <code>ShopOrder</code> <code>Table</code>.
2211 *
2212 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2213 * @return the affiliate <code>Column</code>
2214 */
2215 public final Column getAffiliateColumn() {
2216 return col_affiliate;
2217 }
2218
2219
2220 /**
2221 * Retrieves the <code>Affiliatepaid</code> <code>Column</code> for this
2222 * <code>ShopOrder</code> <code>Table</code>.
2223 *
2224 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2225 * @return the affiliatepaid <code>Column</code>
2226 */
2227 public final Column getAffiliatepaidColumn() {
2228 return col_affiliatepaid;
2229 }
2230
2231
2232 /**
2233 * Retrieves the <code>Comission</code> <code>Column</code> for this
2234 * <code>ShopOrder</code> <code>Table</code>.
2235 *
2236 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2237 * @return the comission <code>Column</code>
2238 */
2239 public final Column getComissionColumn() {
2240 return col_comission;
2241 }
2242
2243
2244 /**
2245 * Retrieves the <code>Spam</code> <code>Column</code> for this
2246 * <code>ShopOrder</code> <code>Table</code>.
2247 *
2248 * @generator org.melati.poem.prepro.FieldDef#generateColAccessor
2249 * @return the spam <code>Column</code>
2250 */
2251 public final Column getSpamColumn() {
2252 return col_spam;
2253 }
2254
2255
2256 /**
2257 * Retrieve the <code>ShopOrder</code> as a <code>ShopOrder</code>.
2258 *
2259 * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava
2260 * @param troid a Table Row Oject ID
2261 * @return the <code>Persistent</code> identified by the <code>troid</code>
2262 */
2263 public ShopOrder getShopOrderObject(Integer troid) {
2264 return (ShopOrder)getObject(troid);
2265 }
2266
2267
2268 /**
2269 * Retrieve the <code>ShopOrder</code>
2270 * as a <code>ShopOrder</code>.
2271 *
2272 * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava
2273 * @param troid a Table Row Object ID
2274 * @return the <code>Persistent</code> identified */
2275 public ShopOrder getShopOrderObject(int troid) {
2276 return (ShopOrder)getObject(troid);
2277 }
2278
2279 protected JdbcPersistent _newPersistent() {
2280 return new ShopOrder();
2281 }
2282 protected String defaultDisplayName() {
2283 return "Order";
2284 }
2285
2286 protected String defaultDescription() {
2287 return "A Customer's Order";
2288 }
2289
2290 protected String defaultCategory() {
2291 return "Data";
2292 }
2293
2294 protected int defaultDisplayOrder() {
2295 return 60;
2296 }
2297 }
2298