View Javadoc
1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.melati.poem.test.generated;
4   
5   
6   import java.math.BigDecimal;
7   import java.sql.Date;
8   import java.sql.Timestamp;
9   import org.melati.poem.AccessPoemException;
10  import org.melati.poem.BigDecimalPoemType;
11  import org.melati.poem.BinaryPoemType;
12  import org.melati.poem.BooleanPoemType;
13  import org.melati.poem.Column;
14  import org.melati.poem.Database;
15  import org.melati.poem.DatePoemType;
16  import org.melati.poem.DefinitionSource;
17  import org.melati.poem.DeletedPoemType;
18  import org.melati.poem.DisplayLevel;
19  import org.melati.poem.DoublePoemType;
20  import org.melati.poem.Field;
21  import org.melati.poem.IntegerPoemType;
22  import org.melati.poem.JdbcPersistent;
23  import org.melati.poem.LongPoemType;
24  import org.melati.poem.PasswordPoemType;
25  import org.melati.poem.Persistent;
26  import org.melati.poem.PoemException;
27  import org.melati.poem.Searchability;
28  import org.melati.poem.StringPoemType;
29  import org.melati.poem.TimestampPoemType;
30  import org.melati.poem.TroidPoemType;
31  import org.melati.poem.ValidationPoemException;
32  import org.melati.poem.test.EverythingDatabaseTables;
33  import org.melati.poem.test.EverythingNormal;
34  import org.melati.poem.test.EverythingTable;
35  
36  
37  /**
38   * Melati POEM generated base class for <code>Table</code> <code>EverythingNormal</code>.
39   *
40   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
41   */
42  
43  public class EverythingNormalTableBase<T extends EverythingNormal> extends EverythingTable<T> {
44  
45    private Column<Integer> col_id = null;
46    private Column<byte[]> col_binaryfield = null;
47    private Column<String> col_stringfield = null;
48    private Column<String> col_passwordfield = null;
49    private Column<Boolean> col_booleanfield = null;
50    private Column<Date> col_datefield = null;
51    private Column<Double> col_doublefield = null;
52    private Column<Integer> col_integerfield = null;
53    private Column<Long> col_longfield = null;
54    private Column<BigDecimal> col_bigdecimalfield = null;
55    private Column<Timestamp> col_timestampfield = null;
56    private Column<Boolean> col_deletedfield = null;
57  
58   /**
59    * Constructor. 
60    * 
61    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
62    * @param database          the POEM database we are using
63    * @param name              the name of this <code>Table</code>
64    * @param definitionSource  which definition is being used
65    * @throws PoemException    if anything goes wrong
66    */
67  
68    public EverythingNormalTableBase(
69        Database database, String name,
70        DefinitionSource definitionSource) throws PoemException {
71      super(database, name, definitionSource);
72    }
73  
74  
75   /**
76    * Get the database tables.
77    *
78    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
79    * @return the database tables
80    */
81    public EverythingDatabaseTables getEverythingDatabaseTables() {
82      return (EverythingDatabaseTables)getDatabase();
83    }
84  
85  
86   /**
87    * Initialise this table by defining its columns.
88    *
89    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
90    */
91    public void init() throws PoemException {
92      super.init();
93      defineColumn(col_id =
94          new Column<Integer>(this, "id",
95                     new TroidPoemType(),
96                     DefinitionSource.dsd) { 
97            public Object getCooked(Persistent g)
98                throws AccessPoemException, PoemException {
99              return ((EverythingNormal)g).getId();
100           }
101 
102           public void setCooked(Persistent g, Object cooked)
103               throws AccessPoemException, ValidationPoemException {
104             ((EverythingNormal)g).setId((Integer)cooked);
105           }
106 
107           public Field<Integer> asField(Persistent g) {
108             return ((EverythingNormal)g).getIdField();
109           }
110 
111           public boolean defaultUserEditable() {
112             return false;
113           }
114 
115           public boolean defaultUserCreateable() {
116             return false;
117           }
118 
119           public DisplayLevel defaultDisplayLevel() {
120             return DisplayLevel.summary;
121           }
122 
123           public Searchability defaultSearchability() {
124             return Searchability.yes;
125           }
126 
127           public String defaultDisplayName() {
128             return "Id";
129           }
130 
131           public int defaultDisplayOrder() {
132             return 0;
133           }
134 
135           public boolean defaultIndexed() {
136             return true;
137           }
138 
139           public boolean defaultUnique() {
140             return true;
141           }
142 
143           public int defaultWidth() {
144             return 20;
145           }
146 
147           public int defaultHeight() {
148             return 1;
149           }
150 
151           public Object getRaw_unsafe(Persistent g)
152               throws AccessPoemException {
153             return ((EverythingNormal)g).getId_unsafe();
154           }
155 
156           public void setRaw_unsafe(Persistent g, Object raw)
157               throws AccessPoemException {
158             ((EverythingNormal)g).setId_unsafe((Integer)raw);
159           }
160 
161           public Object getRaw(Persistent g)
162               throws AccessPoemException {
163             return ((EverythingNormal)g).getId();
164           }
165 
166           public void setRaw(Persistent g, Object raw)
167               throws AccessPoemException {
168             ((EverythingNormal)g).setId((Integer)raw);
169           }
170         });
171 
172     defineColumn(col_binaryfield =
173         new Column<byte[]>(this, "binaryfield",
174                    new BinaryPoemType(true, 13),
175                    DefinitionSource.dsd) { 
176           public Object getCooked(Persistent g)
177               throws AccessPoemException, PoemException {
178             return ((EverythingNormal)g).getBinaryfield();
179           }
180 
181           public void setCooked(Persistent g, Object cooked)
182               throws AccessPoemException, ValidationPoemException {
183             ((EverythingNormal)g).setBinaryfield((byte[])cooked);
184           }
185 
186           public Field<byte[]> asField(Persistent g) {
187             return ((EverythingNormal)g).getBinaryfieldField();
188           }
189 
190           public boolean defaultUserEditable() {
191             return false;
192           }
193 
194           public boolean defaultUserCreateable() {
195             return false;
196           }
197 
198           public DisplayLevel defaultDisplayLevel() {
199             return DisplayLevel.summary;
200           }
201 
202           public Searchability defaultSearchability() {
203             return Searchability.no;
204           }
205 
206           public String defaultDisplayName() {
207             return "Binaryfield";
208           }
209 
210           public int defaultDisplayOrder() {
211             return 1;
212           }
213 
214           public int defaultWidth() {
215             return 20;
216           }
217 
218           public int defaultHeight() {
219             return 1;
220           }
221 
222           public Object getRaw_unsafe(Persistent g)
223               throws AccessPoemException {
224             return ((EverythingNormal)g).getBinaryfield_unsafe();
225           }
226 
227           public void setRaw_unsafe(Persistent g, Object raw)
228               throws AccessPoemException {
229             ((EverythingNormal)g).setBinaryfield_unsafe((byte[])raw);
230           }
231 
232           public Object getRaw(Persistent g)
233               throws AccessPoemException {
234             return ((EverythingNormal)g).getBinaryfield();
235           }
236 
237           public void setRaw(Persistent g, Object raw)
238               throws AccessPoemException {
239             ((EverythingNormal)g).setBinaryfield((byte[])raw);
240           }
241         });
242 
243     defineColumn(col_stringfield =
244         new Column<String>(this, "stringfield",
245                    new StringPoemType(true, 23),
246                    DefinitionSource.dsd) { 
247           public Object getCooked(Persistent g)
248               throws AccessPoemException, PoemException {
249             return ((EverythingNormal)g).getStringfield();
250           }
251 
252           public void setCooked(Persistent g, Object cooked)
253               throws AccessPoemException, ValidationPoemException {
254             ((EverythingNormal)g).setStringfield((String)cooked);
255           }
256 
257           public Field<String> asField(Persistent g) {
258             return ((EverythingNormal)g).getStringfieldField();
259           }
260 
261           public DisplayLevel defaultDisplayLevel() {
262             return DisplayLevel.primary;
263           }
264 
265           public Searchability defaultSearchability() {
266             return Searchability.yes;
267           }
268 
269           public String defaultDisplayName() {
270             return "String Field";
271           }
272 
273           public int defaultDisplayOrder() {
274             return 2;
275           }
276 
277           public int defaultWidth() {
278             return 20;
279           }
280 
281           public int defaultHeight() {
282             return 3;
283           }
284 
285           public Object getRaw_unsafe(Persistent g)
286               throws AccessPoemException {
287             return ((EverythingNormal)g).getStringfield_unsafe();
288           }
289 
290           public void setRaw_unsafe(Persistent g, Object raw)
291               throws AccessPoemException {
292             ((EverythingNormal)g).setStringfield_unsafe((String)raw);
293           }
294 
295           public Object getRaw(Persistent g)
296               throws AccessPoemException {
297             return ((EverythingNormal)g).getStringfield();
298           }
299 
300           public void setRaw(Persistent g, Object raw)
301               throws AccessPoemException {
302             ((EverythingNormal)g).setStringfield((String)raw);
303           }
304         });
305 
306     defineColumn(col_passwordfield =
307         new Column<String>(this, "passwordfield",
308                    new PasswordPoemType(true, 23),
309                    DefinitionSource.dsd) { 
310           public Object getCooked(Persistent g)
311               throws AccessPoemException, PoemException {
312             return ((EverythingNormal)g).getPasswordfield();
313           }
314 
315           public void setCooked(Persistent g, Object cooked)
316               throws AccessPoemException, ValidationPoemException {
317             ((EverythingNormal)g).setPasswordfield((String)cooked);
318           }
319 
320           public Field<String> asField(Persistent g) {
321             return ((EverythingNormal)g).getPasswordfieldField();
322           }
323 
324           public DisplayLevel defaultDisplayLevel() {
325             return DisplayLevel.summary;
326           }
327 
328           public Searchability defaultSearchability() {
329             return Searchability.yes;
330           }
331 
332           public String defaultDisplayName() {
333             return "Password Field";
334           }
335 
336           public int defaultDisplayOrder() {
337             return 3;
338           }
339 
340           public int defaultWidth() {
341             return 20;
342           }
343 
344           public int defaultHeight() {
345             return 3;
346           }
347 
348           public Object getRaw_unsafe(Persistent g)
349               throws AccessPoemException {
350             return ((EverythingNormal)g).getPasswordfield_unsafe();
351           }
352 
353           public void setRaw_unsafe(Persistent g, Object raw)
354               throws AccessPoemException {
355             ((EverythingNormal)g).setPasswordfield_unsafe((String)raw);
356           }
357 
358           public Object getRaw(Persistent g)
359               throws AccessPoemException {
360             return ((EverythingNormal)g).getPasswordfield();
361           }
362 
363           public void setRaw(Persistent g, Object raw)
364               throws AccessPoemException {
365             ((EverythingNormal)g).setPasswordfield((String)raw);
366           }
367         });
368 
369     defineColumn(col_booleanfield =
370         new Column<Boolean>(this, "booleanfield",
371                    new BooleanPoemType(true),
372                    DefinitionSource.dsd) { 
373           public Object getCooked(Persistent g)
374               throws AccessPoemException, PoemException {
375             return ((EverythingNormal)g).getBooleanfield();
376           }
377 
378           public void setCooked(Persistent g, Object cooked)
379               throws AccessPoemException, ValidationPoemException {
380             ((EverythingNormal)g).setBooleanfield((Boolean)cooked);
381           }
382 
383           public Field<Boolean> asField(Persistent g) {
384             return ((EverythingNormal)g).getBooleanfieldField();
385           }
386 
387           public DisplayLevel defaultDisplayLevel() {
388             return DisplayLevel.summary;
389           }
390 
391           public Searchability defaultSearchability() {
392             return Searchability.yes;
393           }
394 
395           public String defaultDisplayName() {
396             return "Boolean Field";
397           }
398 
399           public int defaultDisplayOrder() {
400             return 4;
401           }
402 
403           public int defaultWidth() {
404             return 20;
405           }
406 
407           public int defaultHeight() {
408             return 1;
409           }
410 
411           public Object getRaw_unsafe(Persistent g)
412               throws AccessPoemException {
413             return ((EverythingNormal)g).getBooleanfield_unsafe();
414           }
415 
416           public void setRaw_unsafe(Persistent g, Object raw)
417               throws AccessPoemException {
418             ((EverythingNormal)g).setBooleanfield_unsafe((Boolean)raw);
419           }
420 
421           public Object getRaw(Persistent g)
422               throws AccessPoemException {
423             return ((EverythingNormal)g).getBooleanfield();
424           }
425 
426           public void setRaw(Persistent g, Object raw)
427               throws AccessPoemException {
428             ((EverythingNormal)g).setBooleanfield((Boolean)raw);
429           }
430         });
431 
432     defineColumn(col_datefield =
433         new Column<Date>(this, "datefield",
434                    new DatePoemType(true),
435                    DefinitionSource.dsd) { 
436           public Object getCooked(Persistent g)
437               throws AccessPoemException, PoemException {
438             return ((EverythingNormal)g).getDatefield();
439           }
440 
441           public void setCooked(Persistent g, Object cooked)
442               throws AccessPoemException, ValidationPoemException {
443             ((EverythingNormal)g).setDatefield((Date)cooked);
444           }
445 
446           public Field<Date> asField(Persistent g) {
447             return ((EverythingNormal)g).getDatefieldField();
448           }
449 
450           public DisplayLevel defaultDisplayLevel() {
451             return DisplayLevel.summary;
452           }
453 
454           public Searchability defaultSearchability() {
455             return Searchability.yes;
456           }
457 
458           public String defaultDisplayName() {
459             return "Date Field";
460           }
461 
462           public int defaultDisplayOrder() {
463             return 5;
464           }
465 
466           public int defaultWidth() {
467             return 20;
468           }
469 
470           public int defaultHeight() {
471             return 1;
472           }
473 
474           public Object getRaw_unsafe(Persistent g)
475               throws AccessPoemException {
476             return ((EverythingNormal)g).getDatefield_unsafe();
477           }
478 
479           public void setRaw_unsafe(Persistent g, Object raw)
480               throws AccessPoemException {
481             ((EverythingNormal)g).setDatefield_unsafe((Date)raw);
482           }
483 
484           public Object getRaw(Persistent g)
485               throws AccessPoemException {
486             return ((EverythingNormal)g).getDatefield();
487           }
488 
489           public void setRaw(Persistent g, Object raw)
490               throws AccessPoemException {
491             ((EverythingNormal)g).setDatefield((Date)raw);
492           }
493         });
494 
495     defineColumn(col_doublefield =
496         new Column<Double>(this, "doublefield",
497                    new DoublePoemType(true),
498                    DefinitionSource.dsd) { 
499           public Object getCooked(Persistent g)
500               throws AccessPoemException, PoemException {
501             return ((EverythingNormal)g).getDoublefield();
502           }
503 
504           public void setCooked(Persistent g, Object cooked)
505               throws AccessPoemException, ValidationPoemException {
506             ((EverythingNormal)g).setDoublefield((Double)cooked);
507           }
508 
509           public Field<Double> asField(Persistent g) {
510             return ((EverythingNormal)g).getDoublefieldField();
511           }
512 
513           public DisplayLevel defaultDisplayLevel() {
514             return DisplayLevel.summary;
515           }
516 
517           public Searchability defaultSearchability() {
518             return Searchability.yes;
519           }
520 
521           public String defaultDisplayName() {
522             return "Double Field";
523           }
524 
525           public int defaultDisplayOrder() {
526             return 6;
527           }
528 
529           public int defaultWidth() {
530             return 20;
531           }
532 
533           public int defaultHeight() {
534             return 1;
535           }
536 
537           public Object getRaw_unsafe(Persistent g)
538               throws AccessPoemException {
539             return ((EverythingNormal)g).getDoublefield_unsafe();
540           }
541 
542           public void setRaw_unsafe(Persistent g, Object raw)
543               throws AccessPoemException {
544             ((EverythingNormal)g).setDoublefield_unsafe((Double)raw);
545           }
546 
547           public Object getRaw(Persistent g)
548               throws AccessPoemException {
549             return ((EverythingNormal)g).getDoublefield();
550           }
551 
552           public void setRaw(Persistent g, Object raw)
553               throws AccessPoemException {
554             ((EverythingNormal)g).setDoublefield((Double)raw);
555           }
556         });
557 
558     defineColumn(col_integerfield =
559         new Column<Integer>(this, "integerfield",
560                    new IntegerPoemType(true),
561                    DefinitionSource.dsd) { 
562           public Object getCooked(Persistent g)
563               throws AccessPoemException, PoemException {
564             return ((EverythingNormal)g).getIntegerfield();
565           }
566 
567           public void setCooked(Persistent g, Object cooked)
568               throws AccessPoemException, ValidationPoemException {
569             ((EverythingNormal)g).setIntegerfield((Integer)cooked);
570           }
571 
572           public Field<Integer> asField(Persistent g) {
573             return ((EverythingNormal)g).getIntegerfieldField();
574           }
575 
576           public DisplayLevel defaultDisplayLevel() {
577             return DisplayLevel.summary;
578           }
579 
580           public Searchability defaultSearchability() {
581             return Searchability.yes;
582           }
583 
584           public String defaultDisplayName() {
585             return "Integer Field";
586           }
587 
588           public int defaultDisplayOrder() {
589             return 7;
590           }
591 
592           public int defaultWidth() {
593             return 20;
594           }
595 
596           public int defaultHeight() {
597             return 1;
598           }
599 
600           public Object getRaw_unsafe(Persistent g)
601               throws AccessPoemException {
602             return ((EverythingNormal)g).getIntegerfield_unsafe();
603           }
604 
605           public void setRaw_unsafe(Persistent g, Object raw)
606               throws AccessPoemException {
607             ((EverythingNormal)g).setIntegerfield_unsafe((Integer)raw);
608           }
609 
610           public Object getRaw(Persistent g)
611               throws AccessPoemException {
612             return ((EverythingNormal)g).getIntegerfield();
613           }
614 
615           public void setRaw(Persistent g, Object raw)
616               throws AccessPoemException {
617             ((EverythingNormal)g).setIntegerfield((Integer)raw);
618           }
619         });
620 
621     defineColumn(col_longfield =
622         new Column<Long>(this, "longfield",
623                    new LongPoemType(true),
624                    DefinitionSource.dsd) { 
625           public Object getCooked(Persistent g)
626               throws AccessPoemException, PoemException {
627             return ((EverythingNormal)g).getLongfield();
628           }
629 
630           public void setCooked(Persistent g, Object cooked)
631               throws AccessPoemException, ValidationPoemException {
632             ((EverythingNormal)g).setLongfield((Long)cooked);
633           }
634 
635           public Field<Long> asField(Persistent g) {
636             return ((EverythingNormal)g).getLongfieldField();
637           }
638 
639           public DisplayLevel defaultDisplayLevel() {
640             return DisplayLevel.summary;
641           }
642 
643           public Searchability defaultSearchability() {
644             return Searchability.yes;
645           }
646 
647           public String defaultDisplayName() {
648             return "Long Field";
649           }
650 
651           public int defaultDisplayOrder() {
652             return 8;
653           }
654 
655           public int defaultWidth() {
656             return 20;
657           }
658 
659           public int defaultHeight() {
660             return 1;
661           }
662 
663           public Object getRaw_unsafe(Persistent g)
664               throws AccessPoemException {
665             return ((EverythingNormal)g).getLongfield_unsafe();
666           }
667 
668           public void setRaw_unsafe(Persistent g, Object raw)
669               throws AccessPoemException {
670             ((EverythingNormal)g).setLongfield_unsafe((Long)raw);
671           }
672 
673           public Object getRaw(Persistent g)
674               throws AccessPoemException {
675             return ((EverythingNormal)g).getLongfield();
676           }
677 
678           public void setRaw(Persistent g, Object raw)
679               throws AccessPoemException {
680             ((EverythingNormal)g).setLongfield((Long)raw);
681           }
682         });
683 
684     defineColumn(col_bigdecimalfield =
685         new Column<BigDecimal>(this, "bigdecimalfield",
686                    new BigDecimalPoemType(true, 22, 2),
687                    DefinitionSource.dsd) { 
688           public Object getCooked(Persistent g)
689               throws AccessPoemException, PoemException {
690             return ((EverythingNormal)g).getBigdecimalfield();
691           }
692 
693           public void setCooked(Persistent g, Object cooked)
694               throws AccessPoemException, ValidationPoemException {
695             ((EverythingNormal)g).setBigdecimalfield((BigDecimal)cooked);
696           }
697 
698           public Field<BigDecimal> asField(Persistent g) {
699             return ((EverythingNormal)g).getBigdecimalfieldField();
700           }
701 
702           public DisplayLevel defaultDisplayLevel() {
703             return DisplayLevel.summary;
704           }
705 
706           public Searchability defaultSearchability() {
707             return Searchability.yes;
708           }
709 
710           public String defaultDisplayName() {
711             return "BigDecimal Field";
712           }
713 
714           public int defaultDisplayOrder() {
715             return 9;
716           }
717 
718           public int defaultWidth() {
719             return 20;
720           }
721 
722           public int defaultHeight() {
723             return 1;
724           }
725 
726           public Object getRaw_unsafe(Persistent g)
727               throws AccessPoemException {
728             return ((EverythingNormal)g).getBigdecimalfield_unsafe();
729           }
730 
731           public void setRaw_unsafe(Persistent g, Object raw)
732               throws AccessPoemException {
733             ((EverythingNormal)g).setBigdecimalfield_unsafe((BigDecimal)raw);
734           }
735 
736           public Object getRaw(Persistent g)
737               throws AccessPoemException {
738             return ((EverythingNormal)g).getBigdecimalfield();
739           }
740 
741           public void setRaw(Persistent g, Object raw)
742               throws AccessPoemException {
743             ((EverythingNormal)g).setBigdecimalfield((BigDecimal)raw);
744           }
745         });
746 
747     defineColumn(col_timestampfield =
748         new Column<Timestamp>(this, "timestampfield",
749                    new TimestampPoemType(true),
750                    DefinitionSource.dsd) { 
751           public Object getCooked(Persistent g)
752               throws AccessPoemException, PoemException {
753             return ((EverythingNormal)g).getTimestampfield();
754           }
755 
756           public void setCooked(Persistent g, Object cooked)
757               throws AccessPoemException, ValidationPoemException {
758             ((EverythingNormal)g).setTimestampfield((Timestamp)cooked);
759           }
760 
761           public Field<Timestamp> asField(Persistent g) {
762             return ((EverythingNormal)g).getTimestampfieldField();
763           }
764 
765           public DisplayLevel defaultDisplayLevel() {
766             return DisplayLevel.summary;
767           }
768 
769           public Searchability defaultSearchability() {
770             return Searchability.yes;
771           }
772 
773           public String defaultDisplayName() {
774             return "Timestamp Field";
775           }
776 
777           public int defaultDisplayOrder() {
778             return 10;
779           }
780 
781           public int defaultWidth() {
782             return 20;
783           }
784 
785           public int defaultHeight() {
786             return 1;
787           }
788 
789           public Object getRaw_unsafe(Persistent g)
790               throws AccessPoemException {
791             return ((EverythingNormal)g).getTimestampfield_unsafe();
792           }
793 
794           public void setRaw_unsafe(Persistent g, Object raw)
795               throws AccessPoemException {
796             ((EverythingNormal)g).setTimestampfield_unsafe((Timestamp)raw);
797           }
798 
799           public Object getRaw(Persistent g)
800               throws AccessPoemException {
801             return ((EverythingNormal)g).getTimestampfield();
802           }
803 
804           public void setRaw(Persistent g, Object raw)
805               throws AccessPoemException {
806             ((EverythingNormal)g).setTimestampfield((Timestamp)raw);
807           }
808         });
809 
810     defineColumn(col_deletedfield =
811         new Column<Boolean>(this, "deletedfield",
812                    new DeletedPoemType(),
813                    DefinitionSource.dsd) { 
814           public Object getCooked(Persistent g)
815               throws AccessPoemException, PoemException {
816             return ((EverythingNormal)g).getDeletedfield();
817           }
818 
819           public void setCooked(Persistent g, Object cooked)
820               throws AccessPoemException, ValidationPoemException {
821             ((EverythingNormal)g).setDeletedfield((Boolean)cooked);
822           }
823 
824           public Field<Boolean> asField(Persistent g) {
825             return ((EverythingNormal)g).getDeletedfieldField();
826           }
827 
828           public DisplayLevel defaultDisplayLevel() {
829             return DisplayLevel.summary;
830           }
831 
832           public Searchability defaultSearchability() {
833             return Searchability.yes;
834           }
835 
836           public String defaultDisplayName() {
837             return "Deleted Field";
838           }
839 
840           public int defaultDisplayOrder() {
841             return 11;
842           }
843 
844           public Object getRaw_unsafe(Persistent g)
845               throws AccessPoemException {
846             return ((EverythingNormal)g).getDeletedfield_unsafe();
847           }
848 
849           public void setRaw_unsafe(Persistent g, Object raw)
850               throws AccessPoemException {
851             ((EverythingNormal)g).setDeletedfield_unsafe((Boolean)raw);
852           }
853 
854           public Object getRaw(Persistent g)
855               throws AccessPoemException {
856             return ((EverythingNormal)g).getDeletedfield();
857           }
858 
859           public void setRaw(Persistent g, Object raw)
860               throws AccessPoemException {
861             ((EverythingNormal)g).setDeletedfield((Boolean)raw);
862           }
863         });
864   }
865 
866 
867  /**
868   * Retrieves the <code>Id</code> <code>Column</code> for this 
869   * <code>EverythingNormal</code> <code>Table</code>.
870   * 
871   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
872   * @return the id <code>Column</code>
873   */
874   public final Column<Integer> getIdColumn() {
875     return col_id;
876   }
877 
878 
879  /**
880   * Retrieves the <code>Binaryfield</code> <code>Column</code> for this 
881   * <code>EverythingNormal</code> <code>Table</code>.
882   * 
883   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
884   * @return the binaryfield <code>Column</code>
885   */
886   public final Column<byte[]> getBinaryfieldColumn() {
887     return col_binaryfield;
888   }
889 
890 
891  /**
892   * Retrieves the <code>Stringfield</code> <code>Column</code> for this 
893   * <code>EverythingNormal</code> <code>Table</code>.
894   * 
895   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
896   * @return the stringfield <code>Column</code>
897   */
898   public final Column<String> getStringfieldColumn() {
899     return col_stringfield;
900   }
901 
902 
903  /**
904   * Retrieves the <code>Passwordfield</code> <code>Column</code> for this 
905   * <code>EverythingNormal</code> <code>Table</code>.
906   * 
907   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
908   * @return the passwordfield <code>Column</code>
909   */
910   public final Column<String> getPasswordfieldColumn() {
911     return col_passwordfield;
912   }
913 
914 
915  /**
916   * Retrieves the <code>Booleanfield</code> <code>Column</code> for this 
917   * <code>EverythingNormal</code> <code>Table</code>.
918   * 
919   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
920   * @return the booleanfield <code>Column</code>
921   */
922   public final Column<Boolean> getBooleanfieldColumn() {
923     return col_booleanfield;
924   }
925 
926 
927  /**
928   * Retrieves the <code>Datefield</code> <code>Column</code> for this 
929   * <code>EverythingNormal</code> <code>Table</code>.
930   * 
931   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
932   * @return the datefield <code>Column</code>
933   */
934   public final Column<Date> getDatefieldColumn() {
935     return col_datefield;
936   }
937 
938 
939  /**
940   * Retrieves the <code>Doublefield</code> <code>Column</code> for this 
941   * <code>EverythingNormal</code> <code>Table</code>.
942   * 
943   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
944   * @return the doublefield <code>Column</code>
945   */
946   public final Column<Double> getDoublefieldColumn() {
947     return col_doublefield;
948   }
949 
950 
951  /**
952   * Retrieves the <code>Integerfield</code> <code>Column</code> for this 
953   * <code>EverythingNormal</code> <code>Table</code>.
954   * 
955   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
956   * @return the integerfield <code>Column</code>
957   */
958   public final Column<Integer> getIntegerfieldColumn() {
959     return col_integerfield;
960   }
961 
962 
963  /**
964   * Retrieves the <code>Longfield</code> <code>Column</code> for this 
965   * <code>EverythingNormal</code> <code>Table</code>.
966   * 
967   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
968   * @return the longfield <code>Column</code>
969   */
970   public final Column<Long> getLongfieldColumn() {
971     return col_longfield;
972   }
973 
974 
975  /**
976   * Retrieves the <code>Bigdecimalfield</code> <code>Column</code> for this 
977   * <code>EverythingNormal</code> <code>Table</code>.
978   * 
979   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
980   * @return the bigdecimalfield <code>Column</code>
981   */
982   public final Column<BigDecimal> getBigdecimalfieldColumn() {
983     return col_bigdecimalfield;
984   }
985 
986 
987  /**
988   * Retrieves the <code>Timestampfield</code> <code>Column</code> for this 
989   * <code>EverythingNormal</code> <code>Table</code>.
990   * 
991   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
992   * @return the timestampfield <code>Column</code>
993   */
994   public final Column<Timestamp> getTimestampfieldColumn() {
995     return col_timestampfield;
996   }
997 
998 
999  /**
1000   * Retrieves the <code>Deletedfield</code> <code>Column</code> for this 
1001   * <code>EverythingNormal</code> <code>Table</code>.
1002   * 
1003   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
1004   * @return the deletedfield <code>Column</code>
1005   */
1006   public final Column<Boolean> getDeletedfieldColumn() {
1007     return col_deletedfield;
1008   }
1009 
1010 
1011  /**
1012   * Retrieve the <code>EverythingNormal</code> as a <code>EverythingNormal</code>.
1013   *
1014   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
1015   * @param troid a Table Row Object ID
1016   * @return the <code>Persistent</code> identified by the <code>troid</code>
1017   */
1018   public EverythingNormal getEverythingNormalObject(Integer troid) {
1019     return (EverythingNormal)getObject(troid);
1020   }
1021 
1022 
1023  /**
1024   * Retrieve the <code>EverythingNormal</code> 
1025   * as a <code>EverythingNormal</code>.
1026   *
1027   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
1028   * @param troid a Table Row Object ID
1029   * @return the <code>Persistent</code> identified   */
1030   public EverythingNormal getEverythingNormalObject(int troid) {
1031     return (EverythingNormal)getObject(troid);
1032   }
1033 
1034   protected JdbcPersistent _newPersistent() {
1035     return new EverythingNormal();
1036   }
1037   public String defaultDisplayName() {
1038     return "EverythingNormal";
1039   }
1040 
1041   public String defaultDescription() {
1042     return "Every datatype in one table";
1043   }
1044 
1045   public Integer defaultCacheLimit() {
1046     return new Integer(100);
1047   }
1048 
1049   public String defaultCategory() {
1050     return "Normal";
1051   }
1052 
1053   public int defaultDisplayOrder() {
1054     return 60;
1055   }
1056 }
1057