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.JdbcPersistent;
14  import org.melati.poem.Persistent;
15  import org.melati.poem.PoemException;
16  import org.melati.poem.Searchability;
17  import org.melati.poem.StringPoemType;
18  import org.melati.poem.TroidPoemType;
19  import org.melati.poem.ValidationPoemException;
20  import org.paneris.jammyjoes.model.JammyjoesDatabaseTables;
21  import org.paneris.jammyjoes.model.JammyjoesTable;
22  import org.paneris.jammyjoes.model.Supplier;
23  
24  
25  /**
26   * Melati POEM generated base class for 
27  <code>Table</code> <code>Supplier</code>.
28   *
29   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
30   */
31  
32  public class SupplierTableBase extends JammyjoesTable {
33  
34    private Column col_id = null;
35    private Column col_name = null;
36    private Column col_address = null;
37    private Column col_profile = null;
38    private Column col_contact = null;
39    private Column col_email = null;
40    private Column col_website = null;
41    private Column col_comment = null;
42    private Column col_minimumamount = null;
43    private Column col_tel = null;
44    private Column col_fax = null;
45    private Column col_minimumorder = null;
46    private Column col_deleted = null;
47  
48   /**
49    * Constructor. 
50    * 
51    * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
52    * @param database          the POEM database we are using
53    * @param name              the name of this <code>Table</code>
54    * @param definitionSource  which definition is being used
55    * @throws PoemException    if anything goes wrong
56    */
57  
58    public SupplierTableBase(
59        Database database, String name,
60        DefinitionSource definitionSource) throws PoemException {
61      super(database, name, definitionSource);
62    }
63  
64  
65   /**
66    * Get the database tables.
67    *
68    * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
69    * @return the database tables
70    */
71    public JammyjoesDatabaseTables getJammyjoesDatabaseTables() {
72      return (JammyjoesDatabaseTables)getDatabase();
73    }
74  
75    public void init() throws PoemException {
76      super.init();
77      defineColumn(col_id =
78          new Column(this, "id",
79                     new TroidPoemType(),
80                     DefinitionSource.dsd) { 
81            public Object getCooked(Persistent g)
82                throws AccessPoemException, PoemException {
83              return ((Supplier)g).getId();
84            }
85  
86            public void setCooked(Persistent g, Object cooked)
87                throws AccessPoemException, ValidationPoemException {
88              ((Supplier)g).setId((Integer)cooked);
89            }
90  
91            public Field asField(Persistent g) {
92              return ((Supplier)g).getIdField();
93            }
94  
95            protected boolean defaultUserEditable() {
96              return false;
97            }
98  
99            protected boolean defaultUserCreateable() {
100             return false;
101           }
102 
103           protected DisplayLevel defaultDisplayLevel() {
104             return DisplayLevel.record;
105           }
106 
107           protected Searchability defaultSearchability() {
108             return Searchability.no;
109           }
110 
111           protected int defaultDisplayOrder() {
112             return 0;
113           }
114 
115           public Object getRaw_unsafe(Persistent g)
116               throws AccessPoemException {
117             return ((Supplier)g).getId_unsafe();
118           }
119 
120           public void setRaw_unsafe(Persistent g, Object raw)
121               throws AccessPoemException {
122             ((Supplier)g).setId_unsafe((Integer)raw);
123           }
124 
125           public Object getRaw(Persistent g)
126               throws AccessPoemException {
127             return ((Supplier)g).getId();
128           }
129 
130           public void setRaw(Persistent g, Object raw)
131               throws AccessPoemException {
132             ((Supplier)g).setId((Integer)raw);
133           }
134         });
135 
136     defineColumn(col_name =
137         new Column(this, "name",
138                    new StringPoemType(false, -1),
139                    DefinitionSource.dsd) { 
140           public Object getCooked(Persistent g)
141               throws AccessPoemException, PoemException {
142             return ((Supplier)g).getName();
143           }
144 
145           public void setCooked(Persistent g, Object cooked)
146               throws AccessPoemException, ValidationPoemException {
147             ((Supplier)g).setName((String)cooked);
148           }
149 
150           public Field asField(Persistent g) {
151             return ((Supplier)g).getNameField();
152           }
153 
154           protected DisplayLevel defaultDisplayLevel() {
155             return DisplayLevel.primary;
156           }
157 
158           protected Searchability defaultSearchability() {
159             return Searchability.yes;
160           }
161 
162           protected Integer defaultDisplayOrderPriority() {
163             return new Integer(1);
164           }
165 
166           protected String defaultDisplayName() {
167             return "Name";
168           }
169 
170           protected int defaultDisplayOrder() {
171             return 1;
172           }
173 
174           protected boolean defaultUnique() {
175             return true;
176           }
177 
178           protected int defaultWidth() {
179             return 20;
180           }
181 
182           public Object getRaw_unsafe(Persistent g)
183               throws AccessPoemException {
184             return ((Supplier)g).getName_unsafe();
185           }
186 
187           public void setRaw_unsafe(Persistent g, Object raw)
188               throws AccessPoemException {
189             ((Supplier)g).setName_unsafe((String)raw);
190           }
191 
192           public Object getRaw(Persistent g)
193               throws AccessPoemException {
194             return ((Supplier)g).getName();
195           }
196 
197           public void setRaw(Persistent g, Object raw)
198               throws AccessPoemException {
199             ((Supplier)g).setName((String)raw);
200           }
201         });
202 
203     defineColumn(col_address =
204         new Column(this, "address",
205                    new StringPoemType(true, -1),
206                    DefinitionSource.dsd) { 
207           public Object getCooked(Persistent g)
208               throws AccessPoemException, PoemException {
209             return ((Supplier)g).getAddress();
210           }
211 
212           public void setCooked(Persistent g, Object cooked)
213               throws AccessPoemException, ValidationPoemException {
214             ((Supplier)g).setAddress((String)cooked);
215           }
216 
217           public Field asField(Persistent g) {
218             return ((Supplier)g).getAddressField();
219           }
220 
221           protected DisplayLevel defaultDisplayLevel() {
222             return DisplayLevel.record;
223           }
224 
225           protected Searchability defaultSearchability() {
226             return Searchability.no;
227           }
228 
229           protected String defaultDisplayName() {
230             return "Address";
231           }
232 
233           protected int defaultDisplayOrder() {
234             return 2;
235           }
236 
237           protected int defaultWidth() {
238             return 20;
239           }
240 
241           protected int defaultHeight() {
242             return 5;
243           }
244 
245           public Object getRaw_unsafe(Persistent g)
246               throws AccessPoemException {
247             return ((Supplier)g).getAddress_unsafe();
248           }
249 
250           public void setRaw_unsafe(Persistent g, Object raw)
251               throws AccessPoemException {
252             ((Supplier)g).setAddress_unsafe((String)raw);
253           }
254 
255           public Object getRaw(Persistent g)
256               throws AccessPoemException {
257             return ((Supplier)g).getAddress();
258           }
259 
260           public void setRaw(Persistent g, Object raw)
261               throws AccessPoemException {
262             ((Supplier)g).setAddress((String)raw);
263           }
264         });
265 
266     defineColumn(col_profile =
267         new Column(this, "profile",
268                    new StringPoemType(true, -1),
269                    DefinitionSource.dsd) { 
270           public Object getCooked(Persistent g)
271               throws AccessPoemException, PoemException {
272             return ((Supplier)g).getProfile();
273           }
274 
275           public void setCooked(Persistent g, Object cooked)
276               throws AccessPoemException, ValidationPoemException {
277             ((Supplier)g).setProfile((String)cooked);
278           }
279 
280           public Field asField(Persistent g) {
281             return ((Supplier)g).getProfileField();
282           }
283 
284           protected DisplayLevel defaultDisplayLevel() {
285             return DisplayLevel.record;
286           }
287 
288           protected Searchability defaultSearchability() {
289             return Searchability.no;
290           }
291 
292           protected String defaultDisplayName() {
293             return "Profile";
294           }
295 
296           protected int defaultDisplayOrder() {
297             return 3;
298           }
299 
300           protected int defaultWidth() {
301             return 20;
302           }
303 
304           protected int defaultHeight() {
305             return 5;
306           }
307 
308           public Object getRaw_unsafe(Persistent g)
309               throws AccessPoemException {
310             return ((Supplier)g).getProfile_unsafe();
311           }
312 
313           public void setRaw_unsafe(Persistent g, Object raw)
314               throws AccessPoemException {
315             ((Supplier)g).setProfile_unsafe((String)raw);
316           }
317 
318           public Object getRaw(Persistent g)
319               throws AccessPoemException {
320             return ((Supplier)g).getProfile();
321           }
322 
323           public void setRaw(Persistent g, Object raw)
324               throws AccessPoemException {
325             ((Supplier)g).setProfile((String)raw);
326           }
327         });
328 
329     defineColumn(col_contact =
330         new Column(this, "contact",
331                    new StringPoemType(true, -1),
332                    DefinitionSource.dsd) { 
333           public Object getCooked(Persistent g)
334               throws AccessPoemException, PoemException {
335             return ((Supplier)g).getContact();
336           }
337 
338           public void setCooked(Persistent g, Object cooked)
339               throws AccessPoemException, ValidationPoemException {
340             ((Supplier)g).setContact((String)cooked);
341           }
342 
343           public Field asField(Persistent g) {
344             return ((Supplier)g).getContactField();
345           }
346 
347           protected DisplayLevel defaultDisplayLevel() {
348             return DisplayLevel.summary;
349           }
350 
351           protected Searchability defaultSearchability() {
352             return Searchability.yes;
353           }
354 
355           protected String defaultDisplayName() {
356             return "Contact Name";
357           }
358 
359           protected int defaultDisplayOrder() {
360             return 4;
361           }
362 
363           protected int defaultWidth() {
364             return 20;
365           }
366 
367           public Object getRaw_unsafe(Persistent g)
368               throws AccessPoemException {
369             return ((Supplier)g).getContact_unsafe();
370           }
371 
372           public void setRaw_unsafe(Persistent g, Object raw)
373               throws AccessPoemException {
374             ((Supplier)g).setContact_unsafe((String)raw);
375           }
376 
377           public Object getRaw(Persistent g)
378               throws AccessPoemException {
379             return ((Supplier)g).getContact();
380           }
381 
382           public void setRaw(Persistent g, Object raw)
383               throws AccessPoemException {
384             ((Supplier)g).setContact((String)raw);
385           }
386         });
387 
388     defineColumn(col_email =
389         new Column(this, "email",
390                    new StringPoemType(false, -1),
391                    DefinitionSource.dsd) { 
392           public Object getCooked(Persistent g)
393               throws AccessPoemException, PoemException {
394             return ((Supplier)g).getEmail();
395           }
396 
397           public void setCooked(Persistent g, Object cooked)
398               throws AccessPoemException, ValidationPoemException {
399             ((Supplier)g).setEmail((String)cooked);
400           }
401 
402           public Field asField(Persistent g) {
403             return ((Supplier)g).getEmailField();
404           }
405 
406           protected DisplayLevel defaultDisplayLevel() {
407             return DisplayLevel.record;
408           }
409 
410           protected Searchability defaultSearchability() {
411             return Searchability.no;
412           }
413 
414           protected int defaultDisplayOrder() {
415             return 5;
416           }
417 
418           protected String defaultDescription() {
419             return "email";
420           }
421 
422           protected int defaultWidth() {
423             return 40;
424           }
425 
426           public Object getRaw_unsafe(Persistent g)
427               throws AccessPoemException {
428             return ((Supplier)g).getEmail_unsafe();
429           }
430 
431           public void setRaw_unsafe(Persistent g, Object raw)
432               throws AccessPoemException {
433             ((Supplier)g).setEmail_unsafe((String)raw);
434           }
435 
436           public Object getRaw(Persistent g)
437               throws AccessPoemException {
438             return ((Supplier)g).getEmail();
439           }
440 
441           public void setRaw(Persistent g, Object raw)
442               throws AccessPoemException {
443             ((Supplier)g).setEmail((String)raw);
444           }
445         });
446 
447     defineColumn(col_website =
448         new Column(this, "website",
449                    new StringPoemType(true, -1),
450                    DefinitionSource.dsd) { 
451           public Object getCooked(Persistent g)
452               throws AccessPoemException, PoemException {
453             return ((Supplier)g).getWebsite();
454           }
455 
456           public void setCooked(Persistent g, Object cooked)
457               throws AccessPoemException, ValidationPoemException {
458             ((Supplier)g).setWebsite((String)cooked);
459           }
460 
461           public Field asField(Persistent g) {
462             return ((Supplier)g).getWebsiteField();
463           }
464 
465           protected DisplayLevel defaultDisplayLevel() {
466             return DisplayLevel.record;
467           }
468 
469           protected Searchability defaultSearchability() {
470             return Searchability.no;
471           }
472 
473           protected int defaultDisplayOrder() {
474             return 6;
475           }
476 
477           protected String defaultDescription() {
478             return "website";
479           }
480 
481           protected int defaultWidth() {
482             return 40;
483           }
484 
485           public Object getRaw_unsafe(Persistent g)
486               throws AccessPoemException {
487             return ((Supplier)g).getWebsite_unsafe();
488           }
489 
490           public void setRaw_unsafe(Persistent g, Object raw)
491               throws AccessPoemException {
492             ((Supplier)g).setWebsite_unsafe((String)raw);
493           }
494 
495           public Object getRaw(Persistent g)
496               throws AccessPoemException {
497             return ((Supplier)g).getWebsite();
498           }
499 
500           public void setRaw(Persistent g, Object raw)
501               throws AccessPoemException {
502             ((Supplier)g).setWebsite((String)raw);
503           }
504         });
505 
506     defineColumn(col_comment =
507         new Column(this, "comment",
508                    new StringPoemType(true, -1),
509                    DefinitionSource.dsd) { 
510           public Object getCooked(Persistent g)
511               throws AccessPoemException, PoemException {
512             return ((Supplier)g).getComment();
513           }
514 
515           public void setCooked(Persistent g, Object cooked)
516               throws AccessPoemException, ValidationPoemException {
517             ((Supplier)g).setComment((String)cooked);
518           }
519 
520           public Field asField(Persistent g) {
521             return ((Supplier)g).getCommentField();
522           }
523 
524           protected DisplayLevel defaultDisplayLevel() {
525             return DisplayLevel.record;
526           }
527 
528           protected Searchability defaultSearchability() {
529             return Searchability.no;
530           }
531 
532           protected int defaultDisplayOrder() {
533             return 7;
534           }
535 
536           protected String defaultDescription() {
537             return "Comments";
538           }
539 
540           protected int defaultWidth() {
541             return 40;
542           }
543 
544           protected int defaultHeight() {
545             return 10;
546           }
547 
548           public Object getRaw_unsafe(Persistent g)
549               throws AccessPoemException {
550             return ((Supplier)g).getComment_unsafe();
551           }
552 
553           public void setRaw_unsafe(Persistent g, Object raw)
554               throws AccessPoemException {
555             ((Supplier)g).setComment_unsafe((String)raw);
556           }
557 
558           public Object getRaw(Persistent g)
559               throws AccessPoemException {
560             return ((Supplier)g).getComment();
561           }
562 
563           public void setRaw(Persistent g, Object raw)
564               throws AccessPoemException {
565             ((Supplier)g).setComment((String)raw);
566           }
567         });
568 
569     defineColumn(col_minimumamount =
570         new Column(this, "minimumamount",
571                    new DoublePoemType(true),
572                    DefinitionSource.dsd) { 
573           public Object getCooked(Persistent g)
574               throws AccessPoemException, PoemException {
575             return ((Supplier)g).getMinimumamount();
576           }
577 
578           public void setCooked(Persistent g, Object cooked)
579               throws AccessPoemException, ValidationPoemException {
580             ((Supplier)g).setMinimumamount((Double)cooked);
581           }
582 
583           public Field asField(Persistent g) {
584             return ((Supplier)g).getMinimumamountField();
585           }
586 
587           protected DisplayLevel defaultDisplayLevel() {
588             return DisplayLevel.detail;
589           }
590 
591           protected Searchability defaultSearchability() {
592             return Searchability.no;
593           }
594 
595           protected String defaultDisplayName() {
596             return "The minimum order value for this supplier";
597           }
598 
599           protected int defaultDisplayOrder() {
600             return 8;
601           }
602 
603           public Object getRaw_unsafe(Persistent g)
604               throws AccessPoemException {
605             return ((Supplier)g).getMinimumamount_unsafe();
606           }
607 
608           public void setRaw_unsafe(Persistent g, Object raw)
609               throws AccessPoemException {
610             ((Supplier)g).setMinimumamount_unsafe((Double)raw);
611           }
612 
613           public Object getRaw(Persistent g)
614               throws AccessPoemException {
615             return ((Supplier)g).getMinimumamount();
616           }
617 
618           public void setRaw(Persistent g, Object raw)
619               throws AccessPoemException {
620             ((Supplier)g).setMinimumamount((Double)raw);
621           }
622         });
623 
624     defineColumn(col_tel =
625         new Column(this, "tel",
626                    new StringPoemType(false, -1),
627                    DefinitionSource.dsd) { 
628           public Object getCooked(Persistent g)
629               throws AccessPoemException, PoemException {
630             return ((Supplier)g).getTel();
631           }
632 
633           public void setCooked(Persistent g, Object cooked)
634               throws AccessPoemException, ValidationPoemException {
635             ((Supplier)g).setTel((String)cooked);
636           }
637 
638           public Field asField(Persistent g) {
639             return ((Supplier)g).getTelField();
640           }
641 
642           protected DisplayLevel defaultDisplayLevel() {
643             return DisplayLevel.record;
644           }
645 
646           protected String defaultDisplayName() {
647             return "Telephone";
648           }
649 
650           protected int defaultDisplayOrder() {
651             return 9;
652           }
653 
654           protected String defaultDescription() {
655             return "Telephone number";
656           }
657 
658           public Object getRaw_unsafe(Persistent g)
659               throws AccessPoemException {
660             return ((Supplier)g).getTel_unsafe();
661           }
662 
663           public void setRaw_unsafe(Persistent g, Object raw)
664               throws AccessPoemException {
665             ((Supplier)g).setTel_unsafe((String)raw);
666           }
667 
668           public Object getRaw(Persistent g)
669               throws AccessPoemException {
670             return ((Supplier)g).getTel();
671           }
672 
673           public void setRaw(Persistent g, Object raw)
674               throws AccessPoemException {
675             ((Supplier)g).setTel((String)raw);
676           }
677         });
678 
679     defineColumn(col_fax =
680         new Column(this, "fax",
681                    new StringPoemType(false, -1),
682                    DefinitionSource.dsd) { 
683           public Object getCooked(Persistent g)
684               throws AccessPoemException, PoemException {
685             return ((Supplier)g).getFax();
686           }
687 
688           public void setCooked(Persistent g, Object cooked)
689               throws AccessPoemException, ValidationPoemException {
690             ((Supplier)g).setFax((String)cooked);
691           }
692 
693           public Field asField(Persistent g) {
694             return ((Supplier)g).getFaxField();
695           }
696 
697           protected DisplayLevel defaultDisplayLevel() {
698             return DisplayLevel.detail;
699           }
700 
701           protected String defaultDisplayName() {
702             return "Fax";
703           }
704 
705           protected int defaultDisplayOrder() {
706             return 10;
707           }
708 
709           protected String defaultDescription() {
710             return "Fax number";
711           }
712 
713           public Object getRaw_unsafe(Persistent g)
714               throws AccessPoemException {
715             return ((Supplier)g).getFax_unsafe();
716           }
717 
718           public void setRaw_unsafe(Persistent g, Object raw)
719               throws AccessPoemException {
720             ((Supplier)g).setFax_unsafe((String)raw);
721           }
722 
723           public Object getRaw(Persistent g)
724               throws AccessPoemException {
725             return ((Supplier)g).getFax();
726           }
727 
728           public void setRaw(Persistent g, Object raw)
729               throws AccessPoemException {
730             ((Supplier)g).setFax((String)raw);
731           }
732         });
733 
734     defineColumn(col_minimumorder =
735         new Column(this, "minimumorder",
736                    new DoublePoemType(true),
737                    DefinitionSource.dsd) { 
738           public Object getCooked(Persistent g)
739               throws AccessPoemException, PoemException {
740             return ((Supplier)g).getMinimumorder();
741           }
742 
743           public void setCooked(Persistent g, Object cooked)
744               throws AccessPoemException, ValidationPoemException {
745             ((Supplier)g).setMinimumorder((Double)cooked);
746           }
747 
748           public Field asField(Persistent g) {
749             return ((Supplier)g).getMinimumorderField();
750           }
751 
752           protected DisplayLevel defaultDisplayLevel() {
753             return DisplayLevel.record;
754           }
755 
756           protected Searchability defaultSearchability() {
757             return Searchability.no;
758           }
759 
760           protected String defaultDisplayName() {
761             return "Minimum Order Value";
762           }
763 
764           protected int defaultDisplayOrder() {
765             return 11;
766           }
767 
768           protected String defaultDescription() {
769             return "The minimum value that can be ordered";
770           }
771 
772           public Object getRaw_unsafe(Persistent g)
773               throws AccessPoemException {
774             return ((Supplier)g).getMinimumorder_unsafe();
775           }
776 
777           public void setRaw_unsafe(Persistent g, Object raw)
778               throws AccessPoemException {
779             ((Supplier)g).setMinimumorder_unsafe((Double)raw);
780           }
781 
782           public Object getRaw(Persistent g)
783               throws AccessPoemException {
784             return ((Supplier)g).getMinimumorder();
785           }
786 
787           public void setRaw(Persistent g, Object raw)
788               throws AccessPoemException {
789             ((Supplier)g).setMinimumorder((Double)raw);
790           }
791         });
792 
793     defineColumn(col_deleted =
794         new Column(this, "deleted",
795                    new BooleanPoemType(false),
796                    DefinitionSource.dsd) { 
797           public Object getCooked(Persistent g)
798               throws AccessPoemException, PoemException {
799             return ((Supplier)g).getDeleted();
800           }
801 
802           public void setCooked(Persistent g, Object cooked)
803               throws AccessPoemException, ValidationPoemException {
804             ((Supplier)g).setDeleted((Boolean)cooked);
805           }
806 
807           public Field asField(Persistent g) {
808             return ((Supplier)g).getDeletedField();
809           }
810 
811           protected DisplayLevel defaultDisplayLevel() {
812             return DisplayLevel.record;
813           }
814 
815           protected Searchability defaultSearchability() {
816             return Searchability.no;
817           }
818 
819           protected Integer defaultDisplayOrderPriority() {
820             return new Integer(0);
821           }
822 
823           protected String defaultDisplayName() {
824             return "Deleted?";
825           }
826 
827           protected int defaultDisplayOrder() {
828             return 12;
829           }
830 
831           protected String defaultDescription() {
832             return "Check this box if you no longer deal with this supplier";
833           }
834 
835           public Object getRaw_unsafe(Persistent g)
836               throws AccessPoemException {
837             return ((Supplier)g).getDeleted_unsafe();
838           }
839 
840           public void setRaw_unsafe(Persistent g, Object raw)
841               throws AccessPoemException {
842             ((Supplier)g).setDeleted_unsafe((Boolean)raw);
843           }
844 
845           public Object getRaw(Persistent g)
846               throws AccessPoemException {
847             return ((Supplier)g).getDeleted();
848           }
849 
850           public void setRaw(Persistent g, Object raw)
851               throws AccessPoemException {
852             ((Supplier)g).setDeleted((Boolean)raw);
853           }
854         });
855   }
856 
857 
858  /**
859   * Retrieves the <code>Id</code> <code>Column</code> for this 
860   * <code>Supplier</code> <code>Table</code>.
861   * 
862   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
863   * @return the id <code>Column</code>
864   */
865   public final Column getIdColumn() {
866     return col_id;
867   }
868 
869 
870  /**
871   * Retrieves the <code>Name</code> <code>Column</code> for this 
872   * <code>Supplier</code> <code>Table</code>.
873   * 
874   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
875   * @return the name <code>Column</code>
876   */
877   public final Column getNameColumn() {
878     return col_name;
879   }
880 
881 
882  /**
883   * Retrieves the <code>Address</code> <code>Column</code> for this 
884   * <code>Supplier</code> <code>Table</code>.
885   * 
886   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
887   * @return the address <code>Column</code>
888   */
889   public final Column getAddressColumn() {
890     return col_address;
891   }
892 
893 
894  /**
895   * Retrieves the <code>Profile</code> <code>Column</code> for this 
896   * <code>Supplier</code> <code>Table</code>.
897   * 
898   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
899   * @return the profile <code>Column</code>
900   */
901   public final Column getProfileColumn() {
902     return col_profile;
903   }
904 
905 
906  /**
907   * Retrieves the <code>Contact</code> <code>Column</code> for this 
908   * <code>Supplier</code> <code>Table</code>.
909   * 
910   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
911   * @return the contact <code>Column</code>
912   */
913   public final Column getContactColumn() {
914     return col_contact;
915   }
916 
917 
918  /**
919   * Retrieves the <code>Email</code> <code>Column</code> for this 
920   * <code>Supplier</code> <code>Table</code>.
921   * 
922   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
923   * @return the email <code>Column</code>
924   */
925   public final Column getEmailColumn() {
926     return col_email;
927   }
928 
929 
930  /**
931   * Retrieves the <code>Website</code> <code>Column</code> for this 
932   * <code>Supplier</code> <code>Table</code>.
933   * 
934   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
935   * @return the website <code>Column</code>
936   */
937   public final Column getWebsiteColumn() {
938     return col_website;
939   }
940 
941 
942  /**
943   * Retrieves the <code>Comment</code> <code>Column</code> for this 
944   * <code>Supplier</code> <code>Table</code>.
945   * 
946   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
947   * @return the comment <code>Column</code>
948   */
949   public final Column getCommentColumn() {
950     return col_comment;
951   }
952 
953 
954  /**
955   * Retrieves the <code>Minimumamount</code> <code>Column</code> for this 
956   * <code>Supplier</code> <code>Table</code>.
957   * 
958   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
959   * @return the minimumamount <code>Column</code>
960   */
961   public final Column getMinimumamountColumn() {
962     return col_minimumamount;
963   }
964 
965 
966  /**
967   * Retrieves the <code>Tel</code> <code>Column</code> for this 
968   * <code>Supplier</code> <code>Table</code>.
969   * 
970   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
971   * @return the tel <code>Column</code>
972   */
973   public final Column getTelColumn() {
974     return col_tel;
975   }
976 
977 
978  /**
979   * Retrieves the <code>Fax</code> <code>Column</code> for this 
980   * <code>Supplier</code> <code>Table</code>.
981   * 
982   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
983   * @return the fax <code>Column</code>
984   */
985   public final Column getFaxColumn() {
986     return col_fax;
987   }
988 
989 
990  /**
991   * Retrieves the <code>Minimumorder</code> <code>Column</code> for this 
992   * <code>Supplier</code> <code>Table</code>.
993   * 
994   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
995   * @return the minimumorder <code>Column</code>
996   */
997   public final Column getMinimumorderColumn() {
998     return col_minimumorder;
999   }
1000 
1001 
1002  /**
1003   * Retrieves the <code>Deleted</code> <code>Column</code> for this 
1004   * <code>Supplier</code> <code>Table</code>.
1005   * 
1006   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
1007   * @return the deleted <code>Column</code>
1008   */
1009   public final Column getDeletedColumn() {
1010     return col_deleted;
1011   }
1012 
1013 
1014  /**
1015   * Retrieve the <code>Supplier</code> as a <code>Supplier</code>.
1016   *
1017   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
1018   * @param troid a Table Row Oject ID
1019   * @return the <code>Persistent</code> identified by the <code>troid</code>
1020   */
1021   public Supplier getSupplierObject(Integer troid) {
1022     return (Supplier)getObject(troid);
1023   }
1024 
1025 
1026  /**
1027   * Retrieve the <code>Supplier</code> 
1028   * as a <code>Supplier</code>.
1029   *
1030   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
1031   * @param troid a Table Row Object ID
1032   * @return the <code>Persistent</code> identified   */
1033   public Supplier getSupplierObject(int troid) {
1034     return (Supplier)getObject(troid);
1035   }
1036 
1037   protected JdbcPersistent _newPersistent() {
1038     return new Supplier();
1039   }
1040   protected String defaultDisplayName() {
1041     return "Supplier";
1042   }
1043 
1044   protected String defaultDescription() {
1045     return "Supplier";
1046   }
1047 
1048   protected boolean defaultRememberAllTroids() {
1049     return true;
1050   }
1051 
1052   protected String defaultCategory() {
1053     return "Data";
1054   }
1055 
1056   protected int defaultDisplayOrder() {
1057     return 20;
1058   }
1059 }
1060