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