1
2
3 package org.paneris.bibliomania.generated;
4
5
6 import java.sql.Timestamp;
7 import org.melati.poem.AccessPoemException;
8 import org.melati.poem.BooleanPoemType;
9 import org.melati.poem.Column;
10 import org.melati.poem.Database;
11 import org.melati.poem.DefinitionSource;
12 import org.melati.poem.DisplayLevel;
13 import org.melati.poem.Field;
14 import org.melati.poem.IntegerPoemType;
15 import org.melati.poem.JdbcPersistent;
16 import org.melati.poem.Persistent;
17 import org.melati.poem.PoemException;
18 import org.melati.poem.ReferencePoemType;
19 import org.melati.poem.StringPoemType;
20 import org.melati.poem.TimestampPoemType;
21 import org.melati.poem.ValidationPoemException;
22 import org.paneris.bibliomania.BibliomaniaDatabaseTables;
23 import org.paneris.bibliomania.Country;
24 import org.paneris.bibliomania.Currency;
25 import org.paneris.bibliomania.Sex;
26
27 import org.paneris.bibliomania.User;
28
29 import org.paneris.melati.boards.model.UserTable;
30
31
32
33
34
35
36
37
38 public class UserTableBase<T extends User> extends UserTable<T> {
39
40 private Column<Integer> col_age = null;
41 private Column<Integer> col_sex = null;
42 private Column<Integer> col_country = null;
43 private Column<String> col_region = null;
44 private Column<Boolean> col_fulltimeeducation = null;
45 private Column<Boolean> col_wantemailalerts = null;
46 private Column<Boolean> col_wantspam = null;
47 private Column<Boolean> col_dodgeyemail = null;
48 private Column<String> col_address = null;
49 private Column<String> col_town = null;
50 private Column<String> col_county = null;
51 private Column<String> col_tel = null;
52 private Column<Integer> col_currency = null;
53 private Column<String> col_bookmark = null;
54 private Column<Timestamp> col_lastemailed = null;
55
56
57
58
59
60
61
62
63
64
65
66 public UserTableBase(
67 Database database, String name,
68 DefinitionSource definitionSource) throws PoemException {
69 super(database, name, definitionSource);
70 }
71
72
73
74
75
76
77
78
79 public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() {
80 return (BibliomaniaDatabaseTables)getDatabase();
81 }
82
83
84
85
86
87
88
89 public void init() throws PoemException {
90 super.init();
91 defineColumn(col_age =
92 new Column<Integer>(this, "age",
93 new IntegerPoemType(true),
94 DefinitionSource.dsd) {
95 public Object getCooked(Persistent g)
96 throws AccessPoemException, PoemException {
97 return ((org.paneris.bibliomania.User)g).getAge();
98 }
99
100 public void setCooked(Persistent g, Object cooked)
101 throws AccessPoemException, ValidationPoemException {
102 ((org.paneris.bibliomania.User)g).setAge((Integer)cooked);
103 }
104
105 public Field<Integer> asField(Persistent g) {
106 return ((org.paneris.bibliomania.User)g).getAgeField();
107 }
108
109 public DisplayLevel defaultDisplayLevel() {
110 return DisplayLevel.record;
111 }
112
113 public int defaultDisplayOrder() {
114 return 0;
115 }
116
117 public String defaultDescription() {
118 return "Your age";
119 }
120
121 public Object getRaw_unsafe(Persistent g)
122 throws AccessPoemException {
123 return ((org.paneris.bibliomania.User)g).getAge_unsafe();
124 }
125
126 public void setRaw_unsafe(Persistent g, Object raw)
127 throws AccessPoemException {
128 ((org.paneris.bibliomania.User)g).setAge_unsafe((Integer)raw);
129 }
130
131 public Object getRaw(Persistent g)
132 throws AccessPoemException {
133 return ((org.paneris.bibliomania.User)g).getAge();
134 }
135
136 public void setRaw(Persistent g, Object raw)
137 throws AccessPoemException {
138 ((org.paneris.bibliomania.User)g).setAge((Integer)raw);
139 }
140 });
141
142 defineColumn(col_sex =
143 new Column<Integer>(this, "sex",
144 new ReferencePoemType(getBibliomaniaDatabaseTables().
145 getSexTable(), true),
146 DefinitionSource.dsd) {
147 public Object getCooked(Persistent g)
148 throws AccessPoemException, PoemException {
149 return ((org.paneris.bibliomania.User)g).getSex();
150 }
151
152 public void setCooked(Persistent g, Object cooked)
153 throws AccessPoemException, ValidationPoemException {
154 ((org.paneris.bibliomania.User)g).setSex((Sex)cooked);
155 }
156
157 public Field<Integer> asField(Persistent g) {
158 return ((org.paneris.bibliomania.User)g).getSexField();
159 }
160
161 public DisplayLevel defaultDisplayLevel() {
162 return DisplayLevel.record;
163 }
164
165 public int defaultDisplayOrder() {
166 return 1;
167 }
168
169 public String defaultDescription() {
170 return "Your sex";
171 }
172
173 public Object getRaw_unsafe(Persistent g)
174 throws AccessPoemException {
175 return ((org.paneris.bibliomania.User)g).getSex_unsafe();
176 }
177
178 public void setRaw_unsafe(Persistent g, Object raw)
179 throws AccessPoemException {
180 ((org.paneris.bibliomania.User)g).setSex_unsafe((Integer)raw);
181 }
182
183 public Object getRaw(Persistent g)
184 throws AccessPoemException {
185 return ((org.paneris.bibliomania.User)g).getSexTroid();
186 }
187
188 public void setRaw(Persistent g, Object raw)
189 throws AccessPoemException {
190 ((org.paneris.bibliomania.User)g).setSexTroid((Integer)raw);
191 }
192 });
193
194 defineColumn(col_country =
195 new Column<Integer>(this, "country",
196 new ReferencePoemType(getBibliomaniaDatabaseTables().
197 getCountryTable(), true),
198 DefinitionSource.dsd) {
199 public Object getCooked(Persistent g)
200 throws AccessPoemException, PoemException {
201 return ((org.paneris.bibliomania.User)g).getCountry();
202 }
203
204 public void setCooked(Persistent g, Object cooked)
205 throws AccessPoemException, ValidationPoemException {
206 ((org.paneris.bibliomania.User)g).setCountry((Country)cooked);
207 }
208
209 public Field<Integer> asField(Persistent g) {
210 return ((org.paneris.bibliomania.User)g).getCountryField();
211 }
212
213 public DisplayLevel defaultDisplayLevel() {
214 return DisplayLevel.record;
215 }
216
217 public int defaultDisplayOrder() {
218 return 2;
219 }
220
221 public String defaultDescription() {
222 return "The country where you live";
223 }
224
225 public Object getRaw_unsafe(Persistent g)
226 throws AccessPoemException {
227 return ((org.paneris.bibliomania.User)g).getCountry_unsafe();
228 }
229
230 public void setRaw_unsafe(Persistent g, Object raw)
231 throws AccessPoemException {
232 ((org.paneris.bibliomania.User)g).setCountry_unsafe((Integer)raw);
233 }
234
235 public Object getRaw(Persistent g)
236 throws AccessPoemException {
237 return ((org.paneris.bibliomania.User)g).getCountryTroid();
238 }
239
240 public void setRaw(Persistent g, Object raw)
241 throws AccessPoemException {
242 ((org.paneris.bibliomania.User)g).setCountryTroid((Integer)raw);
243 }
244 });
245
246 defineColumn(col_region =
247 new Column<String>(this, "region",
248 new StringPoemType(true, -1),
249 DefinitionSource.dsd) {
250 public Object getCooked(Persistent g)
251 throws AccessPoemException, PoemException {
252 return ((org.paneris.bibliomania.User)g).getRegion();
253 }
254
255 public void setCooked(Persistent g, Object cooked)
256 throws AccessPoemException, ValidationPoemException {
257 ((org.paneris.bibliomania.User)g).setRegion((String)cooked);
258 }
259
260 public Field<String> asField(Persistent g) {
261 return ((org.paneris.bibliomania.User)g).getRegionField();
262 }
263
264 public DisplayLevel defaultDisplayLevel() {
265 return DisplayLevel.record;
266 }
267
268 public String defaultDisplayName() {
269 return "Post/Zip code";
270 }
271
272 public int defaultDisplayOrder() {
273 return 3;
274 }
275
276 public String defaultDescription() {
277 return "Your postal code";
278 }
279
280 public Object getRaw_unsafe(Persistent g)
281 throws AccessPoemException {
282 return ((org.paneris.bibliomania.User)g).getRegion_unsafe();
283 }
284
285 public void setRaw_unsafe(Persistent g, Object raw)
286 throws AccessPoemException {
287 ((org.paneris.bibliomania.User)g).setRegion_unsafe((String)raw);
288 }
289
290 public Object getRaw(Persistent g)
291 throws AccessPoemException {
292 return ((org.paneris.bibliomania.User)g).getRegion();
293 }
294
295 public void setRaw(Persistent g, Object raw)
296 throws AccessPoemException {
297 ((org.paneris.bibliomania.User)g).setRegion((String)raw);
298 }
299 });
300
301 defineColumn(col_fulltimeeducation =
302 new Column<Boolean>(this, "fulltimeeducation",
303 new BooleanPoemType(false),
304 DefinitionSource.dsd) {
305 public Object getCooked(Persistent g)
306 throws AccessPoemException, PoemException {
307 return ((org.paneris.bibliomania.User)g).getFulltimeeducation();
308 }
309
310 public void setCooked(Persistent g, Object cooked)
311 throws AccessPoemException, ValidationPoemException {
312 ((org.paneris.bibliomania.User)g).setFulltimeeducation((Boolean)cooked);
313 }
314
315 public Field<Boolean> asField(Persistent g) {
316 return ((org.paneris.bibliomania.User)g).getFulltimeeducationField();
317 }
318
319 public DisplayLevel defaultDisplayLevel() {
320 return DisplayLevel.record;
321 }
322
323 public String defaultDisplayName() {
324 return "Full time education";
325 }
326
327 public int defaultDisplayOrder() {
328 return 4;
329 }
330
331 public String defaultDescription() {
332 return "Whether you are in full-time education";
333 }
334
335 public Object getRaw_unsafe(Persistent g)
336 throws AccessPoemException {
337 return ((org.paneris.bibliomania.User)g).getFulltimeeducation_unsafe();
338 }
339
340 public void setRaw_unsafe(Persistent g, Object raw)
341 throws AccessPoemException {
342 ((org.paneris.bibliomania.User)g).setFulltimeeducation_unsafe((Boolean)raw);
343 }
344
345 public Object getRaw(Persistent g)
346 throws AccessPoemException {
347 return ((org.paneris.bibliomania.User)g).getFulltimeeducation();
348 }
349
350 public void setRaw(Persistent g, Object raw)
351 throws AccessPoemException {
352 ((org.paneris.bibliomania.User)g).setFulltimeeducation((Boolean)raw);
353 }
354 });
355
356 defineColumn(col_wantemailalerts =
357 new Column<Boolean>(this, "wantemailalerts",
358 new BooleanPoemType(false),
359 DefinitionSource.dsd) {
360 public Object getCooked(Persistent g)
361 throws AccessPoemException, PoemException {
362 return ((org.paneris.bibliomania.User)g).getWantemailalerts();
363 }
364
365 public void setCooked(Persistent g, Object cooked)
366 throws AccessPoemException, ValidationPoemException {
367 ((org.paneris.bibliomania.User)g).setWantemailalerts((Boolean)cooked);
368 }
369
370 public Field<Boolean> asField(Persistent g) {
371 return ((org.paneris.bibliomania.User)g).getWantemailalertsField();
372 }
373
374 public DisplayLevel defaultDisplayLevel() {
375 return DisplayLevel.summary;
376 }
377
378 public String defaultDisplayName() {
379 return "Email alerts";
380 }
381
382 public int defaultDisplayOrder() {
383 return 5;
384 }
385
386 public String defaultDescription() {
387 return "Whether you want to receive email alerts";
388 }
389
390 public Object getRaw_unsafe(Persistent g)
391 throws AccessPoemException {
392 return ((org.paneris.bibliomania.User)g).getWantemailalerts_unsafe();
393 }
394
395 public void setRaw_unsafe(Persistent g, Object raw)
396 throws AccessPoemException {
397 ((org.paneris.bibliomania.User)g).setWantemailalerts_unsafe((Boolean)raw);
398 }
399
400 public Object getRaw(Persistent g)
401 throws AccessPoemException {
402 return ((org.paneris.bibliomania.User)g).getWantemailalerts();
403 }
404
405 public void setRaw(Persistent g, Object raw)
406 throws AccessPoemException {
407 ((org.paneris.bibliomania.User)g).setWantemailalerts((Boolean)raw);
408 }
409 });
410
411 defineColumn(col_wantspam =
412 new Column<Boolean>(this, "wantspam",
413 new BooleanPoemType(false),
414 DefinitionSource.dsd) {
415 public Object getCooked(Persistent g)
416 throws AccessPoemException, PoemException {
417 return ((org.paneris.bibliomania.User)g).getWantspam();
418 }
419
420 public void setCooked(Persistent g, Object cooked)
421 throws AccessPoemException, ValidationPoemException {
422 ((org.paneris.bibliomania.User)g).setWantspam((Boolean)cooked);
423 }
424
425 public Field<Boolean> asField(Persistent g) {
426 return ((org.paneris.bibliomania.User)g).getWantspamField();
427 }
428
429 public DisplayLevel defaultDisplayLevel() {
430 return DisplayLevel.summary;
431 }
432
433 public String defaultDisplayName() {
434 return "Newsletter";
435 }
436
437 public int defaultDisplayOrder() {
438 return 6;
439 }
440
441 public String defaultDescription() {
442 return "Whether you want to receive the bibliomania.com newsletter";
443 }
444
445 public Object getRaw_unsafe(Persistent g)
446 throws AccessPoemException {
447 return ((org.paneris.bibliomania.User)g).getWantspam_unsafe();
448 }
449
450 public void setRaw_unsafe(Persistent g, Object raw)
451 throws AccessPoemException {
452 ((org.paneris.bibliomania.User)g).setWantspam_unsafe((Boolean)raw);
453 }
454
455 public Object getRaw(Persistent g)
456 throws AccessPoemException {
457 return ((org.paneris.bibliomania.User)g).getWantspam();
458 }
459
460 public void setRaw(Persistent g, Object raw)
461 throws AccessPoemException {
462 ((org.paneris.bibliomania.User)g).setWantspam((Boolean)raw);
463 }
464 });
465
466 defineColumn(col_dodgeyemail =
467 new Column<Boolean>(this, "dodgeyemail",
468 new BooleanPoemType(false),
469 DefinitionSource.dsd) {
470 public Object getCooked(Persistent g)
471 throws AccessPoemException, PoemException {
472 return ((org.paneris.bibliomania.User)g).getDodgeyemail();
473 }
474
475 public void setCooked(Persistent g, Object cooked)
476 throws AccessPoemException, ValidationPoemException {
477 ((org.paneris.bibliomania.User)g).setDodgeyemail((Boolean)cooked);
478 }
479
480 public Field<Boolean> asField(Persistent g) {
481 return ((org.paneris.bibliomania.User)g).getDodgeyemailField();
482 }
483
484 public DisplayLevel defaultDisplayLevel() {
485 return DisplayLevel.summary;
486 }
487
488 public String defaultDisplayName() {
489 return "Dodgey Email";
490 }
491
492 public int defaultDisplayOrder() {
493 return 7;
494 }
495
496 public String defaultDescription() {
497 return "Whether this user has 'Dodgey' email address";
498 }
499
500 public Object getRaw_unsafe(Persistent g)
501 throws AccessPoemException {
502 return ((org.paneris.bibliomania.User)g).getDodgeyemail_unsafe();
503 }
504
505 public void setRaw_unsafe(Persistent g, Object raw)
506 throws AccessPoemException {
507 ((org.paneris.bibliomania.User)g).setDodgeyemail_unsafe((Boolean)raw);
508 }
509
510 public Object getRaw(Persistent g)
511 throws AccessPoemException {
512 return ((org.paneris.bibliomania.User)g).getDodgeyemail();
513 }
514
515 public void setRaw(Persistent g, Object raw)
516 throws AccessPoemException {
517 ((org.paneris.bibliomania.User)g).setDodgeyemail((Boolean)raw);
518 }
519 });
520
521 defineColumn(col_address =
522 new Column<String>(this, "address",
523 new StringPoemType(true, -1),
524 DefinitionSource.dsd) {
525 public Object getCooked(Persistent g)
526 throws AccessPoemException, PoemException {
527 return ((org.paneris.bibliomania.User)g).getAddress();
528 }
529
530 public void setCooked(Persistent g, Object cooked)
531 throws AccessPoemException, ValidationPoemException {
532 ((org.paneris.bibliomania.User)g).setAddress((String)cooked);
533 }
534
535 public Field<String> asField(Persistent g) {
536 return ((org.paneris.bibliomania.User)g).getAddressField();
537 }
538
539 public DisplayLevel defaultDisplayLevel() {
540 return DisplayLevel.record;
541 }
542
543 public String defaultDisplayName() {
544 return "Address";
545 }
546
547 public int defaultDisplayOrder() {
548 return 8;
549 }
550
551 public String defaultDescription() {
552 return "Your address";
553 }
554
555 public int defaultWidth() {
556 return 30;
557 }
558
559 public int defaultHeight() {
560 return 4;
561 }
562
563 public Object getRaw_unsafe(Persistent g)
564 throws AccessPoemException {
565 return ((org.paneris.bibliomania.User)g).getAddress_unsafe();
566 }
567
568 public void setRaw_unsafe(Persistent g, Object raw)
569 throws AccessPoemException {
570 ((org.paneris.bibliomania.User)g).setAddress_unsafe((String)raw);
571 }
572
573 public Object getRaw(Persistent g)
574 throws AccessPoemException {
575 return ((org.paneris.bibliomania.User)g).getAddress();
576 }
577
578 public void setRaw(Persistent g, Object raw)
579 throws AccessPoemException {
580 ((org.paneris.bibliomania.User)g).setAddress((String)raw);
581 }
582 });
583
584 defineColumn(col_town =
585 new Column<String>(this, "town",
586 new StringPoemType(true, -1),
587 DefinitionSource.dsd) {
588 public Object getCooked(Persistent g)
589 throws AccessPoemException, PoemException {
590 return ((org.paneris.bibliomania.User)g).getTown();
591 }
592
593 public void setCooked(Persistent g, Object cooked)
594 throws AccessPoemException, ValidationPoemException {
595 ((org.paneris.bibliomania.User)g).setTown((String)cooked);
596 }
597
598 public Field<String> asField(Persistent g) {
599 return ((org.paneris.bibliomania.User)g).getTownField();
600 }
601
602 public DisplayLevel defaultDisplayLevel() {
603 return DisplayLevel.record;
604 }
605
606 public String defaultDisplayName() {
607 return "Town / City";
608 }
609
610 public int defaultDisplayOrder() {
611 return 9;
612 }
613
614 public String defaultDescription() {
615 return "The town / city where you live";
616 }
617
618 public int defaultWidth() {
619 return 30;
620 }
621
622 public Object getRaw_unsafe(Persistent g)
623 throws AccessPoemException {
624 return ((org.paneris.bibliomania.User)g).getTown_unsafe();
625 }
626
627 public void setRaw_unsafe(Persistent g, Object raw)
628 throws AccessPoemException {
629 ((org.paneris.bibliomania.User)g).setTown_unsafe((String)raw);
630 }
631
632 public Object getRaw(Persistent g)
633 throws AccessPoemException {
634 return ((org.paneris.bibliomania.User)g).getTown();
635 }
636
637 public void setRaw(Persistent g, Object raw)
638 throws AccessPoemException {
639 ((org.paneris.bibliomania.User)g).setTown((String)raw);
640 }
641 });
642
643 defineColumn(col_county =
644 new Column<String>(this, "county",
645 new StringPoemType(true, -1),
646 DefinitionSource.dsd) {
647 public Object getCooked(Persistent g)
648 throws AccessPoemException, PoemException {
649 return ((org.paneris.bibliomania.User)g).getCounty();
650 }
651
652 public void setCooked(Persistent g, Object cooked)
653 throws AccessPoemException, ValidationPoemException {
654 ((org.paneris.bibliomania.User)g).setCounty((String)cooked);
655 }
656
657 public Field<String> asField(Persistent g) {
658 return ((org.paneris.bibliomania.User)g).getCountyField();
659 }
660
661 public DisplayLevel defaultDisplayLevel() {
662 return DisplayLevel.record;
663 }
664
665 public String defaultDisplayName() {
666 return "County / State";
667 }
668
669 public int defaultDisplayOrder() {
670 return 10;
671 }
672
673 public String defaultDescription() {
674 return "The county / state where you live";
675 }
676
677 public int defaultWidth() {
678 return 30;
679 }
680
681 public Object getRaw_unsafe(Persistent g)
682 throws AccessPoemException {
683 return ((org.paneris.bibliomania.User)g).getCounty_unsafe();
684 }
685
686 public void setRaw_unsafe(Persistent g, Object raw)
687 throws AccessPoemException {
688 ((org.paneris.bibliomania.User)g).setCounty_unsafe((String)raw);
689 }
690
691 public Object getRaw(Persistent g)
692 throws AccessPoemException {
693 return ((org.paneris.bibliomania.User)g).getCounty();
694 }
695
696 public void setRaw(Persistent g, Object raw)
697 throws AccessPoemException {
698 ((org.paneris.bibliomania.User)g).setCounty((String)raw);
699 }
700 });
701
702 defineColumn(col_tel =
703 new Column<String>(this, "tel",
704 new StringPoemType(true, -1),
705 DefinitionSource.dsd) {
706 public Object getCooked(Persistent g)
707 throws AccessPoemException, PoemException {
708 return ((org.paneris.bibliomania.User)g).getTel();
709 }
710
711 public void setCooked(Persistent g, Object cooked)
712 throws AccessPoemException, ValidationPoemException {
713 ((org.paneris.bibliomania.User)g).setTel((String)cooked);
714 }
715
716 public Field<String> asField(Persistent g) {
717 return ((org.paneris.bibliomania.User)g).getTelField();
718 }
719
720 public DisplayLevel defaultDisplayLevel() {
721 return DisplayLevel.record;
722 }
723
724 public String defaultDisplayName() {
725 return "Telephone";
726 }
727
728 public int defaultDisplayOrder() {
729 return 11;
730 }
731
732 public String defaultDescription() {
733 return "Your telephone number";
734 }
735
736 public Object getRaw_unsafe(Persistent g)
737 throws AccessPoemException {
738 return ((org.paneris.bibliomania.User)g).getTel_unsafe();
739 }
740
741 public void setRaw_unsafe(Persistent g, Object raw)
742 throws AccessPoemException {
743 ((org.paneris.bibliomania.User)g).setTel_unsafe((String)raw);
744 }
745
746 public Object getRaw(Persistent g)
747 throws AccessPoemException {
748 return ((org.paneris.bibliomania.User)g).getTel();
749 }
750
751 public void setRaw(Persistent g, Object raw)
752 throws AccessPoemException {
753 ((org.paneris.bibliomania.User)g).setTel((String)raw);
754 }
755 });
756
757 defineColumn(col_currency =
758 new Column<Integer>(this, "currency",
759 new ReferencePoemType(getBibliomaniaDatabaseTables().
760 getCurrencyTable(), true),
761 DefinitionSource.dsd) {
762 public Object getCooked(Persistent g)
763 throws AccessPoemException, PoemException {
764 return ((org.paneris.bibliomania.User)g).getCurrency();
765 }
766
767 public void setCooked(Persistent g, Object cooked)
768 throws AccessPoemException, ValidationPoemException {
769 ((org.paneris.bibliomania.User)g).setCurrency((Currency)cooked);
770 }
771
772 public Field<Integer> asField(Persistent g) {
773 return ((org.paneris.bibliomania.User)g).getCurrencyField();
774 }
775
776 public DisplayLevel defaultDisplayLevel() {
777 return DisplayLevel.record;
778 }
779
780 public int defaultDisplayOrder() {
781 return 12;
782 }
783
784 public String defaultDescription() {
785 return "Your prefered currency";
786 }
787
788 public Object getRaw_unsafe(Persistent g)
789 throws AccessPoemException {
790 return ((org.paneris.bibliomania.User)g).getCurrency_unsafe();
791 }
792
793 public void setRaw_unsafe(Persistent g, Object raw)
794 throws AccessPoemException {
795 ((org.paneris.bibliomania.User)g).setCurrency_unsafe((Integer)raw);
796 }
797
798 public Object getRaw(Persistent g)
799 throws AccessPoemException {
800 return ((org.paneris.bibliomania.User)g).getCurrencyTroid();
801 }
802
803 public void setRaw(Persistent g, Object raw)
804 throws AccessPoemException {
805 ((org.paneris.bibliomania.User)g).setCurrencyTroid((Integer)raw);
806 }
807 });
808
809 defineColumn(col_bookmark =
810 new Column<String>(this, "bookmark",
811 new StringPoemType(true, -1),
812 DefinitionSource.dsd) {
813 public Object getCooked(Persistent g)
814 throws AccessPoemException, PoemException {
815 return ((org.paneris.bibliomania.User)g).getBookmark();
816 }
817
818 public void setCooked(Persistent g, Object cooked)
819 throws AccessPoemException, ValidationPoemException {
820 ((org.paneris.bibliomania.User)g).setBookmark((String)cooked);
821 }
822
823 public Field<String> asField(Persistent g) {
824 return ((org.paneris.bibliomania.User)g).getBookmarkField();
825 }
826
827 public DisplayLevel defaultDisplayLevel() {
828 return DisplayLevel.record;
829 }
830
831 public String defaultDisplayName() {
832 return "Bookmark";
833 }
834
835 public int defaultDisplayOrder() {
836 return 13;
837 }
838
839 public String defaultDescription() {
840 return "An URL that this user has bookmarked";
841 }
842
843 public int defaultWidth() {
844 return 50;
845 }
846
847 public Object getRaw_unsafe(Persistent g)
848 throws AccessPoemException {
849 return ((org.paneris.bibliomania.User)g).getBookmark_unsafe();
850 }
851
852 public void setRaw_unsafe(Persistent g, Object raw)
853 throws AccessPoemException {
854 ((org.paneris.bibliomania.User)g).setBookmark_unsafe((String)raw);
855 }
856
857 public Object getRaw(Persistent g)
858 throws AccessPoemException {
859 return ((org.paneris.bibliomania.User)g).getBookmark();
860 }
861
862 public void setRaw(Persistent g, Object raw)
863 throws AccessPoemException {
864 ((org.paneris.bibliomania.User)g).setBookmark((String)raw);
865 }
866 });
867
868 defineColumn(col_lastemailed =
869 new Column<Timestamp>(this, "lastemailed",
870 new TimestampPoemType(true),
871 DefinitionSource.dsd) {
872 public Object getCooked(Persistent g)
873 throws AccessPoemException, PoemException {
874 return ((org.paneris.bibliomania.User)g).getLastemailed();
875 }
876
877 public void setCooked(Persistent g, Object cooked)
878 throws AccessPoemException, ValidationPoemException {
879 ((org.paneris.bibliomania.User)g).setLastemailed((Timestamp)cooked);
880 }
881
882 public Field<Timestamp> asField(Persistent g) {
883 return ((org.paneris.bibliomania.User)g).getLastemailedField();
884 }
885
886 public DisplayLevel defaultDisplayLevel() {
887 return DisplayLevel.record;
888 }
889
890 public String defaultDisplayName() {
891 return "Last emailed";
892 }
893
894 public int defaultDisplayOrder() {
895 return 14;
896 }
897
898 public String defaultDescription() {
899 return "When was this user last emailed?";
900 }
901
902 public Object getRaw_unsafe(Persistent g)
903 throws AccessPoemException {
904 return ((org.paneris.bibliomania.User)g).getLastemailed_unsafe();
905 }
906
907 public void setRaw_unsafe(Persistent g, Object raw)
908 throws AccessPoemException {
909 ((org.paneris.bibliomania.User)g).setLastemailed_unsafe((Timestamp)raw);
910 }
911
912 public Object getRaw(Persistent g)
913 throws AccessPoemException {
914 return ((org.paneris.bibliomania.User)g).getLastemailed();
915 }
916
917 public void setRaw(Persistent g, Object raw)
918 throws AccessPoemException {
919 ((org.paneris.bibliomania.User)g).setLastemailed((Timestamp)raw);
920 }
921 });
922 }
923
924
925
926
927
928
929
930
931
932 public final Column<Integer> getAgeColumn() {
933 return col_age;
934 }
935
936
937
938
939
940
941
942
943
944 public final Column<Integer> getSexColumn() {
945 return col_sex;
946 }
947
948
949
950
951
952
953
954
955
956 public final Column<Integer> getCountryColumn() {
957 return col_country;
958 }
959
960
961
962
963
964
965
966
967
968 public final Column<String> getRegionColumn() {
969 return col_region;
970 }
971
972
973
974
975
976
977
978
979
980 public final Column<Boolean> getFulltimeeducationColumn() {
981 return col_fulltimeeducation;
982 }
983
984
985
986
987
988
989
990
991
992 public final Column<Boolean> getWantemailalertsColumn() {
993 return col_wantemailalerts;
994 }
995
996
997
998
999
1000
1001
1002
1003
1004 public final Column<Boolean> getWantspamColumn() {
1005 return col_wantspam;
1006 }
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016 public final Column<Boolean> getDodgeyemailColumn() {
1017 return col_dodgeyemail;
1018 }
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028 public final Column<String> getAddressColumn() {
1029 return col_address;
1030 }
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040 public final Column<String> getTownColumn() {
1041 return col_town;
1042 }
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052 public final Column<String> getCountyColumn() {
1053 return col_county;
1054 }
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064 public final Column<String> getTelColumn() {
1065 return col_tel;
1066 }
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076 public final Column<Integer> getCurrencyColumn() {
1077 return col_currency;
1078 }
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088 public final Column<String> getBookmarkColumn() {
1089 return col_bookmark;
1090 }
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100 public final Column<Timestamp> getLastemailedColumn() {
1101 return col_lastemailed;
1102 }
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112 public org.melati.poem.User getUserObject(Integer troid) {
1113 return (org.melati.poem.User)getObject(troid);
1114 }
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124 public org.melati.poem.User getUserObject(int troid) {
1125 return (org.melati.poem.User)getObject(troid);
1126 }
1127
1128 protected JdbcPersistent _newPersistent() {
1129 return new org.paneris.bibliomania.User();
1130 }
1131 public int defaultDisplayOrder() {
1132 return 2010;
1133 }
1134 }
1135