View Javadoc

1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.paneris.bibliomania.generated;
4   
5   
6   import org.melati.poem.AccessPoemException;
7   import org.melati.poem.Column;
8   import org.melati.poem.Database;
9   import org.melati.poem.DefinitionSource;
10  import org.melati.poem.DeletedPoemType;
11  import org.melati.poem.DisplayLevel;
12  import org.melati.poem.DoublePoemType;
13  import org.melati.poem.Field;
14  import org.melati.poem.JdbcPersistent;
15  import org.melati.poem.Persistent;
16  import org.melati.poem.PoemException;
17  import org.melati.poem.ReferencePoemType;
18  import org.melati.poem.Searchability;
19  import org.melati.poem.StandardIntegrityFix;
20  import org.melati.poem.StringPoemType;
21  import org.melati.poem.TroidPoemType;
22  import org.melati.poem.ValidationPoemException;
23  import org.paneris.bibliomania.BibliomaniaDatabaseTables;
24  import org.paneris.bibliomania.BibliomaniaTable;
25  import org.paneris.bibliomania.Book;
26  import org.paneris.bibliomania.BookFormat;
27  import org.paneris.bibliomania.Download;
28  import org.paneris.bibliomania.Product;
29  import org.paneris.bibliomania.Publisher;
30  
31  
32  /**
33   * Melati POEM generated base class for <code>Table</code> <code>Product</code>.
34   *
35   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
36   */
37  
38  public class ProductTableBase<T extends Product> extends BibliomaniaTable<T> {
39  
40    private Column<Integer> col_id = null;
41    private Column<Integer> col_book = null;
42    private Column<Integer> col_publisher = null;
43    private Column<Integer> col_download = null;
44    private Column<String> col_name = null;
45    private Column<String> col_description = null;
46    private Column<Double> col_price = null;
47    private Column<Double> col_listprice = null;
48    private Column<String> col_ISBN = null;
49    private Column<String> col_picture = null;
50    private Column<Boolean> col_deleted = null;
51    private Column<Integer> col_format = null;
52  
53   /**
54    * Constructor. 
55    * 
56    * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
57    * @param database          the POEM database we are using
58    * @param name              the name of this <code>Table</code>
59    * @param definitionSource  which definition is being used
60    * @throws PoemException    if anything goes wrong
61    */
62  
63    public ProductTableBase(
64        Database database, String name,
65        DefinitionSource definitionSource) throws PoemException {
66      super(database, name, definitionSource);
67    }
68  
69  
70   /**
71    * Get the database tables.
72    *
73    * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
74    * @return the database tables
75    */
76    public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() {
77      return (BibliomaniaDatabaseTables)getDatabase();
78    }
79  
80  
81   /**
82    * Initialise this table by defining its columns.
83    *
84    * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
85    */
86    public void init() throws PoemException {
87      super.init();
88      defineColumn(col_id =
89          new Column<Integer>(this, "id",
90                     new TroidPoemType(),
91                     DefinitionSource.dsd) { 
92            public Object getCooked(Persistent g)
93                throws AccessPoemException, PoemException {
94              return ((Product)g).getId();
95            }
96  
97            public void setCooked(Persistent g, Object cooked)
98                throws AccessPoemException, ValidationPoemException {
99              ((Product)g).setId((Integer)cooked);
100           }
101 
102           public Field<Integer> asField(Persistent g) {
103             return ((Product)g).getIdField();
104           }
105 
106           public boolean defaultUserEditable() {
107             return false;
108           }
109 
110           public boolean defaultUserCreateable() {
111             return false;
112           }
113 
114           public DisplayLevel defaultDisplayLevel() {
115             return DisplayLevel.summary;
116           }
117 
118           public Searchability defaultSearchability() {
119             return Searchability.yes;
120           }
121 
122           public int defaultDisplayOrder() {
123             return 0;
124           }
125 
126           public Object getRaw_unsafe(Persistent g)
127               throws AccessPoemException {
128             return ((Product)g).getId_unsafe();
129           }
130 
131           public void setRaw_unsafe(Persistent g, Object raw)
132               throws AccessPoemException {
133             ((Product)g).setId_unsafe((Integer)raw);
134           }
135 
136           public Object getRaw(Persistent g)
137               throws AccessPoemException {
138             return ((Product)g).getId();
139           }
140 
141           public void setRaw(Persistent g, Object raw)
142               throws AccessPoemException {
143             ((Product)g).setId((Integer)raw);
144           }
145         });
146 
147     defineColumn(col_book =
148         new Column<Integer>(this, "book",
149                    new ReferencePoemType(getBibliomaniaDatabaseTables().
150                                              getBookTable(), false),
151                    DefinitionSource.dsd) { 
152           public Object getCooked(Persistent g)
153               throws AccessPoemException, PoemException {
154             return ((Product)g).getBook();
155           }
156 
157           public void setCooked(Persistent g, Object cooked)
158               throws AccessPoemException, ValidationPoemException {
159             ((Product)g).setBook((Book)cooked);
160           }
161 
162           public Field<Integer> asField(Persistent g) {
163             return ((Product)g).getBookField();
164           }
165 
166           public DisplayLevel defaultDisplayLevel() {
167             return DisplayLevel.primary;
168           }
169 
170           public Searchability defaultSearchability() {
171             return Searchability.primary;
172           }
173 
174           public int defaultDisplayOrder() {
175             return 1;
176           }
177 
178           public String defaultDescription() {
179             return "The book to be sold";
180           }
181 
182           public boolean defaultIndexed() {
183             return true;
184           }
185 
186           public String defaultRenderinfo() {
187             return "SelectionWindow";
188           }
189 
190           public Object getRaw_unsafe(Persistent g)
191               throws AccessPoemException {
192             return ((Product)g).getBook_unsafe();
193           }
194 
195           public void setRaw_unsafe(Persistent g, Object raw)
196               throws AccessPoemException {
197             ((Product)g).setBook_unsafe((Integer)raw);
198           }
199 
200           public Object getRaw(Persistent g)
201               throws AccessPoemException {
202             return ((Product)g).getBookTroid();
203           }
204 
205           public void setRaw(Persistent g, Object raw)
206               throws AccessPoemException {
207             ((Product)g).setBookTroid((Integer)raw);
208           }
209 
210           public StandardIntegrityFix defaultIntegrityFix() {
211             return StandardIntegrityFix.delete;
212           }
213         });
214 
215     defineColumn(col_publisher =
216         new Column<Integer>(this, "publisher",
217                    new ReferencePoemType(getBibliomaniaDatabaseTables().
218                                              getPublisherTable(), true),
219                    DefinitionSource.dsd) { 
220           public Object getCooked(Persistent g)
221               throws AccessPoemException, PoemException {
222             return ((Product)g).getPublisher();
223           }
224 
225           public void setCooked(Persistent g, Object cooked)
226               throws AccessPoemException, ValidationPoemException {
227             ((Product)g).setPublisher((Publisher)cooked);
228           }
229 
230           public Field<Integer> asField(Persistent g) {
231             return ((Product)g).getPublisherField();
232           }
233 
234           public DisplayLevel defaultDisplayLevel() {
235             return DisplayLevel.record;
236           }
237 
238           public Searchability defaultSearchability() {
239             return Searchability.yes;
240           }
241 
242           public int defaultDisplayOrder() {
243             return 2;
244           }
245 
246           public String defaultDescription() {
247             return "The publisher for this product";
248           }
249 
250           public boolean defaultIndexed() {
251             return true;
252           }
253 
254           public Object getRaw_unsafe(Persistent g)
255               throws AccessPoemException {
256             return ((Product)g).getPublisher_unsafe();
257           }
258 
259           public void setRaw_unsafe(Persistent g, Object raw)
260               throws AccessPoemException {
261             ((Product)g).setPublisher_unsafe((Integer)raw);
262           }
263 
264           public Object getRaw(Persistent g)
265               throws AccessPoemException {
266             return ((Product)g).getPublisherTroid();
267           }
268 
269           public void setRaw(Persistent g, Object raw)
270               throws AccessPoemException {
271             ((Product)g).setPublisherTroid((Integer)raw);
272           }
273         });
274 
275     defineColumn(col_download =
276         new Column<Integer>(this, "download",
277                    new ReferencePoemType(getBibliomaniaDatabaseTables().
278                                              getDownloadTable(), true),
279                    DefinitionSource.dsd) { 
280           public Object getCooked(Persistent g)
281               throws AccessPoemException, PoemException {
282             return ((Product)g).getDownload();
283           }
284 
285           public void setCooked(Persistent g, Object cooked)
286               throws AccessPoemException, ValidationPoemException {
287             ((Product)g).setDownload((Download)cooked);
288           }
289 
290           public Field<Integer> asField(Persistent g) {
291             return ((Product)g).getDownloadField();
292           }
293 
294           public DisplayLevel defaultDisplayLevel() {
295             return DisplayLevel.record;
296           }
297 
298           public Searchability defaultSearchability() {
299             return Searchability.yes;
300           }
301 
302           public int defaultDisplayOrder() {
303             return 3;
304           }
305 
306           public String defaultDescription() {
307             return "The download object for this product (if any)";
308           }
309 
310           public Object getRaw_unsafe(Persistent g)
311               throws AccessPoemException {
312             return ((Product)g).getDownload_unsafe();
313           }
314 
315           public void setRaw_unsafe(Persistent g, Object raw)
316               throws AccessPoemException {
317             ((Product)g).setDownload_unsafe((Integer)raw);
318           }
319 
320           public Object getRaw(Persistent g)
321               throws AccessPoemException {
322             return ((Product)g).getDownloadTroid();
323           }
324 
325           public void setRaw(Persistent g, Object raw)
326               throws AccessPoemException {
327             ((Product)g).setDownloadTroid((Integer)raw);
328           }
329         });
330 
331     defineColumn(col_name =
332         new Column<String>(this, "name",
333                    new StringPoemType(true, -1),
334                    DefinitionSource.dsd) { 
335           public Object getCooked(Persistent g)
336               throws AccessPoemException, PoemException {
337             return ((Product)g).getName();
338           }
339 
340           public void setCooked(Persistent g, Object cooked)
341               throws AccessPoemException, ValidationPoemException {
342             ((Product)g).setName((String)cooked);
343           }
344 
345           public Field<String> asField(Persistent g) {
346             return ((Product)g).getNameField();
347           }
348 
349           public DisplayLevel defaultDisplayLevel() {
350             return DisplayLevel.summary;
351           }
352 
353           public Searchability defaultSearchability() {
354             return Searchability.yes;
355           }
356 
357           public String defaultDisplayName() {
358             return "Product Name";
359           }
360 
361           public int defaultDisplayOrder() {
362             return 4;
363           }
364 
365           public String defaultDescription() {
366             return "A name for this product if different to the Book title";
367           }
368 
369           public int defaultWidth() {
370             return 20;
371           }
372 
373           public Object getRaw_unsafe(Persistent g)
374               throws AccessPoemException {
375             return ((Product)g).getName_unsafe();
376           }
377 
378           public void setRaw_unsafe(Persistent g, Object raw)
379               throws AccessPoemException {
380             ((Product)g).setName_unsafe((String)raw);
381           }
382 
383           public Object getRaw(Persistent g)
384               throws AccessPoemException {
385             return ((Product)g).getName();
386           }
387 
388           public void setRaw(Persistent g, Object raw)
389               throws AccessPoemException {
390             ((Product)g).setName((String)raw);
391           }
392         });
393 
394     defineColumn(col_description =
395         new Column<String>(this, "description",
396                    new StringPoemType(true, -1),
397                    DefinitionSource.dsd) { 
398           public Object getCooked(Persistent g)
399               throws AccessPoemException, PoemException {
400             return ((Product)g).getDescription();
401           }
402 
403           public void setCooked(Persistent g, Object cooked)
404               throws AccessPoemException, ValidationPoemException {
405             ((Product)g).setDescription((String)cooked);
406           }
407 
408           public Field<String> asField(Persistent g) {
409             return ((Product)g).getDescriptionField();
410           }
411 
412           public DisplayLevel defaultDisplayLevel() {
413             return DisplayLevel.record;
414           }
415 
416           public Searchability defaultSearchability() {
417             return Searchability.yes;
418           }
419 
420           public String defaultDisplayName() {
421             return "Description";
422           }
423 
424           public int defaultDisplayOrder() {
425             return 5;
426           }
427 
428           public String defaultDescription() {
429             return "Additional blurb about the product ";
430           }
431 
432           public int defaultWidth() {
433             return 40;
434           }
435 
436           public int defaultHeight() {
437             return 8;
438           }
439 
440           public Object getRaw_unsafe(Persistent g)
441               throws AccessPoemException {
442             return ((Product)g).getDescription_unsafe();
443           }
444 
445           public void setRaw_unsafe(Persistent g, Object raw)
446               throws AccessPoemException {
447             ((Product)g).setDescription_unsafe((String)raw);
448           }
449 
450           public Object getRaw(Persistent g)
451               throws AccessPoemException {
452             return ((Product)g).getDescription();
453           }
454 
455           public void setRaw(Persistent g, Object raw)
456               throws AccessPoemException {
457             ((Product)g).setDescription((String)raw);
458           }
459         });
460 
461     defineColumn(col_price =
462         new Column<Double>(this, "price",
463                    new DoublePoemType(false),
464                    DefinitionSource.dsd) { 
465           public Object getCooked(Persistent g)
466               throws AccessPoemException, PoemException {
467             return ((Product)g).getPrice();
468           }
469 
470           public void setCooked(Persistent g, Object cooked)
471               throws AccessPoemException, ValidationPoemException {
472             ((Product)g).setPrice((Double)cooked);
473           }
474 
475           public Field<Double> asField(Persistent g) {
476             return ((Product)g).getPriceField();
477           }
478 
479           public DisplayLevel defaultDisplayLevel() {
480             return DisplayLevel.record;
481           }
482 
483           public Searchability defaultSearchability() {
484             return Searchability.no;
485           }
486 
487           public String defaultDisplayName() {
488             return "Retail Price";
489           }
490 
491           public int defaultDisplayOrder() {
492             return 6;
493           }
494 
495           public String defaultDescription() {
496             return "Price payable by the customer, including discounts, excluding delivery";
497           }
498 
499           public Object getRaw_unsafe(Persistent g)
500               throws AccessPoemException {
501             return ((Product)g).getPrice_unsafe();
502           }
503 
504           public void setRaw_unsafe(Persistent g, Object raw)
505               throws AccessPoemException {
506             ((Product)g).setPrice_unsafe((Double)raw);
507           }
508 
509           public Object getRaw(Persistent g)
510               throws AccessPoemException {
511             return ((Product)g).getPrice();
512           }
513 
514           public void setRaw(Persistent g, Object raw)
515               throws AccessPoemException {
516             ((Product)g).setPrice((Double)raw);
517           }
518         });
519 
520     defineColumn(col_listprice =
521         new Column<Double>(this, "listprice",
522                    new DoublePoemType(true),
523                    DefinitionSource.dsd) { 
524           public Object getCooked(Persistent g)
525               throws AccessPoemException, PoemException {
526             return ((Product)g).getListprice();
527           }
528 
529           public void setCooked(Persistent g, Object cooked)
530               throws AccessPoemException, ValidationPoemException {
531             ((Product)g).setListprice((Double)cooked);
532           }
533 
534           public Field<Double> asField(Persistent g) {
535             return ((Product)g).getListpriceField();
536           }
537 
538           public DisplayLevel defaultDisplayLevel() {
539             return DisplayLevel.record;
540           }
541 
542           public Searchability defaultSearchability() {
543             return Searchability.no;
544           }
545 
546           public String defaultDisplayName() {
547             return "List Price";
548           }
549 
550           public int defaultDisplayOrder() {
551             return 7;
552           }
553 
554           public String defaultDescription() {
555             return "The normal selling price of the product, not including delivery";
556           }
557 
558           public Object getRaw_unsafe(Persistent g)
559               throws AccessPoemException {
560             return ((Product)g).getListprice_unsafe();
561           }
562 
563           public void setRaw_unsafe(Persistent g, Object raw)
564               throws AccessPoemException {
565             ((Product)g).setListprice_unsafe((Double)raw);
566           }
567 
568           public Object getRaw(Persistent g)
569               throws AccessPoemException {
570             return ((Product)g).getListprice();
571           }
572 
573           public void setRaw(Persistent g, Object raw)
574               throws AccessPoemException {
575             ((Product)g).setListprice((Double)raw);
576           }
577         });
578 
579     defineColumn(col_ISBN =
580         new Column<String>(this, "ISBN",
581                    new StringPoemType(true, -1),
582                    DefinitionSource.dsd) { 
583           public Object getCooked(Persistent g)
584               throws AccessPoemException, PoemException {
585             return ((Product)g).getISBN();
586           }
587 
588           public void setCooked(Persistent g, Object cooked)
589               throws AccessPoemException, ValidationPoemException {
590             ((Product)g).setISBN((String)cooked);
591           }
592 
593           public Field<String> asField(Persistent g) {
594             return ((Product)g).getISBNField();
595           }
596 
597           public DisplayLevel defaultDisplayLevel() {
598             return DisplayLevel.record;
599           }
600 
601           public Searchability defaultSearchability() {
602             return Searchability.yes;
603           }
604 
605           public String defaultDisplayName() {
606             return "ISBN";
607           }
608 
609           public int defaultDisplayOrder() {
610             return 8;
611           }
612 
613           public String defaultDescription() {
614             return "The ISBN number of this product (if any)";
615           }
616 
617           public int defaultWidth() {
618             return 40;
619           }
620 
621           public Object getRaw_unsafe(Persistent g)
622               throws AccessPoemException {
623             return ((Product)g).getISBN_unsafe();
624           }
625 
626           public void setRaw_unsafe(Persistent g, Object raw)
627               throws AccessPoemException {
628             ((Product)g).setISBN_unsafe((String)raw);
629           }
630 
631           public Object getRaw(Persistent g)
632               throws AccessPoemException {
633             return ((Product)g).getISBN();
634           }
635 
636           public void setRaw(Persistent g, Object raw)
637               throws AccessPoemException {
638             ((Product)g).setISBN((String)raw);
639           }
640         });
641 
642     defineColumn(col_picture =
643         new Column<String>(this, "picture",
644                    new StringPoemType(true, -1),
645                    DefinitionSource.dsd) { 
646           public Object getCooked(Persistent g)
647               throws AccessPoemException, PoemException {
648             return ((Product)g).getPicture();
649           }
650 
651           public void setCooked(Persistent g, Object cooked)
652               throws AccessPoemException, ValidationPoemException {
653             ((Product)g).setPicture((String)cooked);
654           }
655 
656           public Field<String> asField(Persistent g) {
657             return ((Product)g).getPictureField();
658           }
659 
660           public DisplayLevel defaultDisplayLevel() {
661             return DisplayLevel.record;
662           }
663 
664           public Searchability defaultSearchability() {
665             return Searchability.no;
666           }
667 
668           public String defaultDisplayName() {
669             return "Picture";
670           }
671 
672           public int defaultDisplayOrder() {
673             return 9;
674           }
675 
676           public String defaultDescription() {
677             return "A jacket cover image or similar";
678           }
679 
680           public int defaultWidth() {
681             return 20;
682           }
683 
684           public String defaultRenderinfo() {
685             return "Upload";
686           }
687 
688           public Object getRaw_unsafe(Persistent g)
689               throws AccessPoemException {
690             return ((Product)g).getPicture_unsafe();
691           }
692 
693           public void setRaw_unsafe(Persistent g, Object raw)
694               throws AccessPoemException {
695             ((Product)g).setPicture_unsafe((String)raw);
696           }
697 
698           public Object getRaw(Persistent g)
699               throws AccessPoemException {
700             return ((Product)g).getPicture();
701           }
702 
703           public void setRaw(Persistent g, Object raw)
704               throws AccessPoemException {
705             ((Product)g).setPicture((String)raw);
706           }
707         });
708 
709     defineColumn(col_deleted =
710         new Column<Boolean>(this, "deleted",
711                    new DeletedPoemType(),
712                    DefinitionSource.dsd) { 
713           public Object getCooked(Persistent g)
714               throws AccessPoemException, PoemException {
715             return ((Product)g).getDeleted();
716           }
717 
718           public void setCooked(Persistent g, Object cooked)
719               throws AccessPoemException, ValidationPoemException {
720             ((Product)g).setDeleted((Boolean)cooked);
721           }
722 
723           public Field<Boolean> asField(Persistent g) {
724             return ((Product)g).getDeletedField();
725           }
726 
727           public DisplayLevel defaultDisplayLevel() {
728             return DisplayLevel.record;
729           }
730 
731           public Searchability defaultSearchability() {
732             return Searchability.no;
733           }
734 
735           public String defaultDisplayName() {
736             return "Deleted?";
737           }
738 
739           public int defaultDisplayOrder() {
740             return 10;
741           }
742 
743           public Object getRaw_unsafe(Persistent g)
744               throws AccessPoemException {
745             return ((Product)g).getDeleted_unsafe();
746           }
747 
748           public void setRaw_unsafe(Persistent g, Object raw)
749               throws AccessPoemException {
750             ((Product)g).setDeleted_unsafe((Boolean)raw);
751           }
752 
753           public Object getRaw(Persistent g)
754               throws AccessPoemException {
755             return ((Product)g).getDeleted();
756           }
757 
758           public void setRaw(Persistent g, Object raw)
759               throws AccessPoemException {
760             ((Product)g).setDeleted((Boolean)raw);
761           }
762         });
763 
764     defineColumn(col_format =
765         new Column<Integer>(this, "format",
766                    new ReferencePoemType(getBibliomaniaDatabaseTables().
767                                              getBookFormatTable(), true),
768                    DefinitionSource.dsd) { 
769           public Object getCooked(Persistent g)
770               throws AccessPoemException, PoemException {
771             return ((Product)g).getFormat();
772           }
773 
774           public void setCooked(Persistent g, Object cooked)
775               throws AccessPoemException, ValidationPoemException {
776             ((Product)g).setFormat((BookFormat)cooked);
777           }
778 
779           public Field<Integer> asField(Persistent g) {
780             return ((Product)g).getFormatField();
781           }
782 
783           public DisplayLevel defaultDisplayLevel() {
784             return DisplayLevel.record;
785           }
786 
787           public Searchability defaultSearchability() {
788             return Searchability.yes;
789           }
790 
791           public int defaultDisplayOrder() {
792             return 11;
793           }
794 
795           public String defaultDescription() {
796             return "The type of the product";
797           }
798 
799           public Object getRaw_unsafe(Persistent g)
800               throws AccessPoemException {
801             return ((Product)g).getFormat_unsafe();
802           }
803 
804           public void setRaw_unsafe(Persistent g, Object raw)
805               throws AccessPoemException {
806             ((Product)g).setFormat_unsafe((Integer)raw);
807           }
808 
809           public Object getRaw(Persistent g)
810               throws AccessPoemException {
811             return ((Product)g).getFormatTroid();
812           }
813 
814           public void setRaw(Persistent g, Object raw)
815               throws AccessPoemException {
816             ((Product)g).setFormatTroid((Integer)raw);
817           }
818         });
819   }
820 
821 
822  /**
823   * Retrieves the <code>Id</code> <code>Column</code> for this 
824   * <code>Product</code> <code>Table</code>.
825   * 
826   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
827   * @return the id <code>Column</code>
828   */
829   public final Column<Integer> getIdColumn() {
830     return col_id;
831   }
832 
833 
834  /**
835   * Retrieves the <code>Book</code> <code>Column</code> for this 
836   * <code>Product</code> <code>Table</code>.
837   * 
838   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
839   * @return the book <code>Column</code>
840   */
841   public final Column<Integer> getBookColumn() {
842     return col_book;
843   }
844 
845 
846  /**
847   * Retrieves the <code>Publisher</code> <code>Column</code> for this 
848   * <code>Product</code> <code>Table</code>.
849   * 
850   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
851   * @return the publisher <code>Column</code>
852   */
853   public final Column<Integer> getPublisherColumn() {
854     return col_publisher;
855   }
856 
857 
858  /**
859   * Retrieves the <code>Download</code> <code>Column</code> for this 
860   * <code>Product</code> <code>Table</code>.
861   * 
862   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
863   * @return the download <code>Column</code>
864   */
865   public final Column<Integer> getDownloadColumn() {
866     return col_download;
867   }
868 
869 
870  /**
871   * Retrieves the <code>Name</code> <code>Column</code> for this 
872   * <code>Product</code> <code>Table</code>.
873   * 
874   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
875   * @return the name <code>Column</code>
876   */
877   public final Column<String> getNameColumn() {
878     return col_name;
879   }
880 
881 
882  /**
883   * Retrieves the <code>Description</code> <code>Column</code> for this 
884   * <code>Product</code> <code>Table</code>.
885   * 
886   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
887   * @return the description <code>Column</code>
888   */
889   public final Column<String> getDescriptionColumn() {
890     return col_description;
891   }
892 
893 
894  /**
895   * Retrieves the <code>Price</code> <code>Column</code> for this 
896   * <code>Product</code> <code>Table</code>.
897   * 
898   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
899   * @return the price <code>Column</code>
900   */
901   public final Column<Double> getPriceColumn() {
902     return col_price;
903   }
904 
905 
906  /**
907   * Retrieves the <code>Listprice</code> <code>Column</code> for this 
908   * <code>Product</code> <code>Table</code>.
909   * 
910   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
911   * @return the listprice <code>Column</code>
912   */
913   public final Column<Double> getListpriceColumn() {
914     return col_listprice;
915   }
916 
917 
918  /**
919   * Retrieves the <code>ISBN</code> <code>Column</code> for this 
920   * <code>Product</code> <code>Table</code>.
921   * 
922   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
923   * @return the ISBN <code>Column</code>
924   */
925   public final Column<String> getISBNColumn() {
926     return col_ISBN;
927   }
928 
929 
930  /**
931   * Retrieves the <code>Picture</code> <code>Column</code> for this 
932   * <code>Product</code> <code>Table</code>.
933   * 
934   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
935   * @return the picture <code>Column</code>
936   */
937   public final Column<String> getPictureColumn() {
938     return col_picture;
939   }
940 
941 
942  /**
943   * Retrieves the <code>Deleted</code> <code>Column</code> for this 
944   * <code>Product</code> <code>Table</code>.
945   * 
946   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
947   * @return the deleted <code>Column</code>
948   */
949   public final Column<Boolean> getDeletedColumn() {
950     return col_deleted;
951   }
952 
953 
954  /**
955   * Retrieves the <code>Format</code> <code>Column</code> for this 
956   * <code>Product</code> <code>Table</code>.
957   * 
958   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
959   * @return the format <code>Column</code>
960   */
961   public final Column<Integer> getFormatColumn() {
962     return col_format;
963   }
964 
965 
966  /**
967   * Retrieve the <code>Product</code> as a <code>Product</code>.
968   *
969   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
970   * @param troid a Table Row Oject ID
971   * @return the <code>Persistent</code> identified by the <code>troid</code>
972   */
973   public Product getProductObject(Integer troid) {
974     return (Product)getObject(troid);
975   }
976 
977 
978  /**
979   * Retrieve the <code>Product</code> 
980   * as a <code>Product</code>.
981   *
982   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
983   * @param troid a Table Row Object ID
984   * @return the <code>Persistent</code> identified   */
985   public Product getProductObject(int troid) {
986     return (Product)getObject(troid);
987   }
988 
989   protected JdbcPersistent _newPersistent() {
990     return new Product();
991   }
992   public String defaultDisplayName() {
993     return "Product";
994   }
995 
996   public String defaultDescription() {
997     return "A Bibliomania Product";
998   }
999 
1000   public boolean defaultRememberAllTroids() {
1001     return true;
1002   }
1003 
1004   public Integer defaultCacheLimit() {
1005     return new Integer(999999999);
1006   }
1007 
1008   public String defaultCategory() {
1009     return "Shop";
1010   }
1011 
1012   public int defaultDisplayOrder() {
1013     return 1201;
1014   }
1015 }
1016