View Javadoc

1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.paneris.jammyjoes.model.generated;
4   
5   import org.melati.poem.AccessPoemException;
6   import org.melati.poem.BooleanPoemType;
7   import org.melati.poem.Column;
8   import org.melati.poem.Database;
9   import org.melati.poem.DefinitionSource;
10  import org.melati.poem.DisplayLevel;
11  import org.melati.poem.DoublePoemType;
12  import org.melati.poem.Field;
13  import org.melati.poem.IntegerPoemType;
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.TroidPoemType;
21  import org.melati.poem.ValidationPoemException;
22  import org.paneris.jammyjoes.model.Award;
23  import org.paneris.jammyjoes.model.JammyjoesDatabaseTables;
24  import org.paneris.jammyjoes.model.JammyjoesTable;
25  import org.paneris.jammyjoes.model.Manufacturer;
26  import org.paneris.jammyjoes.model.Product;
27  import org.paneris.jammyjoes.model.ProductStatus;
28  import org.paneris.jammyjoes.model.Sex;
29  import org.paneris.jammyjoes.model.Supplier;
30  import org.paneris.jammyjoes.model.Type;
31  
32  
33  /**
34   * Melati POEM generated base class for 
35  <code>Table</code> <code>Product</code>.
36   *
37   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
38   */
39  
40  public class ProductTableBase extends JammyjoesTable {
41  
42    private Column col_id = null;
43    private Column col_name = null;
44    private Column col_status = null;
45    private Column col_type = null;
46    private Column col_type2 = null;
47    private Column col_sex = null;
48    private Column col_description = null;
49    private Column col_supplier = null;
50    private Column col_manufacturer = null;
51    private Column col_suppliercode = null;
52    private Column col_costprice = null;
53    private Column col_retailpriceincvat = null;
54    private Column col_vatexempt = null;
55    private Column col_saleprice = null;
56    private Column col_retailprice = null;
57    private Column col_margin = null;
58    private Column col_marginpercent = null;
59    private Column col_markuppercent = null;
60    private Column col_deliverycost = null;
61    private Column col_minage = null;
62    private Column col_maxage = null;
63    private Column col_pieces = null;
64    private Column col_stocklevel = null;
65    private Column col_reorderlevel = null;
66    private Column col_reorderquantity = null;
67    private Column col_minimumorder = null;
68    private Column col_leadtime = null;
69    private Column col_weight = null;
70    private Column col_width = null;
71    private Column col_height = null;
72    private Column col_depth = null;
73    private Column col_picture = null;
74    private Column col_picture2 = null;
75    private Column col_catalogue = null;
76    private Column col_deleted = null;
77    private Column col_award = null;
78    private Column col_onorderquantity = null;
79  
80   /**
81    * Constructor. 
82    * 
83    * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
84    * @param database          the POEM database we are using
85    * @param name              the name of this <code>Table</code>
86    * @param definitionSource  which definition is being used
87    * @throws PoemException    if anything goes wrong
88    */
89  
90    public ProductTableBase(
91        Database database, String name,
92        DefinitionSource definitionSource) throws PoemException {
93      super(database, name, definitionSource);
94    }
95  
96  
97   /**
98    * Get the database tables.
99    *
100   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
101   * @return the database tables
102   */
103   public JammyjoesDatabaseTables getJammyjoesDatabaseTables() {
104     return (JammyjoesDatabaseTables)getDatabase();
105   }
106 
107   public void init() throws PoemException {
108     super.init();
109     defineColumn(col_id =
110         new Column(this, "id",
111                    new TroidPoemType(),
112                    DefinitionSource.dsd) { 
113           public Object getCooked(Persistent g)
114               throws AccessPoemException, PoemException {
115             return ((Product)g).getId();
116           }
117 
118           public void setCooked(Persistent g, Object cooked)
119               throws AccessPoemException, ValidationPoemException {
120             ((Product)g).setId((Integer)cooked);
121           }
122 
123           public Field asField(Persistent g) {
124             return ((Product)g).getIdField();
125           }
126 
127           protected boolean defaultUserEditable() {
128             return false;
129           }
130 
131           protected boolean defaultUserCreateable() {
132             return false;
133           }
134 
135           protected DisplayLevel defaultDisplayLevel() {
136             return DisplayLevel.summary;
137           }
138 
139           protected Searchability defaultSearchability() {
140             return Searchability.primary;
141           }
142 
143           protected Integer defaultDisplayOrderPriority() {
144             return new Integer(0);
145           }
146 
147           protected boolean defaultSortDescending() {
148             return true;
149           }
150 
151           protected int defaultDisplayOrder() {
152             return 0;
153           }
154 
155           public Object getRaw_unsafe(Persistent g)
156               throws AccessPoemException {
157             return ((Product)g).getId_unsafe();
158           }
159 
160           public void setRaw_unsafe(Persistent g, Object raw)
161               throws AccessPoemException {
162             ((Product)g).setId_unsafe((Integer)raw);
163           }
164 
165           public Object getRaw(Persistent g)
166               throws AccessPoemException {
167             return ((Product)g).getId();
168           }
169 
170           public void setRaw(Persistent g, Object raw)
171               throws AccessPoemException {
172             ((Product)g).setId((Integer)raw);
173           }
174         });
175 
176     defineColumn(col_name =
177         new Column(this, "name",
178                    new StringPoemType(false, -1),
179                    DefinitionSource.dsd) { 
180           public Object getCooked(Persistent g)
181               throws AccessPoemException, PoemException {
182             return ((Product)g).getName();
183           }
184 
185           public void setCooked(Persistent g, Object cooked)
186               throws AccessPoemException, ValidationPoemException {
187             ((Product)g).setName((String)cooked);
188           }
189 
190           public Field asField(Persistent g) {
191             return ((Product)g).getNameField();
192           }
193 
194           protected DisplayLevel defaultDisplayLevel() {
195             return DisplayLevel.primary;
196           }
197 
198           protected Searchability defaultSearchability() {
199             return Searchability.yes;
200           }
201 
202           protected String defaultDisplayName() {
203             return "Product Name";
204           }
205 
206           protected int defaultDisplayOrder() {
207             return 1;
208           }
209 
210           protected int defaultWidth() {
211             return 40;
212           }
213 
214           public Object getRaw_unsafe(Persistent g)
215               throws AccessPoemException {
216             return ((Product)g).getName_unsafe();
217           }
218 
219           public void setRaw_unsafe(Persistent g, Object raw)
220               throws AccessPoemException {
221             ((Product)g).setName_unsafe((String)raw);
222           }
223 
224           public Object getRaw(Persistent g)
225               throws AccessPoemException {
226             return ((Product)g).getName();
227           }
228 
229           public void setRaw(Persistent g, Object raw)
230               throws AccessPoemException {
231             ((Product)g).setName((String)raw);
232           }
233         });
234 
235     defineColumn(col_status =
236         new Column(this, "status",
237                    new ReferencePoemType(getJammyjoesDatabaseTables().
238                                              getProductStatusTable(), false),
239                    DefinitionSource.dsd) { 
240           public Object getCooked(Persistent g)
241               throws AccessPoemException, PoemException {
242             return ((Product)g).getStatus();
243           }
244 
245           public void setCooked(Persistent g, Object cooked)
246               throws AccessPoemException, ValidationPoemException {
247             ((Product)g).setStatus((ProductStatus)cooked);
248           }
249 
250           public Field asField(Persistent g) {
251             return ((Product)g).getStatusField();
252           }
253 
254           protected DisplayLevel defaultDisplayLevel() {
255             return DisplayLevel.record;
256           }
257 
258           protected Searchability defaultSearchability() {
259             return Searchability.yes;
260           }
261 
262           protected int defaultDisplayOrder() {
263             return 2;
264           }
265 
266           public Object getRaw_unsafe(Persistent g)
267               throws AccessPoemException {
268             return ((Product)g).getStatus_unsafe();
269           }
270 
271           public void setRaw_unsafe(Persistent g, Object raw)
272               throws AccessPoemException {
273             ((Product)g).setStatus_unsafe((Integer)raw);
274           }
275 
276           public Object getRaw(Persistent g)
277               throws AccessPoemException {
278             return ((Product)g).getStatusTroid();
279           }
280 
281           public void setRaw(Persistent g, Object raw)
282               throws AccessPoemException {
283             ((Product)g).setStatusTroid((Integer)raw);
284           }
285         });
286 
287     defineColumn(col_type =
288         new Column(this, "type",
289                    new ReferencePoemType(getJammyjoesDatabaseTables().
290                                              getTypeTable(), false),
291                    DefinitionSource.dsd) { 
292           public Object getCooked(Persistent g)
293               throws AccessPoemException, PoemException {
294             return ((Product)g).getType();
295           }
296 
297           public void setCooked(Persistent g, Object cooked)
298               throws AccessPoemException, ValidationPoemException {
299             ((Product)g).setType((Type)cooked);
300           }
301 
302           public Field asField(Persistent g) {
303             return ((Product)g).getTypeField();
304           }
305 
306           protected DisplayLevel defaultDisplayLevel() {
307             return DisplayLevel.record;
308           }
309 
310           protected Searchability defaultSearchability() {
311             return Searchability.yes;
312           }
313 
314           protected int defaultDisplayOrder() {
315             return 3;
316           }
317 
318           public Object getRaw_unsafe(Persistent g)
319               throws AccessPoemException {
320             return ((Product)g).getType_unsafe();
321           }
322 
323           public void setRaw_unsafe(Persistent g, Object raw)
324               throws AccessPoemException {
325             ((Product)g).setType_unsafe((Integer)raw);
326           }
327 
328           public Object getRaw(Persistent g)
329               throws AccessPoemException {
330             return ((Product)g).getTypeTroid();
331           }
332 
333           public void setRaw(Persistent g, Object raw)
334               throws AccessPoemException {
335             ((Product)g).setTypeTroid((Integer)raw);
336           }
337         });
338 
339     defineColumn(col_type2 =
340         new Column(this, "type2",
341                    new ReferencePoemType(getJammyjoesDatabaseTables().
342                                              getTypeTable(), true),
343                    DefinitionSource.dsd) { 
344           public Object getCooked(Persistent g)
345               throws AccessPoemException, PoemException {
346             return ((Product)g).getType2();
347           }
348 
349           public void setCooked(Persistent g, Object cooked)
350               throws AccessPoemException, ValidationPoemException {
351             ((Product)g).setType2((Type)cooked);
352           }
353 
354           public Field asField(Persistent g) {
355             return ((Product)g).getType2Field();
356           }
357 
358           protected DisplayLevel defaultDisplayLevel() {
359             return DisplayLevel.record;
360           }
361 
362           protected Searchability defaultSearchability() {
363             return Searchability.yes;
364           }
365 
366           protected int defaultDisplayOrder() {
367             return 4;
368           }
369 
370           protected String defaultDescription() {
371             return "You can add this product to another category here";
372           }
373 
374           public Object getRaw_unsafe(Persistent g)
375               throws AccessPoemException {
376             return ((Product)g).getType2_unsafe();
377           }
378 
379           public void setRaw_unsafe(Persistent g, Object raw)
380               throws AccessPoemException {
381             ((Product)g).setType2_unsafe((Integer)raw);
382           }
383 
384           public Object getRaw(Persistent g)
385               throws AccessPoemException {
386             return ((Product)g).getType2Troid();
387           }
388 
389           public void setRaw(Persistent g, Object raw)
390               throws AccessPoemException {
391             ((Product)g).setType2Troid((Integer)raw);
392           }
393         });
394 
395     defineColumn(col_sex =
396         new Column(this, "sex",
397                    new ReferencePoemType(getJammyjoesDatabaseTables().
398                                              getSexTable(), true),
399                    DefinitionSource.dsd) { 
400           public Object getCooked(Persistent g)
401               throws AccessPoemException, PoemException {
402             return ((Product)g).getSex();
403           }
404 
405           public void setCooked(Persistent g, Object cooked)
406               throws AccessPoemException, ValidationPoemException {
407             ((Product)g).setSex((Sex)cooked);
408           }
409 
410           public Field asField(Persistent g) {
411             return ((Product)g).getSexField();
412           }
413 
414           protected DisplayLevel defaultDisplayLevel() {
415             return DisplayLevel.record;
416           }
417 
418           protected Searchability defaultSearchability() {
419             return Searchability.yes;
420           }
421 
422           protected String defaultDisplayName() {
423             return "Gender";
424           }
425 
426           protected int defaultDisplayOrder() {
427             return 5;
428           }
429 
430           protected String defaultDescription() {
431             return "Is this toy is targeted at boys or girls?";
432           }
433 
434           public Object getRaw_unsafe(Persistent g)
435               throws AccessPoemException {
436             return ((Product)g).getSex_unsafe();
437           }
438 
439           public void setRaw_unsafe(Persistent g, Object raw)
440               throws AccessPoemException {
441             ((Product)g).setSex_unsafe((Integer)raw);
442           }
443 
444           public Object getRaw(Persistent g)
445               throws AccessPoemException {
446             return ((Product)g).getSexTroid();
447           }
448 
449           public void setRaw(Persistent g, Object raw)
450               throws AccessPoemException {
451             ((Product)g).setSexTroid((Integer)raw);
452           }
453         });
454 
455     defineColumn(col_description =
456         new Column(this, "description",
457                    new StringPoemType(true, -1),
458                    DefinitionSource.dsd) { 
459           public Object getCooked(Persistent g)
460               throws AccessPoemException, PoemException {
461             return ((Product)g).getDescription();
462           }
463 
464           public void setCooked(Persistent g, Object cooked)
465               throws AccessPoemException, ValidationPoemException {
466             ((Product)g).setDescription((String)cooked);
467           }
468 
469           public Field asField(Persistent g) {
470             return ((Product)g).getDescriptionField();
471           }
472 
473           protected DisplayLevel defaultDisplayLevel() {
474             return DisplayLevel.record;
475           }
476 
477           protected Searchability defaultSearchability() {
478             return Searchability.yes;
479           }
480 
481           protected String defaultDisplayName() {
482             return "Description";
483           }
484 
485           protected int defaultDisplayOrder() {
486             return 6;
487           }
488 
489           protected int defaultWidth() {
490             return 40;
491           }
492 
493           protected int defaultHeight() {
494             return 5;
495           }
496 
497           public Object getRaw_unsafe(Persistent g)
498               throws AccessPoemException {
499             return ((Product)g).getDescription_unsafe();
500           }
501 
502           public void setRaw_unsafe(Persistent g, Object raw)
503               throws AccessPoemException {
504             ((Product)g).setDescription_unsafe((String)raw);
505           }
506 
507           public Object getRaw(Persistent g)
508               throws AccessPoemException {
509             return ((Product)g).getDescription();
510           }
511 
512           public void setRaw(Persistent g, Object raw)
513               throws AccessPoemException {
514             ((Product)g).setDescription((String)raw);
515           }
516         });
517 
518     defineColumn(col_supplier =
519         new Column(this, "supplier",
520                    new ReferencePoemType(getJammyjoesDatabaseTables().
521                                              getSupplierTable(), false),
522                    DefinitionSource.dsd) { 
523           public Object getCooked(Persistent g)
524               throws AccessPoemException, PoemException {
525             return ((Product)g).getSupplier();
526           }
527 
528           public void setCooked(Persistent g, Object cooked)
529               throws AccessPoemException, ValidationPoemException {
530             ((Product)g).setSupplier((Supplier)cooked);
531           }
532 
533           public Field asField(Persistent g) {
534             return ((Product)g).getSupplierField();
535           }
536 
537           protected DisplayLevel defaultDisplayLevel() {
538             return DisplayLevel.summary;
539           }
540 
541           protected Searchability defaultSearchability() {
542             return Searchability.yes;
543           }
544 
545           protected String defaultDisplayName() {
546             return "Supplier";
547           }
548 
549           protected int defaultDisplayOrder() {
550             return 7;
551           }
552 
553           public Object getRaw_unsafe(Persistent g)
554               throws AccessPoemException {
555             return ((Product)g).getSupplier_unsafe();
556           }
557 
558           public void setRaw_unsafe(Persistent g, Object raw)
559               throws AccessPoemException {
560             ((Product)g).setSupplier_unsafe((Integer)raw);
561           }
562 
563           public Object getRaw(Persistent g)
564               throws AccessPoemException {
565             return ((Product)g).getSupplierTroid();
566           }
567 
568           public void setRaw(Persistent g, Object raw)
569               throws AccessPoemException {
570             ((Product)g).setSupplierTroid((Integer)raw);
571           }
572         });
573 
574     defineColumn(col_manufacturer =
575         new Column(this, "manufacturer",
576                    new ReferencePoemType(getJammyjoesDatabaseTables().
577                                              getManufacturerTable(), false),
578                    DefinitionSource.dsd) { 
579           public Object getCooked(Persistent g)
580               throws AccessPoemException, PoemException {
581             return ((Product)g).getManufacturer();
582           }
583 
584           public void setCooked(Persistent g, Object cooked)
585               throws AccessPoemException, ValidationPoemException {
586             ((Product)g).setManufacturer((Manufacturer)cooked);
587           }
588 
589           public Field asField(Persistent g) {
590             return ((Product)g).getManufacturerField();
591           }
592 
593           protected DisplayLevel defaultDisplayLevel() {
594             return DisplayLevel.record;
595           }
596 
597           protected Searchability defaultSearchability() {
598             return Searchability.yes;
599           }
600 
601           protected String defaultDisplayName() {
602             return "Manufacturer";
603           }
604 
605           protected int defaultDisplayOrder() {
606             return 8;
607           }
608 
609           public Object getRaw_unsafe(Persistent g)
610               throws AccessPoemException {
611             return ((Product)g).getManufacturer_unsafe();
612           }
613 
614           public void setRaw_unsafe(Persistent g, Object raw)
615               throws AccessPoemException {
616             ((Product)g).setManufacturer_unsafe((Integer)raw);
617           }
618 
619           public Object getRaw(Persistent g)
620               throws AccessPoemException {
621             return ((Product)g).getManufacturerTroid();
622           }
623 
624           public void setRaw(Persistent g, Object raw)
625               throws AccessPoemException {
626             ((Product)g).setManufacturerTroid((Integer)raw);
627           }
628         });
629 
630     defineColumn(col_suppliercode =
631         new Column(this, "suppliercode",
632                    new StringPoemType(true, -1),
633                    DefinitionSource.dsd) { 
634           public Object getCooked(Persistent g)
635               throws AccessPoemException, PoemException {
636             return ((Product)g).getSuppliercode();
637           }
638 
639           public void setCooked(Persistent g, Object cooked)
640               throws AccessPoemException, ValidationPoemException {
641             ((Product)g).setSuppliercode((String)cooked);
642           }
643 
644           public Field asField(Persistent g) {
645             return ((Product)g).getSuppliercodeField();
646           }
647 
648           protected DisplayLevel defaultDisplayLevel() {
649             return DisplayLevel.record;
650           }
651 
652           protected Searchability defaultSearchability() {
653             return Searchability.yes;
654           }
655 
656           protected String defaultDisplayName() {
657             return "Supplier's Product Code";
658           }
659 
660           protected int defaultDisplayOrder() {
661             return 9;
662           }
663 
664           protected int defaultWidth() {
665             return 20;
666           }
667 
668           public Object getRaw_unsafe(Persistent g)
669               throws AccessPoemException {
670             return ((Product)g).getSuppliercode_unsafe();
671           }
672 
673           public void setRaw_unsafe(Persistent g, Object raw)
674               throws AccessPoemException {
675             ((Product)g).setSuppliercode_unsafe((String)raw);
676           }
677 
678           public Object getRaw(Persistent g)
679               throws AccessPoemException {
680             return ((Product)g).getSuppliercode();
681           }
682 
683           public void setRaw(Persistent g, Object raw)
684               throws AccessPoemException {
685             ((Product)g).setSuppliercode((String)raw);
686           }
687         });
688 
689     defineColumn(col_costprice =
690         new Column(this, "costprice",
691                    new DoublePoemType(false),
692                    DefinitionSource.dsd) { 
693           public Object getCooked(Persistent g)
694               throws AccessPoemException, PoemException {
695             return ((Product)g).getCostprice();
696           }
697 
698           public void setCooked(Persistent g, Object cooked)
699               throws AccessPoemException, ValidationPoemException {
700             ((Product)g).setCostprice((Double)cooked);
701           }
702 
703           public Field asField(Persistent g) {
704             return ((Product)g).getCostpriceField();
705           }
706 
707           protected DisplayLevel defaultDisplayLevel() {
708             return DisplayLevel.record;
709           }
710 
711           protected Searchability defaultSearchability() {
712             return Searchability.no;
713           }
714 
715           protected String defaultDisplayName() {
716             return "Cost Price";
717           }
718 
719           protected int defaultDisplayOrder() {
720             return 10;
721           }
722 
723           public Object getRaw_unsafe(Persistent g)
724               throws AccessPoemException {
725             return ((Product)g).getCostprice_unsafe();
726           }
727 
728           public void setRaw_unsafe(Persistent g, Object raw)
729               throws AccessPoemException {
730             ((Product)g).setCostprice_unsafe((Double)raw);
731           }
732 
733           public Object getRaw(Persistent g)
734               throws AccessPoemException {
735             return ((Product)g).getCostprice();
736           }
737 
738           public void setRaw(Persistent g, Object raw)
739               throws AccessPoemException {
740             ((Product)g).setCostprice((Double)raw);
741           }
742         });
743 
744     defineColumn(col_retailpriceincvat =
745         new Column(this, "retailpriceincvat",
746                    new DoublePoemType(false),
747                    DefinitionSource.dsd) { 
748           public Object getCooked(Persistent g)
749               throws AccessPoemException, PoemException {
750             return ((Product)g).getRetailpriceincvat();
751           }
752 
753           public void setCooked(Persistent g, Object cooked)
754               throws AccessPoemException, ValidationPoemException {
755             ((Product)g).setRetailpriceincvat((Double)cooked);
756           }
757 
758           public Field asField(Persistent g) {
759             return ((Product)g).getRetailpriceincvatField();
760           }
761 
762           protected DisplayLevel defaultDisplayLevel() {
763             return DisplayLevel.record;
764           }
765 
766           protected Searchability defaultSearchability() {
767             return Searchability.no;
768           }
769 
770           protected String defaultDisplayName() {
771             return "Retail Price inc VAT (if VAT is payable)";
772           }
773 
774           protected int defaultDisplayOrder() {
775             return 11;
776           }
777 
778           public Object getRaw_unsafe(Persistent g)
779               throws AccessPoemException {
780             return ((Product)g).getRetailpriceincvat_unsafe();
781           }
782 
783           public void setRaw_unsafe(Persistent g, Object raw)
784               throws AccessPoemException {
785             ((Product)g).setRetailpriceincvat_unsafe((Double)raw);
786           }
787 
788           public Object getRaw(Persistent g)
789               throws AccessPoemException {
790             return ((Product)g).getRetailpriceincvat();
791           }
792 
793           public void setRaw(Persistent g, Object raw)
794               throws AccessPoemException {
795             ((Product)g).setRetailpriceincvat((Double)raw);
796           }
797         });
798 
799     defineColumn(col_vatexempt =
800         new Column(this, "vatexempt",
801                    new BooleanPoemType(false),
802                    DefinitionSource.dsd) { 
803           public Object getCooked(Persistent g)
804               throws AccessPoemException, PoemException {
805             return ((Product)g).getVatexempt();
806           }
807 
808           public void setCooked(Persistent g, Object cooked)
809               throws AccessPoemException, ValidationPoemException {
810             ((Product)g).setVatexempt((Boolean)cooked);
811           }
812 
813           public Field asField(Persistent g) {
814             return ((Product)g).getVatexemptField();
815           }
816 
817           protected DisplayLevel defaultDisplayLevel() {
818             return DisplayLevel.record;
819           }
820 
821           protected Searchability defaultSearchability() {
822             return Searchability.yes;
823           }
824 
825           protected String defaultDisplayName() {
826             return "Exempt from VAT?";
827           }
828 
829           protected int defaultDisplayOrder() {
830             return 12;
831           }
832 
833           public Object getRaw_unsafe(Persistent g)
834               throws AccessPoemException {
835             return ((Product)g).getVatexempt_unsafe();
836           }
837 
838           public void setRaw_unsafe(Persistent g, Object raw)
839               throws AccessPoemException {
840             ((Product)g).setVatexempt_unsafe((Boolean)raw);
841           }
842 
843           public Object getRaw(Persistent g)
844               throws AccessPoemException {
845             return ((Product)g).getVatexempt();
846           }
847 
848           public void setRaw(Persistent g, Object raw)
849               throws AccessPoemException {
850             ((Product)g).setVatexempt((Boolean)raw);
851           }
852         });
853 
854     defineColumn(col_saleprice =
855         new Column(this, "saleprice",
856                    new DoublePoemType(true),
857                    DefinitionSource.dsd) { 
858           public Object getCooked(Persistent g)
859               throws AccessPoemException, PoemException {
860             return ((Product)g).getSaleprice();
861           }
862 
863           public void setCooked(Persistent g, Object cooked)
864               throws AccessPoemException, ValidationPoemException {
865             ((Product)g).setSaleprice((Double)cooked);
866           }
867 
868           public Field asField(Persistent g) {
869             return ((Product)g).getSalepriceField();
870           }
871 
872           protected DisplayLevel defaultDisplayLevel() {
873             return DisplayLevel.record;
874           }
875 
876           protected Searchability defaultSearchability() {
877             return Searchability.no;
878           }
879 
880           protected String defaultDisplayName() {
881             return "Pre Discount Price inc VAT";
882           }
883 
884           protected int defaultDisplayOrder() {
885             return 13;
886           }
887 
888           protected String defaultDescription() {
889             return "To put items in the sale, enter the original price here, and put the Sale price into the Retail Price inc VAT field";
890           }
891 
892           public Object getRaw_unsafe(Persistent g)
893               throws AccessPoemException {
894             return ((Product)g).getSaleprice_unsafe();
895           }
896 
897           public void setRaw_unsafe(Persistent g, Object raw)
898               throws AccessPoemException {
899             ((Product)g).setSaleprice_unsafe((Double)raw);
900           }
901 
902           public Object getRaw(Persistent g)
903               throws AccessPoemException {
904             return ((Product)g).getSaleprice();
905           }
906 
907           public void setRaw(Persistent g, Object raw)
908               throws AccessPoemException {
909             ((Product)g).setSaleprice((Double)raw);
910           }
911         });
912 
913     defineColumn(col_retailprice =
914         new Column(this, "retailprice",
915                    new DoublePoemType(false),
916                    DefinitionSource.dsd) { 
917           public Object getCooked(Persistent g)
918               throws AccessPoemException, PoemException {
919             return ((Product)g).getRetailprice();
920           }
921 
922           public void setCooked(Persistent g, Object cooked)
923               throws AccessPoemException, ValidationPoemException {
924             ((Product)g).setRetailprice((Double)cooked);
925           }
926 
927           public Field asField(Persistent g) {
928             return ((Product)g).getRetailpriceField();
929           }
930 
931           protected boolean defaultUserEditable() {
932             return false;
933           }
934 
935           protected boolean defaultUserCreateable() {
936             return false;
937           }
938 
939           protected DisplayLevel defaultDisplayLevel() {
940             return DisplayLevel.record;
941           }
942 
943           protected Searchability defaultSearchability() {
944             return Searchability.no;
945           }
946 
947           protected String defaultDisplayName() {
948             return "Retail Price ex VAT";
949           }
950 
951           protected int defaultDisplayOrder() {
952             return 14;
953           }
954 
955           public Object getRaw_unsafe(Persistent g)
956               throws AccessPoemException {
957             return ((Product)g).getRetailprice_unsafe();
958           }
959 
960           public void setRaw_unsafe(Persistent g, Object raw)
961               throws AccessPoemException {
962             ((Product)g).setRetailprice_unsafe((Double)raw);
963           }
964 
965           public Object getRaw(Persistent g)
966               throws AccessPoemException {
967             return ((Product)g).getRetailprice();
968           }
969 
970           public void setRaw(Persistent g, Object raw)
971               throws AccessPoemException {
972             ((Product)g).setRetailprice((Double)raw);
973           }
974         });
975 
976     defineColumn(col_margin =
977         new Column(this, "margin",
978                    new DoublePoemType(true),
979                    DefinitionSource.dsd) { 
980           public Object getCooked(Persistent g)
981               throws AccessPoemException, PoemException {
982             return ((Product)g).getMargin();
983           }
984 
985           public void setCooked(Persistent g, Object cooked)
986               throws AccessPoemException, ValidationPoemException {
987             ((Product)g).setMargin((Double)cooked);
988           }
989 
990           public Field asField(Persistent g) {
991             return ((Product)g).getMarginField();
992           }
993 
994           protected boolean defaultUserEditable() {
995             return false;
996           }
997 
998           protected boolean defaultUserCreateable() {
999             return false;
1000           }
1001 
1002           protected DisplayLevel defaultDisplayLevel() {
1003             return DisplayLevel.record;
1004           }
1005 
1006           protected Searchability defaultSearchability() {
1007             return Searchability.no;
1008           }
1009 
1010           protected String defaultDisplayName() {
1011             return "Margin / Markup";
1012           }
1013 
1014           protected int defaultDisplayOrder() {
1015             return 15;
1016           }
1017 
1018           public Object getRaw_unsafe(Persistent g)
1019               throws AccessPoemException {
1020             return ((Product)g).getMargin_unsafe();
1021           }
1022 
1023           public void setRaw_unsafe(Persistent g, Object raw)
1024               throws AccessPoemException {
1025             ((Product)g).setMargin_unsafe((Double)raw);
1026           }
1027 
1028           public Object getRaw(Persistent g)
1029               throws AccessPoemException {
1030             return ((Product)g).getMargin();
1031           }
1032 
1033           public void setRaw(Persistent g, Object raw)
1034               throws AccessPoemException {
1035             ((Product)g).setMargin((Double)raw);
1036           }
1037         });
1038 
1039     defineColumn(col_marginpercent =
1040         new Column(this, "marginpercent",
1041                    new DoublePoemType(true),
1042                    DefinitionSource.dsd) { 
1043           public Object getCooked(Persistent g)
1044               throws AccessPoemException, PoemException {
1045             return ((Product)g).getMarginpercent();
1046           }
1047 
1048           public void setCooked(Persistent g, Object cooked)
1049               throws AccessPoemException, ValidationPoemException {
1050             ((Product)g).setMarginpercent((Double)cooked);
1051           }
1052 
1053           public Field asField(Persistent g) {
1054             return ((Product)g).getMarginpercentField();
1055           }
1056 
1057           protected boolean defaultUserEditable() {
1058             return false;
1059           }
1060 
1061           protected boolean defaultUserCreateable() {
1062             return false;
1063           }
1064 
1065           protected DisplayLevel defaultDisplayLevel() {
1066             return DisplayLevel.record;
1067           }
1068 
1069           protected Searchability defaultSearchability() {
1070             return Searchability.no;
1071           }
1072 
1073           protected String defaultDisplayName() {
1074             return "Margin Percent";
1075           }
1076 
1077           protected int defaultDisplayOrder() {
1078             return 16;
1079           }
1080 
1081           public Object getRaw_unsafe(Persistent g)
1082               throws AccessPoemException {
1083             return ((Product)g).getMarginpercent_unsafe();
1084           }
1085 
1086           public void setRaw_unsafe(Persistent g, Object raw)
1087               throws AccessPoemException {
1088             ((Product)g).setMarginpercent_unsafe((Double)raw);
1089           }
1090 
1091           public Object getRaw(Persistent g)
1092               throws AccessPoemException {
1093             return ((Product)g).getMarginpercent();
1094           }
1095 
1096           public void setRaw(Persistent g, Object raw)
1097               throws AccessPoemException {
1098             ((Product)g).setMarginpercent((Double)raw);
1099           }
1100         });
1101 
1102     defineColumn(col_markuppercent =
1103         new Column(this, "markuppercent",
1104                    new DoublePoemType(true),
1105                    DefinitionSource.dsd) { 
1106           public Object getCooked(Persistent g)
1107               throws AccessPoemException, PoemException {
1108             return ((Product)g).getMarkuppercent();
1109           }
1110 
1111           public void setCooked(Persistent g, Object cooked)
1112               throws AccessPoemException, ValidationPoemException {
1113             ((Product)g).setMarkuppercent((Double)cooked);
1114           }
1115 
1116           public Field asField(Persistent g) {
1117             return ((Product)g).getMarkuppercentField();
1118           }
1119 
1120           protected boolean defaultUserEditable() {
1121             return false;
1122           }
1123 
1124           protected boolean defaultUserCreateable() {
1125             return false;
1126           }
1127 
1128           protected DisplayLevel defaultDisplayLevel() {
1129             return DisplayLevel.record;
1130           }
1131 
1132           protected Searchability defaultSearchability() {
1133             return Searchability.no;
1134           }
1135 
1136           protected String defaultDisplayName() {
1137             return "Markup Percent";
1138           }
1139 
1140           protected int defaultDisplayOrder() {
1141             return 17;
1142           }
1143 
1144           public Object getRaw_unsafe(Persistent g)
1145               throws AccessPoemException {
1146             return ((Product)g).getMarkuppercent_unsafe();
1147           }
1148 
1149           public void setRaw_unsafe(Persistent g, Object raw)
1150               throws AccessPoemException {
1151             ((Product)g).setMarkuppercent_unsafe((Double)raw);
1152           }
1153 
1154           public Object getRaw(Persistent g)
1155               throws AccessPoemException {
1156             return ((Product)g).getMarkuppercent();
1157           }
1158 
1159           public void setRaw(Persistent g, Object raw)
1160               throws AccessPoemException {
1161             ((Product)g).setMarkuppercent((Double)raw);
1162           }
1163         });
1164 
1165     defineColumn(col_deliverycost =
1166         new Column(this, "deliverycost",
1167                    new DoublePoemType(true),
1168                    DefinitionSource.dsd) { 
1169           public Object getCooked(Persistent g)
1170               throws AccessPoemException, PoemException {
1171             return ((Product)g).getDeliverycost();
1172           }
1173 
1174           public void setCooked(Persistent g, Object cooked)
1175               throws AccessPoemException, ValidationPoemException {
1176             ((Product)g).setDeliverycost((Double)cooked);
1177           }
1178 
1179           public Field asField(Persistent g) {
1180             return ((Product)g).getDeliverycostField();
1181           }
1182 
1183           protected DisplayLevel defaultDisplayLevel() {
1184             return DisplayLevel.record;
1185           }
1186 
1187           protected Searchability defaultSearchability() {
1188             return Searchability.no;
1189           }
1190 
1191           protected Integer defaultDisplayOrderPriority() {
1192             return new Integer(99);
1193           }
1194 
1195           protected String defaultDisplayName() {
1196             return "Delivery Cost";
1197           }
1198 
1199           protected int defaultDisplayOrder() {
1200             return 18;
1201           }
1202 
1203           public Object getRaw_unsafe(Persistent g)
1204               throws AccessPoemException {
1205             return ((Product)g).getDeliverycost_unsafe();
1206           }
1207 
1208           public void setRaw_unsafe(Persistent g, Object raw)
1209               throws AccessPoemException {
1210             ((Product)g).setDeliverycost_unsafe((Double)raw);
1211           }
1212 
1213           public Object getRaw(Persistent g)
1214               throws AccessPoemException {
1215             return ((Product)g).getDeliverycost();
1216           }
1217 
1218           public void setRaw(Persistent g, Object raw)
1219               throws AccessPoemException {
1220             ((Product)g).setDeliverycost((Double)raw);
1221           }
1222         });
1223 
1224     defineColumn(col_minage =
1225         new Column(this, "minage",
1226                    new IntegerPoemType(true),
1227                    DefinitionSource.dsd) { 
1228           public Object getCooked(Persistent g)
1229               throws AccessPoemException, PoemException {
1230             return ((Product)g).getMinage();
1231           }
1232 
1233           public void setCooked(Persistent g, Object cooked)
1234               throws AccessPoemException, ValidationPoemException {
1235             ((Product)g).setMinage((Integer)cooked);
1236           }
1237 
1238           public Field asField(Persistent g) {
1239             return ((Product)g).getMinageField();
1240           }
1241 
1242           protected DisplayLevel defaultDisplayLevel() {
1243             return DisplayLevel.record;
1244           }
1245 
1246           protected Searchability defaultSearchability() {
1247             return Searchability.no;
1248           }
1249 
1250           protected String defaultDisplayName() {
1251             return "Minimum Age";
1252           }
1253 
1254           protected int defaultDisplayOrder() {
1255             return 19;
1256           }
1257 
1258           public Object getRaw_unsafe(Persistent g)
1259               throws AccessPoemException {
1260             return ((Product)g).getMinage_unsafe();
1261           }
1262 
1263           public void setRaw_unsafe(Persistent g, Object raw)
1264               throws AccessPoemException {
1265             ((Product)g).setMinage_unsafe((Integer)raw);
1266           }
1267 
1268           public Object getRaw(Persistent g)
1269               throws AccessPoemException {
1270             return ((Product)g).getMinage();
1271           }
1272 
1273           public void setRaw(Persistent g, Object raw)
1274               throws AccessPoemException {
1275             ((Product)g).setMinage((Integer)raw);
1276           }
1277         });
1278 
1279     defineColumn(col_maxage =
1280         new Column(this, "maxage",
1281                    new IntegerPoemType(true),
1282                    DefinitionSource.dsd) { 
1283           public Object getCooked(Persistent g)
1284               throws AccessPoemException, PoemException {
1285             return ((Product)g).getMaxage();
1286           }
1287 
1288           public void setCooked(Persistent g, Object cooked)
1289               throws AccessPoemException, ValidationPoemException {
1290             ((Product)g).setMaxage((Integer)cooked);
1291           }
1292 
1293           public Field asField(Persistent g) {
1294             return ((Product)g).getMaxageField();
1295           }
1296 
1297           protected DisplayLevel defaultDisplayLevel() {
1298             return DisplayLevel.record;
1299           }
1300 
1301           protected Searchability defaultSearchability() {
1302             return Searchability.no;
1303           }
1304 
1305           protected String defaultDisplayName() {
1306             return "Maximum Age";
1307           }
1308 
1309           protected int defaultDisplayOrder() {
1310             return 20;
1311           }
1312 
1313           public Object getRaw_unsafe(Persistent g)
1314               throws AccessPoemException {
1315             return ((Product)g).getMaxage_unsafe();
1316           }
1317 
1318           public void setRaw_unsafe(Persistent g, Object raw)
1319               throws AccessPoemException {
1320             ((Product)g).setMaxage_unsafe((Integer)raw);
1321           }
1322 
1323           public Object getRaw(Persistent g)
1324               throws AccessPoemException {
1325             return ((Product)g).getMaxage();
1326           }
1327 
1328           public void setRaw(Persistent g, Object raw)
1329               throws AccessPoemException {
1330             ((Product)g).setMaxage((Integer)raw);
1331           }
1332         });
1333 
1334     defineColumn(col_pieces =
1335         new Column(this, "pieces",
1336                    new IntegerPoemType(true),
1337                    DefinitionSource.dsd) { 
1338           public Object getCooked(Persistent g)
1339               throws AccessPoemException, PoemException {
1340             return ((Product)g).getPieces();
1341           }
1342 
1343           public void setCooked(Persistent g, Object cooked)
1344               throws AccessPoemException, ValidationPoemException {
1345             ((Product)g).setPieces((Integer)cooked);
1346           }
1347 
1348           public Field asField(Persistent g) {
1349             return ((Product)g).getPiecesField();
1350           }
1351 
1352           protected DisplayLevel defaultDisplayLevel() {
1353             return DisplayLevel.record;
1354           }
1355 
1356           protected Searchability defaultSearchability() {
1357             return Searchability.no;
1358           }
1359 
1360           protected String defaultDisplayName() {
1361             return "Number of Pieces";
1362           }
1363 
1364           protected int defaultDisplayOrder() {
1365             return 21;
1366           }
1367 
1368           public Object getRaw_unsafe(Persistent g)
1369               throws AccessPoemException {
1370             return ((Product)g).getPieces_unsafe();
1371           }
1372 
1373           public void setRaw_unsafe(Persistent g, Object raw)
1374               throws AccessPoemException {
1375             ((Product)g).setPieces_unsafe((Integer)raw);
1376           }
1377 
1378           public Object getRaw(Persistent g)
1379               throws AccessPoemException {
1380             return ((Product)g).getPieces();
1381           }
1382 
1383           public void setRaw(Persistent g, Object raw)
1384               throws AccessPoemException {
1385             ((Product)g).setPieces((Integer)raw);
1386           }
1387         });
1388 
1389     defineColumn(col_stocklevel =
1390         new Column(this, "stocklevel",
1391                    new IntegerPoemType(true),
1392                    DefinitionSource.dsd) { 
1393           public Object getCooked(Persistent g)
1394               throws AccessPoemException, PoemException {
1395             return ((Product)g).getStocklevel();
1396           }
1397 
1398           public void setCooked(Persistent g, Object cooked)
1399               throws AccessPoemException, ValidationPoemException {
1400             ((Product)g).setStocklevel((Integer)cooked);
1401           }
1402 
1403           public Field asField(Persistent g) {
1404             return ((Product)g).getStocklevelField();
1405           }
1406 
1407           protected boolean defaultUserEditable() {
1408             return false;
1409           }
1410 
1411           protected boolean defaultUserCreateable() {
1412             return false;
1413           }
1414 
1415           protected DisplayLevel defaultDisplayLevel() {
1416             return DisplayLevel.record;
1417           }
1418 
1419           protected Searchability defaultSearchability() {
1420             return Searchability.no;
1421           }
1422 
1423           protected String defaultDisplayName() {
1424             return "Stock Level";
1425           }
1426 
1427           protected int defaultDisplayOrder() {
1428             return 22;
1429           }
1430 
1431           public Object getRaw_unsafe(Persistent g)
1432               throws AccessPoemException {
1433             return ((Product)g).getStocklevel_unsafe();
1434           }
1435 
1436           public void setRaw_unsafe(Persistent g, Object raw)
1437               throws AccessPoemException {
1438             ((Product)g).setStocklevel_unsafe((Integer)raw);
1439           }
1440 
1441           public Object getRaw(Persistent g)
1442               throws AccessPoemException {
1443             return ((Product)g).getStocklevel();
1444           }
1445 
1446           public void setRaw(Persistent g, Object raw)
1447               throws AccessPoemException {
1448             ((Product)g).setStocklevel((Integer)raw);
1449           }
1450         });
1451 
1452     defineColumn(col_reorderlevel =
1453         new Column(this, "reorderlevel",
1454                    new IntegerPoemType(false),
1455                    DefinitionSource.dsd) { 
1456           public Object getCooked(Persistent g)
1457               throws AccessPoemException, PoemException {
1458             return ((Product)g).getReorderlevel();
1459           }
1460 
1461           public void setCooked(Persistent g, Object cooked)
1462               throws AccessPoemException, ValidationPoemException {
1463             ((Product)g).setReorderlevel((Integer)cooked);
1464           }
1465 
1466           public Field asField(Persistent g) {
1467             return ((Product)g).getReorderlevelField();
1468           }
1469 
1470           protected DisplayLevel defaultDisplayLevel() {
1471             return DisplayLevel.record;
1472           }
1473 
1474           protected Searchability defaultSearchability() {
1475             return Searchability.no;
1476           }
1477 
1478           protected String defaultDisplayName() {
1479             return "Reorder Level";
1480           }
1481 
1482           protected int defaultDisplayOrder() {
1483             return 23;
1484           }
1485 
1486           protected String defaultDescription() {
1487             return "The level at which stock needs to fall to before JammyJoes normally orders";
1488           }
1489 
1490           public Object getRaw_unsafe(Persistent g)
1491               throws AccessPoemException {
1492             return ((Product)g).getReorderlevel_unsafe();
1493           }
1494 
1495           public void setRaw_unsafe(Persistent g, Object raw)
1496               throws AccessPoemException {
1497             ((Product)g).setReorderlevel_unsafe((Integer)raw);
1498           }
1499 
1500           public Object getRaw(Persistent g)
1501               throws AccessPoemException {
1502             return ((Product)g).getReorderlevel();
1503           }
1504 
1505           public void setRaw(Persistent g, Object raw)
1506               throws AccessPoemException {
1507             ((Product)g).setReorderlevel((Integer)raw);
1508           }
1509         });
1510 
1511     defineColumn(col_reorderquantity =
1512         new Column(this, "reorderquantity",
1513                    new IntegerPoemType(false),
1514                    DefinitionSource.dsd) { 
1515           public Object getCooked(Persistent g)
1516               throws AccessPoemException, PoemException {
1517             return ((Product)g).getReorderquantity();
1518           }
1519 
1520           public void setCooked(Persistent g, Object cooked)
1521               throws AccessPoemException, ValidationPoemException {
1522             ((Product)g).setReorderquantity((Integer)cooked);
1523           }
1524 
1525           public Field asField(Persistent g) {
1526             return ((Product)g).getReorderquantityField();
1527           }
1528 
1529           protected DisplayLevel defaultDisplayLevel() {
1530             return DisplayLevel.record;
1531           }
1532 
1533           protected Searchability defaultSearchability() {
1534             return Searchability.no;
1535           }
1536 
1537           protected String defaultDisplayName() {
1538             return "Reorder Quantity";
1539           }
1540 
1541           protected int defaultDisplayOrder() {
1542             return 24;
1543           }
1544 
1545           protected String defaultDescription() {
1546             return "The quantity that JammyJoes normally orders";
1547           }
1548 
1549           public Object getRaw_unsafe(Persistent g)
1550               throws AccessPoemException {
1551             return ((Product)g).getReorderquantity_unsafe();
1552           }
1553 
1554           public void setRaw_unsafe(Persistent g, Object raw)
1555               throws AccessPoemException {
1556             ((Product)g).setReorderquantity_unsafe((Integer)raw);
1557           }
1558 
1559           public Object getRaw(Persistent g)
1560               throws AccessPoemException {
1561             return ((Product)g).getReorderquantity();
1562           }
1563 
1564           public void setRaw(Persistent g, Object raw)
1565               throws AccessPoemException {
1566             ((Product)g).setReorderquantity((Integer)raw);
1567           }
1568         });
1569 
1570     defineColumn(col_minimumorder =
1571         new Column(this, "minimumorder",
1572                    new IntegerPoemType(true),
1573                    DefinitionSource.dsd) { 
1574           public Object getCooked(Persistent g)
1575               throws AccessPoemException, PoemException {
1576             return ((Product)g).getMinimumorder();
1577           }
1578 
1579           public void setCooked(Persistent g, Object cooked)
1580               throws AccessPoemException, ValidationPoemException {
1581             ((Product)g).setMinimumorder((Integer)cooked);
1582           }
1583 
1584           public Field asField(Persistent g) {
1585             return ((Product)g).getMinimumorderField();
1586           }
1587 
1588           protected DisplayLevel defaultDisplayLevel() {
1589             return DisplayLevel.record;
1590           }
1591 
1592           protected Searchability defaultSearchability() {
1593             return Searchability.no;
1594           }
1595 
1596           protected String defaultDisplayName() {
1597             return "Minimum Order Quantity";
1598           }
1599 
1600           protected int defaultDisplayOrder() {
1601             return 25;
1602           }
1603 
1604           protected String defaultDescription() {
1605             return "The minimum quantity that can be ordered";
1606           }
1607 
1608           public Object getRaw_unsafe(Persistent g)
1609               throws AccessPoemException {
1610             return ((Product)g).getMinimumorder_unsafe();
1611           }
1612 
1613           public void setRaw_unsafe(Persistent g, Object raw)
1614               throws AccessPoemException {
1615             ((Product)g).setMinimumorder_unsafe((Integer)raw);
1616           }
1617 
1618           public Object getRaw(Persistent g)
1619               throws AccessPoemException {
1620             return ((Product)g).getMinimumorder();
1621           }
1622 
1623           public void setRaw(Persistent g, Object raw)
1624               throws AccessPoemException {
1625             ((Product)g).setMinimumorder((Integer)raw);
1626           }
1627         });
1628 
1629     defineColumn(col_leadtime =
1630         new Column(this, "leadtime",
1631                    new IntegerPoemType(true),
1632                    DefinitionSource.dsd) { 
1633           public Object getCooked(Persistent g)
1634               throws AccessPoemException, PoemException {
1635             return ((Product)g).getLeadtime();
1636           }
1637 
1638           public void setCooked(Persistent g, Object cooked)
1639               throws AccessPoemException, ValidationPoemException {
1640             ((Product)g).setLeadtime((Integer)cooked);
1641           }
1642 
1643           public Field asField(Persistent g) {
1644             return ((Product)g).getLeadtimeField();
1645           }
1646 
1647           protected DisplayLevel defaultDisplayLevel() {
1648             return DisplayLevel.record;
1649           }
1650 
1651           protected Searchability defaultSearchability() {
1652             return Searchability.no;
1653           }
1654 
1655           protected String defaultDisplayName() {
1656             return "Lead Time (Days)";
1657           }
1658 
1659           protected int defaultDisplayOrder() {
1660             return 26;
1661           }
1662 
1663           public Object getRaw_unsafe(Persistent g)
1664               throws AccessPoemException {
1665             return ((Product)g).getLeadtime_unsafe();
1666           }
1667 
1668           public void setRaw_unsafe(Persistent g, Object raw)
1669               throws AccessPoemException {
1670             ((Product)g).setLeadtime_unsafe((Integer)raw);
1671           }
1672 
1673           public Object getRaw(Persistent g)
1674               throws AccessPoemException {
1675             return ((Product)g).getLeadtime();
1676           }
1677 
1678           public void setRaw(Persistent g, Object raw)
1679               throws AccessPoemException {
1680             ((Product)g).setLeadtime((Integer)raw);
1681           }
1682         });
1683 
1684     defineColumn(col_weight =
1685         new Column(this, "weight",
1686                    new DoublePoemType(true),
1687                    DefinitionSource.dsd) { 
1688           public Object getCooked(Persistent g)
1689               throws AccessPoemException, PoemException {
1690             return ((Product)g).getWeight();
1691           }
1692 
1693           public void setCooked(Persistent g, Object cooked)
1694               throws AccessPoemException, ValidationPoemException {
1695             ((Product)g).setWeight((Double)cooked);
1696           }
1697 
1698           public Field asField(Persistent g) {
1699             return ((Product)g).getWeightField();
1700           }
1701 
1702           protected DisplayLevel defaultDisplayLevel() {
1703             return DisplayLevel.record;
1704           }
1705 
1706           protected Searchability defaultSearchability() {
1707             return Searchability.no;
1708           }
1709 
1710           protected String defaultDisplayName() {
1711             return "Weight in Grammes";
1712           }
1713 
1714           protected int defaultDisplayOrder() {
1715             return 27;
1716           }
1717 
1718           public Object getRaw_unsafe(Persistent g)
1719               throws AccessPoemException {
1720             return ((Product)g).getWeight_unsafe();
1721           }
1722 
1723           public void setRaw_unsafe(Persistent g, Object raw)
1724               throws AccessPoemException {
1725             ((Product)g).setWeight_unsafe((Double)raw);
1726           }
1727 
1728           public Object getRaw(Persistent g)
1729               throws AccessPoemException {
1730             return ((Product)g).getWeight();
1731           }
1732 
1733           public void setRaw(Persistent g, Object raw)
1734               throws AccessPoemException {
1735             ((Product)g).setWeight((Double)raw);
1736           }
1737         });
1738 
1739     defineColumn(col_width =
1740         new Column(this, "width",
1741                    new DoublePoemType(true),
1742                    DefinitionSource.dsd) { 
1743           public Object getCooked(Persistent g)
1744               throws AccessPoemException, PoemException {
1745             return ((Product)g).getWidth();
1746           }
1747 
1748           public void setCooked(Persistent g, Object cooked)
1749               throws AccessPoemException, ValidationPoemException {
1750             ((Product)g).setWidth((Double)cooked);
1751           }
1752 
1753           public Field asField(Persistent g) {
1754             return ((Product)g).getWidthField();
1755           }
1756 
1757           protected DisplayLevel defaultDisplayLevel() {
1758             return DisplayLevel.detail;
1759           }
1760 
1761           protected Searchability defaultSearchability() {
1762             return Searchability.no;
1763           }
1764 
1765           protected String defaultDisplayName() {
1766             return "Width (or size) in cm";
1767           }
1768 
1769           protected int defaultDisplayOrder() {
1770             return 28;
1771           }
1772 
1773           public Object getRaw_unsafe(Persistent g)
1774               throws AccessPoemException {
1775             return ((Product)g).getWidth_unsafe();
1776           }
1777 
1778           public void setRaw_unsafe(Persistent g, Object raw)
1779               throws AccessPoemException {
1780             ((Product)g).setWidth_unsafe((Double)raw);
1781           }
1782 
1783           public Object getRaw(Persistent g)
1784               throws AccessPoemException {
1785             return ((Product)g).getWidth();
1786           }
1787 
1788           public void setRaw(Persistent g, Object raw)
1789               throws AccessPoemException {
1790             ((Product)g).setWidth((Double)raw);
1791           }
1792         });
1793 
1794     defineColumn(col_height =
1795         new Column(this, "height",
1796                    new DoublePoemType(true),
1797                    DefinitionSource.dsd) { 
1798           public Object getCooked(Persistent g)
1799               throws AccessPoemException, PoemException {
1800             return ((Product)g).getHeight();
1801           }
1802 
1803           public void setCooked(Persistent g, Object cooked)
1804               throws AccessPoemException, ValidationPoemException {
1805             ((Product)g).setHeight((Double)cooked);
1806           }
1807 
1808           public Field asField(Persistent g) {
1809             return ((Product)g).getHeightField();
1810           }
1811 
1812           protected DisplayLevel defaultDisplayLevel() {
1813             return DisplayLevel.detail;
1814           }
1815 
1816           protected Searchability defaultSearchability() {
1817             return Searchability.no;
1818           }
1819 
1820           protected String defaultDisplayName() {
1821             return "Height in cm";
1822           }
1823 
1824           protected int defaultDisplayOrder() {
1825             return 29;
1826           }
1827 
1828           public Object getRaw_unsafe(Persistent g)
1829               throws AccessPoemException {
1830             return ((Product)g).getHeight_unsafe();
1831           }
1832 
1833           public void setRaw_unsafe(Persistent g, Object raw)
1834               throws AccessPoemException {
1835             ((Product)g).setHeight_unsafe((Double)raw);
1836           }
1837 
1838           public Object getRaw(Persistent g)
1839               throws AccessPoemException {
1840             return ((Product)g).getHeight();
1841           }
1842 
1843           public void setRaw(Persistent g, Object raw)
1844               throws AccessPoemException {
1845             ((Product)g).setHeight((Double)raw);
1846           }
1847         });
1848 
1849     defineColumn(col_depth =
1850         new Column(this, "depth",
1851                    new DoublePoemType(true),
1852                    DefinitionSource.dsd) { 
1853           public Object getCooked(Persistent g)
1854               throws AccessPoemException, PoemException {
1855             return ((Product)g).getDepth();
1856           }
1857 
1858           public void setCooked(Persistent g, Object cooked)
1859               throws AccessPoemException, ValidationPoemException {
1860             ((Product)g).setDepth((Double)cooked);
1861           }
1862 
1863           public Field asField(Persistent g) {
1864             return ((Product)g).getDepthField();
1865           }
1866 
1867           protected DisplayLevel defaultDisplayLevel() {
1868             return DisplayLevel.detail;
1869           }
1870 
1871           protected Searchability defaultSearchability() {
1872             return Searchability.no;
1873           }
1874 
1875           protected String defaultDisplayName() {
1876             return "Depth in cm";
1877           }
1878 
1879           protected int defaultDisplayOrder() {
1880             return 30;
1881           }
1882 
1883           public Object getRaw_unsafe(Persistent g)
1884               throws AccessPoemException {
1885             return ((Product)g).getDepth_unsafe();
1886           }
1887 
1888           public void setRaw_unsafe(Persistent g, Object raw)
1889               throws AccessPoemException {
1890             ((Product)g).setDepth_unsafe((Double)raw);
1891           }
1892 
1893           public Object getRaw(Persistent g)
1894               throws AccessPoemException {
1895             return ((Product)g).getDepth();
1896           }
1897 
1898           public void setRaw(Persistent g, Object raw)
1899               throws AccessPoemException {
1900             ((Product)g).setDepth((Double)raw);
1901           }
1902         });
1903 
1904     defineColumn(col_picture =
1905         new Column(this, "picture",
1906                    new StringPoemType(true, -1),
1907                    DefinitionSource.dsd) { 
1908           public Object getCooked(Persistent g)
1909               throws AccessPoemException, PoemException {
1910             return ((Product)g).getPicture();
1911           }
1912 
1913           public void setCooked(Persistent g, Object cooked)
1914               throws AccessPoemException, ValidationPoemException {
1915             ((Product)g).setPicture((String)cooked);
1916           }
1917 
1918           public Field asField(Persistent g) {
1919             return ((Product)g).getPictureField();
1920           }
1921 
1922           protected DisplayLevel defaultDisplayLevel() {
1923             return DisplayLevel.record;
1924           }
1925 
1926           protected Searchability defaultSearchability() {
1927             return Searchability.no;
1928           }
1929 
1930           protected String defaultDisplayName() {
1931             return "Small Picture";
1932           }
1933 
1934           protected int defaultDisplayOrder() {
1935             return 31;
1936           }
1937 
1938           protected int defaultWidth() {
1939             return 20;
1940           }
1941 
1942           protected String defaultRenderinfo() {
1943             return "ImageUpload";
1944           }
1945 
1946           public Object getRaw_unsafe(Persistent g)
1947               throws AccessPoemException {
1948             return ((Product)g).getPicture_unsafe();
1949           }
1950 
1951           public void setRaw_unsafe(Persistent g, Object raw)
1952               throws AccessPoemException {
1953             ((Product)g).setPicture_unsafe((String)raw);
1954           }
1955 
1956           public Object getRaw(Persistent g)
1957               throws AccessPoemException {
1958             return ((Product)g).getPicture();
1959           }
1960 
1961           public void setRaw(Persistent g, Object raw)
1962               throws AccessPoemException {
1963             ((Product)g).setPicture((String)raw);
1964           }
1965         });
1966 
1967     defineColumn(col_picture2 =
1968         new Column(this, "picture2",
1969                    new StringPoemType(true, -1),
1970                    DefinitionSource.dsd) { 
1971           public Object getCooked(Persistent g)
1972               throws AccessPoemException, PoemException {
1973             return ((Product)g).getPicture2();
1974           }
1975 
1976           public void setCooked(Persistent g, Object cooked)
1977               throws AccessPoemException, ValidationPoemException {
1978             ((Product)g).setPicture2((String)cooked);
1979           }
1980 
1981           public Field asField(Persistent g) {
1982             return ((Product)g).getPicture2Field();
1983           }
1984 
1985           protected DisplayLevel defaultDisplayLevel() {
1986             return DisplayLevel.record;
1987           }
1988 
1989           protected Searchability defaultSearchability() {
1990             return Searchability.no;
1991           }
1992 
1993           protected String defaultDisplayName() {
1994             return "Big Picture";
1995           }
1996 
1997           protected int defaultDisplayOrder() {
1998             return 32;
1999           }
2000 
2001           protected int defaultWidth() {
2002             return 20;
2003           }
2004 
2005           protected String defaultRenderinfo() {
2006             return "ImageUpload";
2007           }
2008 
2009           public Object getRaw_unsafe(Persistent g)
2010               throws AccessPoemException {
2011             return ((Product)g).getPicture2_unsafe();
2012           }
2013 
2014           public void setRaw_unsafe(Persistent g, Object raw)
2015               throws AccessPoemException {
2016             ((Product)g).setPicture2_unsafe((String)raw);
2017           }
2018 
2019           public Object getRaw(Persistent g)
2020               throws AccessPoemException {
2021             return ((Product)g).getPicture2();
2022           }
2023 
2024           public void setRaw(Persistent g, Object raw)
2025               throws AccessPoemException {
2026             ((Product)g).setPicture2((String)raw);
2027           }
2028         });
2029 
2030     defineColumn(col_catalogue =
2031         new Column(this, "catalogue",
2032                    new BooleanPoemType(false),
2033                    DefinitionSource.dsd) { 
2034           public Object getCooked(Persistent g)
2035               throws AccessPoemException, PoemException {
2036             return ((Product)g).getCatalogue();
2037           }
2038 
2039           public void setCooked(Persistent g, Object cooked)
2040               throws AccessPoemException, ValidationPoemException {
2041             ((Product)g).setCatalogue((Boolean)cooked);
2042           }
2043 
2044           public Field asField(Persistent g) {
2045             return ((Product)g).getCatalogueField();
2046           }
2047 
2048           protected DisplayLevel defaultDisplayLevel() {
2049             return DisplayLevel.record;
2050           }
2051 
2052           protected Searchability defaultSearchability() {
2053             return Searchability.yes;
2054           }
2055 
2056           protected String defaultDisplayName() {
2057             return "Use in Catalogue?";
2058           }
2059 
2060           protected int defaultDisplayOrder() {
2061             return 33;
2062           }
2063 
2064           public Object getRaw_unsafe(Persistent g)
2065               throws AccessPoemException {
2066             return ((Product)g).getCatalogue_unsafe();
2067           }
2068 
2069           public void setRaw_unsafe(Persistent g, Object raw)
2070               throws AccessPoemException {
2071             ((Product)g).setCatalogue_unsafe((Boolean)raw);
2072           }
2073 
2074           public Object getRaw(Persistent g)
2075               throws AccessPoemException {
2076             return ((Product)g).getCatalogue();
2077           }
2078 
2079           public void setRaw(Persistent g, Object raw)
2080               throws AccessPoemException {
2081             ((Product)g).setCatalogue((Boolean)raw);
2082           }
2083         });
2084 
2085     defineColumn(col_deleted =
2086         new Column(this, "deleted",
2087                    new BooleanPoemType(false),
2088                    DefinitionSource.dsd) { 
2089           public Object getCooked(Persistent g)
2090               throws AccessPoemException, PoemException {
2091             return ((Product)g).getDeleted();
2092           }
2093 
2094           public void setCooked(Persistent g, Object cooked)
2095               throws AccessPoemException, ValidationPoemException {
2096             ((Product)g).setDeleted((Boolean)cooked);
2097           }
2098 
2099           public Field asField(Persistent g) {
2100             return ((Product)g).getDeletedField();
2101           }
2102 
2103           protected DisplayLevel defaultDisplayLevel() {
2104             return DisplayLevel.detail;
2105           }
2106 
2107           protected Searchability defaultSearchability() {
2108             return Searchability.no;
2109           }
2110 
2111           protected String defaultDisplayName() {
2112             return "Deleted?";
2113           }
2114 
2115           protected int defaultDisplayOrder() {
2116             return 34;
2117           }
2118 
2119           public Object getRaw_unsafe(Persistent g)
2120               throws AccessPoemException {
2121             return ((Product)g).getDeleted_unsafe();
2122           }
2123 
2124           public void setRaw_unsafe(Persistent g, Object raw)
2125               throws AccessPoemException {
2126             ((Product)g).setDeleted_unsafe((Boolean)raw);
2127           }
2128 
2129           public Object getRaw(Persistent g)
2130               throws AccessPoemException {
2131             return ((Product)g).getDeleted();
2132           }
2133 
2134           public void setRaw(Persistent g, Object raw)
2135               throws AccessPoemException {
2136             ((Product)g).setDeleted((Boolean)raw);
2137           }
2138         });
2139 
2140     defineColumn(col_award =
2141         new Column(this, "award",
2142                    new ReferencePoemType(getJammyjoesDatabaseTables().
2143                                              getAwardTable(), true),
2144                    DefinitionSource.dsd) { 
2145           public Object getCooked(Persistent g)
2146               throws AccessPoemException, PoemException {
2147             return ((Product)g).getAward();
2148           }
2149 
2150           public void setCooked(Persistent g, Object cooked)
2151               throws AccessPoemException, ValidationPoemException {
2152             ((Product)g).setAward((Award)cooked);
2153           }
2154 
2155           public Field asField(Persistent g) {
2156             return ((Product)g).getAwardField();
2157           }
2158 
2159           protected DisplayLevel defaultDisplayLevel() {
2160             return DisplayLevel.never;
2161           }
2162 
2163           protected Searchability defaultSearchability() {
2164             return Searchability.no;
2165           }
2166 
2167           protected int defaultDisplayOrder() {
2168             return 35;
2169           }
2170 
2171           public Object getRaw_unsafe(Persistent g)
2172               throws AccessPoemException {
2173             return ((Product)g).getAward_unsafe();
2174           }
2175 
2176           public void setRaw_unsafe(Persistent g, Object raw)
2177               throws AccessPoemException {
2178             ((Product)g).setAward_unsafe((Integer)raw);
2179           }
2180 
2181           public Object getRaw(Persistent g)
2182               throws AccessPoemException {
2183             return ((Product)g).getAwardTroid();
2184           }
2185 
2186           public void setRaw(Persistent g, Object raw)
2187               throws AccessPoemException {
2188             ((Product)g).setAwardTroid((Integer)raw);
2189           }
2190         });
2191 
2192     defineColumn(col_onorderquantity =
2193         new Column(this, "onorderquantity",
2194                    new IntegerPoemType(true),
2195                    DefinitionSource.dsd) { 
2196           public Object getCooked(Persistent g)
2197               throws AccessPoemException, PoemException {
2198             return ((Product)g).getOnorderquantity();
2199           }
2200 
2201           public void setCooked(Persistent g, Object cooked)
2202               throws AccessPoemException, ValidationPoemException {
2203             ((Product)g).setOnorderquantity((Integer)cooked);
2204           }
2205 
2206           public Field asField(Persistent g) {
2207             return ((Product)g).getOnorderquantityField();
2208           }
2209 
2210           protected DisplayLevel defaultDisplayLevel() {
2211             return DisplayLevel.record;
2212           }
2213 
2214           protected Searchability defaultSearchability() {
2215             return Searchability.no;
2216           }
2217 
2218           protected String defaultDisplayName() {
2219             return "On-order Level";
2220           }
2221 
2222           protected int defaultDisplayOrder() {
2223             return 36;
2224           }
2225 
2226           protected String defaultDescription() {
2227             return "Not currently used";
2228           }
2229 
2230           public Object getRaw_unsafe(Persistent g)
2231               throws AccessPoemException {
2232             return ((Product)g).getOnorderquantity_unsafe();
2233           }
2234 
2235           public void setRaw_unsafe(Persistent g, Object raw)
2236               throws AccessPoemException {
2237             ((Product)g).setOnorderquantity_unsafe((Integer)raw);
2238           }
2239 
2240           public Object getRaw(Persistent g)
2241               throws AccessPoemException {
2242             return ((Product)g).getOnorderquantity();
2243           }
2244 
2245           public void setRaw(Persistent g, Object raw)
2246               throws AccessPoemException {
2247             ((Product)g).setOnorderquantity((Integer)raw);
2248           }
2249         });
2250   }
2251 
2252 
2253  /**
2254   * Retrieves the <code>Id</code> <code>Column</code> for this 
2255   * <code>Product</code> <code>Table</code>.
2256   * 
2257   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2258   * @return the id <code>Column</code>
2259   */
2260   public final Column getIdColumn() {
2261     return col_id;
2262   }
2263 
2264 
2265  /**
2266   * Retrieves the <code>Name</code> <code>Column</code> for this 
2267   * <code>Product</code> <code>Table</code>.
2268   * 
2269   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2270   * @return the name <code>Column</code>
2271   */
2272   public final Column getNameColumn() {
2273     return col_name;
2274   }
2275 
2276 
2277  /**
2278   * Retrieves the <code>Status</code> <code>Column</code> for this 
2279   * <code>Product</code> <code>Table</code>.
2280   * 
2281   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2282   * @return the status <code>Column</code>
2283   */
2284   public final Column getStatusColumn() {
2285     return col_status;
2286   }
2287 
2288 
2289  /**
2290   * Retrieves the <code>Type</code> <code>Column</code> for this 
2291   * <code>Product</code> <code>Table</code>.
2292   * 
2293   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2294   * @return the type <code>Column</code>
2295   */
2296   public final Column getTypeColumn() {
2297     return col_type;
2298   }
2299 
2300 
2301  /**
2302   * Retrieves the <code>Type2</code> <code>Column</code> for this 
2303   * <code>Product</code> <code>Table</code>.
2304   * 
2305   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2306   * @return the type2 <code>Column</code>
2307   */
2308   public final Column getType2Column() {
2309     return col_type2;
2310   }
2311 
2312 
2313  /**
2314   * Retrieves the <code>Sex</code> <code>Column</code> for this 
2315   * <code>Product</code> <code>Table</code>.
2316   * 
2317   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2318   * @return the sex <code>Column</code>
2319   */
2320   public final Column getSexColumn() {
2321     return col_sex;
2322   }
2323 
2324 
2325  /**
2326   * Retrieves the <code>Description</code> <code>Column</code> for this 
2327   * <code>Product</code> <code>Table</code>.
2328   * 
2329   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2330   * @return the description <code>Column</code>
2331   */
2332   public final Column getDescriptionColumn() {
2333     return col_description;
2334   }
2335 
2336 
2337  /**
2338   * Retrieves the <code>Supplier</code> <code>Column</code> for this 
2339   * <code>Product</code> <code>Table</code>.
2340   * 
2341   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2342   * @return the supplier <code>Column</code>
2343   */
2344   public final Column getSupplierColumn() {
2345     return col_supplier;
2346   }
2347 
2348 
2349  /**
2350   * Retrieves the <code>Manufacturer</code> <code>Column</code> for this 
2351   * <code>Product</code> <code>Table</code>.
2352   * 
2353   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2354   * @return the manufacturer <code>Column</code>
2355   */
2356   public final Column getManufacturerColumn() {
2357     return col_manufacturer;
2358   }
2359 
2360 
2361  /**
2362   * Retrieves the <code>Suppliercode</code> <code>Column</code> for this 
2363   * <code>Product</code> <code>Table</code>.
2364   * 
2365   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2366   * @return the suppliercode <code>Column</code>
2367   */
2368   public final Column getSuppliercodeColumn() {
2369     return col_suppliercode;
2370   }
2371 
2372 
2373  /**
2374   * Retrieves the <code>Costprice</code> <code>Column</code> for this 
2375   * <code>Product</code> <code>Table</code>.
2376   * 
2377   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2378   * @return the costprice <code>Column</code>
2379   */
2380   public final Column getCostpriceColumn() {
2381     return col_costprice;
2382   }
2383 
2384 
2385  /**
2386   * Retrieves the <code>Retailpriceincvat</code> <code>Column</code> for this 
2387   * <code>Product</code> <code>Table</code>.
2388   * 
2389   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2390   * @return the retailpriceincvat <code>Column</code>
2391   */
2392   public final Column getRetailpriceincvatColumn() {
2393     return col_retailpriceincvat;
2394   }
2395 
2396 
2397  /**
2398   * Retrieves the <code>Vatexempt</code> <code>Column</code> for this 
2399   * <code>Product</code> <code>Table</code>.
2400   * 
2401   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2402   * @return the vatexempt <code>Column</code>
2403   */
2404   public final Column getVatexemptColumn() {
2405     return col_vatexempt;
2406   }
2407 
2408 
2409  /**
2410   * Retrieves the <code>Saleprice</code> <code>Column</code> for this 
2411   * <code>Product</code> <code>Table</code>.
2412   * 
2413   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2414   * @return the saleprice <code>Column</code>
2415   */
2416   public final Column getSalepriceColumn() {
2417     return col_saleprice;
2418   }
2419 
2420 
2421  /**
2422   * Retrieves the <code>Retailprice</code> <code>Column</code> for this 
2423   * <code>Product</code> <code>Table</code>.
2424   * 
2425   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2426   * @return the retailprice <code>Column</code>
2427   */
2428   public final Column getRetailpriceColumn() {
2429     return col_retailprice;
2430   }
2431 
2432 
2433  /**
2434   * Retrieves the <code>Margin</code> <code>Column</code> for this 
2435   * <code>Product</code> <code>Table</code>.
2436   * 
2437   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2438   * @return the margin <code>Column</code>
2439   */
2440   public final Column getMarginColumn() {
2441     return col_margin;
2442   }
2443 
2444 
2445  /**
2446   * Retrieves the <code>Marginpercent</code> <code>Column</code> for this 
2447   * <code>Product</code> <code>Table</code>.
2448   * 
2449   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2450   * @return the marginpercent <code>Column</code>
2451   */
2452   public final Column getMarginpercentColumn() {
2453     return col_marginpercent;
2454   }
2455 
2456 
2457  /**
2458   * Retrieves the <code>Markuppercent</code> <code>Column</code> for this 
2459   * <code>Product</code> <code>Table</code>.
2460   * 
2461   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2462   * @return the markuppercent <code>Column</code>
2463   */
2464   public final Column getMarkuppercentColumn() {
2465     return col_markuppercent;
2466   }
2467 
2468 
2469  /**
2470   * Retrieves the <code>Deliverycost</code> <code>Column</code> for this 
2471   * <code>Product</code> <code>Table</code>.
2472   * 
2473   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2474   * @return the deliverycost <code>Column</code>
2475   */
2476   public final Column getDeliverycostColumn() {
2477     return col_deliverycost;
2478   }
2479 
2480 
2481  /**
2482   * Retrieves the <code>Minage</code> <code>Column</code> for this 
2483   * <code>Product</code> <code>Table</code>.
2484   * 
2485   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2486   * @return the minage <code>Column</code>
2487   */
2488   public final Column getMinageColumn() {
2489     return col_minage;
2490   }
2491 
2492 
2493  /**
2494   * Retrieves the <code>Maxage</code> <code>Column</code> for this 
2495   * <code>Product</code> <code>Table</code>.
2496   * 
2497   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2498   * @return the maxage <code>Column</code>
2499   */
2500   public final Column getMaxageColumn() {
2501     return col_maxage;
2502   }
2503 
2504 
2505  /**
2506   * Retrieves the <code>Pieces</code> <code>Column</code> for this 
2507   * <code>Product</code> <code>Table</code>.
2508   * 
2509   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2510   * @return the pieces <code>Column</code>
2511   */
2512   public final Column getPiecesColumn() {
2513     return col_pieces;
2514   }
2515 
2516 
2517  /**
2518   * Retrieves the <code>Stocklevel</code> <code>Column</code> for this 
2519   * <code>Product</code> <code>Table</code>.
2520   * 
2521   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2522   * @return the stocklevel <code>Column</code>
2523   */
2524   public final Column getStocklevelColumn() {
2525     return col_stocklevel;
2526   }
2527 
2528 
2529  /**
2530   * Retrieves the <code>Reorderlevel</code> <code>Column</code> for this 
2531   * <code>Product</code> <code>Table</code>.
2532   * 
2533   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2534   * @return the reorderlevel <code>Column</code>
2535   */
2536   public final Column getReorderlevelColumn() {
2537     return col_reorderlevel;
2538   }
2539 
2540 
2541  /**
2542   * Retrieves the <code>Reorderquantity</code> <code>Column</code> for this 
2543   * <code>Product</code> <code>Table</code>.
2544   * 
2545   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2546   * @return the reorderquantity <code>Column</code>
2547   */
2548   public final Column getReorderquantityColumn() {
2549     return col_reorderquantity;
2550   }
2551 
2552 
2553  /**
2554   * Retrieves the <code>Minimumorder</code> <code>Column</code> for this 
2555   * <code>Product</code> <code>Table</code>.
2556   * 
2557   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2558   * @return the minimumorder <code>Column</code>
2559   */
2560   public final Column getMinimumorderColumn() {
2561     return col_minimumorder;
2562   }
2563 
2564 
2565  /**
2566   * Retrieves the <code>Leadtime</code> <code>Column</code> for this 
2567   * <code>Product</code> <code>Table</code>.
2568   * 
2569   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2570   * @return the leadtime <code>Column</code>
2571   */
2572   public final Column getLeadtimeColumn() {
2573     return col_leadtime;
2574   }
2575 
2576 
2577  /**
2578   * Retrieves the <code>Weight</code> <code>Column</code> for this 
2579   * <code>Product</code> <code>Table</code>.
2580   * 
2581   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2582   * @return the weight <code>Column</code>
2583   */
2584   public final Column getWeightColumn() {
2585     return col_weight;
2586   }
2587 
2588 
2589  /**
2590   * Retrieves the <code>Width</code> <code>Column</code> for this 
2591   * <code>Product</code> <code>Table</code>.
2592   * 
2593   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2594   * @return the width <code>Column</code>
2595   */
2596   public final Column getWidthColumn() {
2597     return col_width;
2598   }
2599 
2600 
2601  /**
2602   * Retrieves the <code>Height</code> <code>Column</code> for this 
2603   * <code>Product</code> <code>Table</code>.
2604   * 
2605   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2606   * @return the height <code>Column</code>
2607   */
2608   public final Column getHeightColumn() {
2609     return col_height;
2610   }
2611 
2612 
2613  /**
2614   * Retrieves the <code>Depth</code> <code>Column</code> for this 
2615   * <code>Product</code> <code>Table</code>.
2616   * 
2617   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2618   * @return the depth <code>Column</code>
2619   */
2620   public final Column getDepthColumn() {
2621     return col_depth;
2622   }
2623 
2624 
2625  /**
2626   * Retrieves the <code>Picture</code> <code>Column</code> for this 
2627   * <code>Product</code> <code>Table</code>.
2628   * 
2629   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2630   * @return the picture <code>Column</code>
2631   */
2632   public final Column getPictureColumn() {
2633     return col_picture;
2634   }
2635 
2636 
2637  /**
2638   * Retrieves the <code>Picture2</code> <code>Column</code> for this 
2639   * <code>Product</code> <code>Table</code>.
2640   * 
2641   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2642   * @return the picture2 <code>Column</code>
2643   */
2644   public final Column getPicture2Column() {
2645     return col_picture2;
2646   }
2647 
2648 
2649  /**
2650   * Retrieves the <code>Catalogue</code> <code>Column</code> for this 
2651   * <code>Product</code> <code>Table</code>.
2652   * 
2653   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2654   * @return the catalogue <code>Column</code>
2655   */
2656   public final Column getCatalogueColumn() {
2657     return col_catalogue;
2658   }
2659 
2660 
2661  /**
2662   * Retrieves the <code>Deleted</code> <code>Column</code> for this 
2663   * <code>Product</code> <code>Table</code>.
2664   * 
2665   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2666   * @return the deleted <code>Column</code>
2667   */
2668   public final Column getDeletedColumn() {
2669     return col_deleted;
2670   }
2671 
2672 
2673  /**
2674   * Retrieves the <code>Award</code> <code>Column</code> for this 
2675   * <code>Product</code> <code>Table</code>.
2676   * 
2677   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2678   * @return the award <code>Column</code>
2679   */
2680   public final Column getAwardColumn() {
2681     return col_award;
2682   }
2683 
2684 
2685  /**
2686   * Retrieves the <code>Onorderquantity</code> <code>Column</code> for this 
2687   * <code>Product</code> <code>Table</code>.
2688   * 
2689   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
2690   * @return the onorderquantity <code>Column</code>
2691   */
2692   public final Column getOnorderquantityColumn() {
2693     return col_onorderquantity;
2694   }
2695 
2696 
2697  /**
2698   * Retrieve the <code>Product</code> as a <code>Product</code>.
2699   *
2700   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
2701   * @param troid a Table Row Oject ID
2702   * @return the <code>Persistent</code> identified by the <code>troid</code>
2703   */
2704   public Product getProductObject(Integer troid) {
2705     return (Product)getObject(troid);
2706   }
2707 
2708 
2709  /**
2710   * Retrieve the <code>Product</code> 
2711   * as a <code>Product</code>.
2712   *
2713   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
2714   * @param troid a Table Row Object ID
2715   * @return the <code>Persistent</code> identified   */
2716   public Product getProductObject(int troid) {
2717     return (Product)getObject(troid);
2718   }
2719 
2720   protected JdbcPersistent _newPersistent() {
2721     return new Product();
2722   }
2723   protected String defaultDisplayName() {
2724     return "Products";
2725   }
2726 
2727   protected String defaultDescription() {
2728     return "JammyJoes Products";
2729   }
2730 
2731   protected boolean defaultRememberAllTroids() {
2732     return true;
2733   }
2734 
2735   protected Integer defaultCacheLimit() {
2736     return new Integer(999999999);
2737   }
2738 
2739   protected String defaultCategory() {
2740     return "Data";
2741   }
2742 
2743   protected int defaultDisplayOrder() {
2744     return 10;
2745   }
2746 }
2747