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.Capability;
10 import org.melati.poem.Column;
11 import org.melati.poem.Database;
12 import org.melati.poem.DefinitionSource;
13 import org.melati.poem.DisplayLevel;
14 import org.melati.poem.Field;
15 import org.melati.poem.IntegerPoemType;
16 import org.melati.poem.JdbcPersistent;
17 import org.melati.poem.Persistent;
18 import org.melati.poem.PoemException;
19 import org.melati.poem.ReferencePoemType;
20 import org.melati.poem.Searchability;
21 import org.melati.poem.StringPoemType;
22 import org.melati.poem.TimestampPoemType;
23 import org.melati.poem.TroidPoemType;
24 import org.melati.poem.ValidationPoemException;
25 import org.paneris.bibliomania.Advert;
26 import org.paneris.bibliomania.Author;
27 import org.paneris.bibliomania.BibliomaniaDatabaseTables;
28 import org.paneris.bibliomania.Book;
29 import org.paneris.bibliomania.Section;
30 import org.paneris.bibliomania.UnitTable;
31
32
33
34
35
36
37
38
39 public class BookTableBase<T extends Book> extends UnitTable<T> {
40
41 private Column<Integer> col_id = null;
42 private Column<Integer> col_section = null;
43 private Column<Integer> col_author = null;
44 private Column<Integer> col_advert = null;
45 private Column<Integer> col_authorsequence = null;
46 private Column<String> col_title = null;
47 private Column<String> col_fulltitleifdifferent = null;
48 private Column<Boolean> col_paginated = null;
49 private Column<String> col_metatag_description = null;
50 private Column<String> col_metatag_keywords = null;
51 private Column<Timestamp> col_lastbookshopsearch = null;
52 private Column<Integer> col_overridecanreadcontent = null;
53 private Column<String> col_summary = null;
54 private Column<Boolean> col_hasnofrontpage = null;
55 private Column<Boolean> col_nonstandard = null;
56
57
58
59
60
61
62
63
64
65
66
67 public BookTableBase(
68 Database database, String name,
69 DefinitionSource definitionSource) throws PoemException {
70 super(database, name, definitionSource);
71 }
72
73
74
75
76
77
78
79
80 public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() {
81 return (BibliomaniaDatabaseTables)getDatabase();
82 }
83
84
85
86
87
88
89
90 public void init() throws PoemException {
91 super.init();
92 defineColumn(col_id =
93 new Column<Integer>(this, "id",
94 new TroidPoemType(),
95 DefinitionSource.dsd) {
96 public Object getCooked(Persistent g)
97 throws AccessPoemException, PoemException {
98 return ((Book)g).getId();
99 }
100
101 public void setCooked(Persistent g, Object cooked)
102 throws AccessPoemException, ValidationPoemException {
103 ((Book)g).setId((Integer)cooked);
104 }
105
106 public Field<Integer> asField(Persistent g) {
107 return ((Book)g).getIdField();
108 }
109
110 public boolean defaultUserEditable() {
111 return false;
112 }
113
114 public boolean defaultUserCreateable() {
115 return false;
116 }
117
118 public int defaultDisplayOrder() {
119 return 0;
120 }
121
122 public Object getRaw_unsafe(Persistent g)
123 throws AccessPoemException {
124 return ((Book)g).getId_unsafe();
125 }
126
127 public void setRaw_unsafe(Persistent g, Object raw)
128 throws AccessPoemException {
129 ((Book)g).setId_unsafe((Integer)raw);
130 }
131
132 public Object getRaw(Persistent g)
133 throws AccessPoemException {
134 return ((Book)g).getId();
135 }
136
137 public void setRaw(Persistent g, Object raw)
138 throws AccessPoemException {
139 ((Book)g).setId((Integer)raw);
140 }
141 });
142
143 defineColumn(col_section =
144 new Column<Integer>(this, "section",
145 new ReferencePoemType(getBibliomaniaDatabaseTables().
146 getSectionTable(), false),
147 DefinitionSource.dsd) {
148 public Object getCooked(Persistent g)
149 throws AccessPoemException, PoemException {
150 return ((Book)g).getSection();
151 }
152
153 public void setCooked(Persistent g, Object cooked)
154 throws AccessPoemException, ValidationPoemException {
155 ((Book)g).setSection((Section)cooked);
156 }
157
158 public Field<Integer> asField(Persistent g) {
159 return ((Book)g).getSectionField();
160 }
161
162 public int defaultDisplayOrder() {
163 return 1;
164 }
165
166 public String defaultDescription() {
167 return "The category under which the book falls";
168 }
169
170 public Object getRaw_unsafe(Persistent g)
171 throws AccessPoemException {
172 return ((Book)g).getSection_unsafe();
173 }
174
175 public void setRaw_unsafe(Persistent g, Object raw)
176 throws AccessPoemException {
177 ((Book)g).setSection_unsafe((Integer)raw);
178 }
179
180 public Object getRaw(Persistent g)
181 throws AccessPoemException {
182 return ((Book)g).getSectionTroid();
183 }
184
185 public void setRaw(Persistent g, Object raw)
186 throws AccessPoemException {
187 ((Book)g).setSectionTroid((Integer)raw);
188 }
189 });
190
191 defineColumn(col_author =
192 new Column<Integer>(this, "author",
193 new ReferencePoemType(getBibliomaniaDatabaseTables().
194 getAuthorTable(), false),
195 DefinitionSource.dsd) {
196 public Object getCooked(Persistent g)
197 throws AccessPoemException, PoemException {
198 return ((Book)g).getAuthor();
199 }
200
201 public void setCooked(Persistent g, Object cooked)
202 throws AccessPoemException, ValidationPoemException {
203 ((Book)g).setAuthor((Author)cooked);
204 }
205
206 public Field<Integer> asField(Persistent g) {
207 return ((Book)g).getAuthorField();
208 }
209
210 public int defaultDisplayOrder() {
211 return 2;
212 }
213
214 public String defaultDescription() {
215 return "The book's author";
216 }
217
218 public String defaultRenderinfo() {
219 return "SelectionWindow";
220 }
221
222 public Object getRaw_unsafe(Persistent g)
223 throws AccessPoemException {
224 return ((Book)g).getAuthor_unsafe();
225 }
226
227 public void setRaw_unsafe(Persistent g, Object raw)
228 throws AccessPoemException {
229 ((Book)g).setAuthor_unsafe((Integer)raw);
230 }
231
232 public Object getRaw(Persistent g)
233 throws AccessPoemException {
234 return ((Book)g).getAuthorTroid();
235 }
236
237 public void setRaw(Persistent g, Object raw)
238 throws AccessPoemException {
239 ((Book)g).setAuthorTroid((Integer)raw);
240 }
241 });
242
243 defineColumn(col_advert =
244 new Column<Integer>(this, "advert",
245 new ReferencePoemType(getBibliomaniaDatabaseTables().
246 getAdvertTable(), true),
247 DefinitionSource.dsd) {
248 public Object getCooked(Persistent g)
249 throws AccessPoemException, PoemException {
250 return ((Book)g).getAdvert();
251 }
252
253 public void setCooked(Persistent g, Object cooked)
254 throws AccessPoemException, ValidationPoemException {
255 ((Book)g).setAdvert((Advert)cooked);
256 }
257
258 public Field<Integer> asField(Persistent g) {
259 return ((Book)g).getAdvertField();
260 }
261
262 public int defaultDisplayOrder() {
263 return 3;
264 }
265
266 public String defaultDescription() {
267 return "Advert for this book";
268 }
269
270 public Object getRaw_unsafe(Persistent g)
271 throws AccessPoemException {
272 return ((Book)g).getAdvert_unsafe();
273 }
274
275 public void setRaw_unsafe(Persistent g, Object raw)
276 throws AccessPoemException {
277 ((Book)g).setAdvert_unsafe((Integer)raw);
278 }
279
280 public Object getRaw(Persistent g)
281 throws AccessPoemException {
282 return ((Book)g).getAdvertTroid();
283 }
284
285 public void setRaw(Persistent g, Object raw)
286 throws AccessPoemException {
287 ((Book)g).setAdvertTroid((Integer)raw);
288 }
289 });
290
291 defineColumn(col_authorsequence =
292 new Column<Integer>(this, "authorsequence",
293 new IntegerPoemType(false),
294 DefinitionSource.dsd) {
295 public Object getCooked(Persistent g)
296 throws AccessPoemException, PoemException {
297 return ((Book)g).getAuthorsequence();
298 }
299
300 public void setCooked(Persistent g, Object cooked)
301 throws AccessPoemException, ValidationPoemException {
302 ((Book)g).setAuthorsequence((Integer)cooked);
303 }
304
305 public Field<Integer> asField(Persistent g) {
306 return ((Book)g).getAuthorsequenceField();
307 }
308
309 public boolean defaultUserEditable() {
310 return false;
311 }
312
313 public boolean defaultUserCreateable() {
314 return false;
315 }
316
317 public DisplayLevel defaultDisplayLevel() {
318 return DisplayLevel.record;
319 }
320
321 public Searchability defaultSearchability() {
322 return Searchability.no;
323 }
324
325 public int defaultDisplayOrder() {
326 return 4;
327 }
328
329 public String defaultDescription() {
330 return "An internal number used to distinguish between books by the same author in creating textIDs for the full text indexing subsystem";
331 }
332
333 public boolean defaultIndexed() {
334 return true;
335 }
336
337 public Object getRaw_unsafe(Persistent g)
338 throws AccessPoemException {
339 return ((Book)g).getAuthorsequence_unsafe();
340 }
341
342 public void setRaw_unsafe(Persistent g, Object raw)
343 throws AccessPoemException {
344 ((Book)g).setAuthorsequence_unsafe((Integer)raw);
345 }
346
347 public Object getRaw(Persistent g)
348 throws AccessPoemException {
349 return ((Book)g).getAuthorsequence();
350 }
351
352 public void setRaw(Persistent g, Object raw)
353 throws AccessPoemException {
354 ((Book)g).setAuthorsequence((Integer)raw);
355 }
356 });
357
358 defineColumn(col_title =
359 new Column<String>(this, "title",
360 new StringPoemType(false, -1),
361 DefinitionSource.dsd) {
362 public Object getCooked(Persistent g)
363 throws AccessPoemException, PoemException {
364 return ((Book)g).getTitle();
365 }
366
367 public void setCooked(Persistent g, Object cooked)
368 throws AccessPoemException, ValidationPoemException {
369 ((Book)g).setTitle((String)cooked);
370 }
371
372 public Field<String> asField(Persistent g) {
373 return ((Book)g).getTitleField();
374 }
375
376 public DisplayLevel defaultDisplayLevel() {
377 return DisplayLevel.primary;
378 }
379
380 public Searchability defaultSearchability() {
381 return Searchability.primary;
382 }
383
384 public Integer defaultDisplayOrderPriority() {
385 return new Integer(0);
386 }
387
388 public String defaultDisplayName() {
389 return "Short title";
390 }
391
392 public int defaultDisplayOrder() {
393 return 5;
394 }
395
396 public String defaultDescription() {
397 return "A manageably short version of the book's title";
398 }
399
400 public Object getRaw_unsafe(Persistent g)
401 throws AccessPoemException {
402 return ((Book)g).getTitle_unsafe();
403 }
404
405 public void setRaw_unsafe(Persistent g, Object raw)
406 throws AccessPoemException {
407 ((Book)g).setTitle_unsafe((String)raw);
408 }
409
410 public Object getRaw(Persistent g)
411 throws AccessPoemException {
412 return ((Book)g).getTitle();
413 }
414
415 public void setRaw(Persistent g, Object raw)
416 throws AccessPoemException {
417 ((Book)g).setTitle((String)raw);
418 }
419 });
420
421 defineColumn(col_fulltitleifdifferent =
422 new Column<String>(this, "fulltitleifdifferent",
423 new StringPoemType(true, -1),
424 DefinitionSource.dsd) {
425 public Object getCooked(Persistent g)
426 throws AccessPoemException, PoemException {
427 return ((Book)g).getFulltitleifdifferent();
428 }
429
430 public void setCooked(Persistent g, Object cooked)
431 throws AccessPoemException, ValidationPoemException {
432 ((Book)g).setFulltitleifdifferent((String)cooked);
433 }
434
435 public Field<String> asField(Persistent g) {
436 return ((Book)g).getFulltitleifdifferentField();
437 }
438
439 public DisplayLevel defaultDisplayLevel() {
440 return DisplayLevel.record;
441 }
442
443 public String defaultDisplayName() {
444 return "Full title";
445 }
446
447 public int defaultDisplayOrder() {
448 return 6;
449 }
450
451 public String defaultDescription() {
452 return "The `full Monty' version of the book's title, if different";
453 }
454
455 public Object getRaw_unsafe(Persistent g)
456 throws AccessPoemException {
457 return ((Book)g).getFulltitleifdifferent_unsafe();
458 }
459
460 public void setRaw_unsafe(Persistent g, Object raw)
461 throws AccessPoemException {
462 ((Book)g).setFulltitleifdifferent_unsafe((String)raw);
463 }
464
465 public Object getRaw(Persistent g)
466 throws AccessPoemException {
467 return ((Book)g).getFulltitleifdifferent();
468 }
469
470 public void setRaw(Persistent g, Object raw)
471 throws AccessPoemException {
472 ((Book)g).setFulltitleifdifferent((String)raw);
473 }
474 });
475
476 defineColumn(col_paginated =
477 new Column<Boolean>(this, "paginated",
478 new BooleanPoemType(false),
479 DefinitionSource.dsd) {
480 public Object getCooked(Persistent g)
481 throws AccessPoemException, PoemException {
482 return ((Book)g).getPaginated();
483 }
484
485 public void setCooked(Persistent g, Object cooked)
486 throws AccessPoemException, ValidationPoemException {
487 ((Book)g).setPaginated((Boolean)cooked);
488 }
489
490 public Field<Boolean> asField(Persistent g) {
491 return ((Book)g).getPaginatedField();
492 }
493
494 public DisplayLevel defaultDisplayLevel() {
495 return DisplayLevel.record;
496 }
497
498 public int defaultDisplayOrder() {
499 return 7;
500 }
501
502 public String defaultDescription() {
503 return "Whether the book's chapters should be displayed in pre-paginated form";
504 }
505
506 public Object getRaw_unsafe(Persistent g)
507 throws AccessPoemException {
508 return ((Book)g).getPaginated_unsafe();
509 }
510
511 public void setRaw_unsafe(Persistent g, Object raw)
512 throws AccessPoemException {
513 ((Book)g).setPaginated_unsafe((Boolean)raw);
514 }
515
516 public Object getRaw(Persistent g)
517 throws AccessPoemException {
518 return ((Book)g).getPaginated();
519 }
520
521 public void setRaw(Persistent g, Object raw)
522 throws AccessPoemException {
523 ((Book)g).setPaginated((Boolean)raw);
524 }
525 });
526
527 defineColumn(col_metatag_description =
528 new Column<String>(this, "metatag_description",
529 new StringPoemType(true, -1),
530 DefinitionSource.dsd) {
531 public Object getCooked(Persistent g)
532 throws AccessPoemException, PoemException {
533 return ((Book)g).getMetatag_description();
534 }
535
536 public void setCooked(Persistent g, Object cooked)
537 throws AccessPoemException, ValidationPoemException {
538 ((Book)g).setMetatag_description((String)cooked);
539 }
540
541 public Field<String> asField(Persistent g) {
542 return ((Book)g).getMetatag_descriptionField();
543 }
544
545 public DisplayLevel defaultDisplayLevel() {
546 return DisplayLevel.record;
547 }
548
549 public Searchability defaultSearchability() {
550 return Searchability.no;
551 }
552
553 public int defaultDisplayOrder() {
554 return 8;
555 }
556
557 public Object getRaw_unsafe(Persistent g)
558 throws AccessPoemException {
559 return ((Book)g).getMetatag_description_unsafe();
560 }
561
562 public void setRaw_unsafe(Persistent g, Object raw)
563 throws AccessPoemException {
564 ((Book)g).setMetatag_description_unsafe((String)raw);
565 }
566
567 public Object getRaw(Persistent g)
568 throws AccessPoemException {
569 return ((Book)g).getMetatag_description();
570 }
571
572 public void setRaw(Persistent g, Object raw)
573 throws AccessPoemException {
574 ((Book)g).setMetatag_description((String)raw);
575 }
576 });
577
578 defineColumn(col_metatag_keywords =
579 new Column<String>(this, "metatag_keywords",
580 new StringPoemType(true, -1),
581 DefinitionSource.dsd) {
582 public Object getCooked(Persistent g)
583 throws AccessPoemException, PoemException {
584 return ((Book)g).getMetatag_keywords();
585 }
586
587 public void setCooked(Persistent g, Object cooked)
588 throws AccessPoemException, ValidationPoemException {
589 ((Book)g).setMetatag_keywords((String)cooked);
590 }
591
592 public Field<String> asField(Persistent g) {
593 return ((Book)g).getMetatag_keywordsField();
594 }
595
596 public DisplayLevel defaultDisplayLevel() {
597 return DisplayLevel.record;
598 }
599
600 public Searchability defaultSearchability() {
601 return Searchability.no;
602 }
603
604 public int defaultDisplayOrder() {
605 return 9;
606 }
607
608 public Object getRaw_unsafe(Persistent g)
609 throws AccessPoemException {
610 return ((Book)g).getMetatag_keywords_unsafe();
611 }
612
613 public void setRaw_unsafe(Persistent g, Object raw)
614 throws AccessPoemException {
615 ((Book)g).setMetatag_keywords_unsafe((String)raw);
616 }
617
618 public Object getRaw(Persistent g)
619 throws AccessPoemException {
620 return ((Book)g).getMetatag_keywords();
621 }
622
623 public void setRaw(Persistent g, Object raw)
624 throws AccessPoemException {
625 ((Book)g).setMetatag_keywords((String)raw);
626 }
627 });
628
629 defineColumn(col_lastbookshopsearch =
630 new Column<Timestamp>(this, "lastbookshopsearch",
631 new TimestampPoemType(true),
632 DefinitionSource.dsd) {
633 public Object getCooked(Persistent g)
634 throws AccessPoemException, PoemException {
635 return ((Book)g).getLastbookshopsearch();
636 }
637
638 public void setCooked(Persistent g, Object cooked)
639 throws AccessPoemException, ValidationPoemException {
640 ((Book)g).setLastbookshopsearch((Timestamp)cooked);
641 }
642
643 public Field<Timestamp> asField(Persistent g) {
644 return ((Book)g).getLastbookshopsearchField();
645 }
646
647 public DisplayLevel defaultDisplayLevel() {
648 return DisplayLevel.record;
649 }
650
651 public String defaultDisplayName() {
652 return "Last bookshop search";
653 }
654
655 public int defaultDisplayOrder() {
656 return 10;
657 }
658
659 public String defaultDescription() {
660 return "When a search was last made for stockings of this book in the online bookshops";
661 }
662
663 public boolean defaultIndexed() {
664 return true;
665 }
666
667 public Object getRaw_unsafe(Persistent g)
668 throws AccessPoemException {
669 return ((Book)g).getLastbookshopsearch_unsafe();
670 }
671
672 public void setRaw_unsafe(Persistent g, Object raw)
673 throws AccessPoemException {
674 ((Book)g).setLastbookshopsearch_unsafe((Timestamp)raw);
675 }
676
677 public Object getRaw(Persistent g)
678 throws AccessPoemException {
679 return ((Book)g).getLastbookshopsearch();
680 }
681
682 public void setRaw(Persistent g, Object raw)
683 throws AccessPoemException {
684 ((Book)g).setLastbookshopsearch((Timestamp)raw);
685 }
686 });
687
688 defineColumn(col_overridecanreadcontent =
689 new Column<Integer>(this, "overridecanreadcontent",
690 new ReferencePoemType(getBibliomaniaDatabaseTables().
691 getCapabilityTable(), true),
692 DefinitionSource.dsd) {
693 public Object getCooked(Persistent g)
694 throws AccessPoemException, PoemException {
695 return ((Book)g).getOverridecanreadcontent();
696 }
697
698 public void setCooked(Persistent g, Object cooked)
699 throws AccessPoemException, ValidationPoemException {
700 ((Book)g).setOverridecanreadcontent((Capability)cooked);
701 }
702
703 public Field<Integer> asField(Persistent g) {
704 return ((Book)g).getOverridecanreadcontentField();
705 }
706
707 public DisplayLevel defaultDisplayLevel() {
708 return DisplayLevel.record;
709 }
710
711 public Searchability defaultSearchability() {
712 return Searchability.no;
713 }
714
715 public String defaultDisplayName() {
716 return "`Read content' capability";
717 }
718
719 public int defaultDisplayOrder() {
720 return 11;
721 }
722
723 public String defaultDescription() {
724 return "The capability required for reading the book (defaults to that for section)";
725 }
726
727 public Object getRaw_unsafe(Persistent g)
728 throws AccessPoemException {
729 return ((Book)g).getOverridecanreadcontent_unsafe();
730 }
731
732 public void setRaw_unsafe(Persistent g, Object raw)
733 throws AccessPoemException {
734 ((Book)g).setOverridecanreadcontent_unsafe((Integer)raw);
735 }
736
737 public Object getRaw(Persistent g)
738 throws AccessPoemException {
739 return ((Book)g).getOverridecanreadcontentTroid();
740 }
741
742 public void setRaw(Persistent g, Object raw)
743 throws AccessPoemException {
744 ((Book)g).setOverridecanreadcontentTroid((Integer)raw);
745 }
746 });
747
748 defineColumn(col_summary =
749 new Column<String>(this, "summary",
750 new StringPoemType(true, -1),
751 DefinitionSource.dsd) {
752 public Object getCooked(Persistent g)
753 throws AccessPoemException, PoemException {
754 return ((Book)g).getSummary();
755 }
756
757 public void setCooked(Persistent g, Object cooked)
758 throws AccessPoemException, ValidationPoemException {
759 ((Book)g).setSummary((String)cooked);
760 }
761
762 public Field<String> asField(Persistent g) {
763 return ((Book)g).getSummaryField();
764 }
765
766 public DisplayLevel defaultDisplayLevel() {
767 return DisplayLevel.record;
768 }
769
770 public Searchability defaultSearchability() {
771 return Searchability.no;
772 }
773
774 public int defaultDisplayOrder() {
775 return 12;
776 }
777
778 public String defaultDescription() {
779 return "The book's blurb, to appear on its TOC page";
780 }
781
782 public int defaultWidth() {
783 return 80;
784 }
785
786 public int defaultHeight() {
787 return 20;
788 }
789
790 public Object getRaw_unsafe(Persistent g)
791 throws AccessPoemException {
792 return ((Book)g).getSummary_unsafe();
793 }
794
795 public void setRaw_unsafe(Persistent g, Object raw)
796 throws AccessPoemException {
797 ((Book)g).setSummary_unsafe((String)raw);
798 }
799
800 public Object getRaw(Persistent g)
801 throws AccessPoemException {
802 return ((Book)g).getSummary();
803 }
804
805 public void setRaw(Persistent g, Object raw)
806 throws AccessPoemException {
807 ((Book)g).setSummary((String)raw);
808 }
809 });
810
811 defineColumn(col_hasnofrontpage =
812 new Column<Boolean>(this, "hasnofrontpage",
813 new BooleanPoemType(false),
814 DefinitionSource.dsd) {
815 public Object getCooked(Persistent g)
816 throws AccessPoemException, PoemException {
817 return ((Book)g).getHasnofrontpage();
818 }
819
820 public void setCooked(Persistent g, Object cooked)
821 throws AccessPoemException, ValidationPoemException {
822 ((Book)g).setHasnofrontpage((Boolean)cooked);
823 }
824
825 public Field<Boolean> asField(Persistent g) {
826 return ((Book)g).getHasnofrontpageField();
827 }
828
829 public DisplayLevel defaultDisplayLevel() {
830 return DisplayLevel.record;
831 }
832
833 public Searchability defaultSearchability() {
834 return Searchability.no;
835 }
836
837 public String defaultDisplayName() {
838 return "Has no front page";
839 }
840
841 public int defaultDisplayOrder() {
842 return 13;
843 }
844
845 public String defaultDescription() {
846 return "Whether the book should simply display the first page of its content instead of a `front page'";
847 }
848
849 public Object getRaw_unsafe(Persistent g)
850 throws AccessPoemException {
851 return ((Book)g).getHasnofrontpage_unsafe();
852 }
853
854 public void setRaw_unsafe(Persistent g, Object raw)
855 throws AccessPoemException {
856 ((Book)g).setHasnofrontpage_unsafe((Boolean)raw);
857 }
858
859 public Object getRaw(Persistent g)
860 throws AccessPoemException {
861 return ((Book)g).getHasnofrontpage();
862 }
863
864 public void setRaw(Persistent g, Object raw)
865 throws AccessPoemException {
866 ((Book)g).setHasnofrontpage((Boolean)raw);
867 }
868 });
869
870 defineColumn(col_nonstandard =
871 new Column<Boolean>(this, "nonstandard",
872 new BooleanPoemType(false),
873 DefinitionSource.dsd) {
874 public Object getCooked(Persistent g)
875 throws AccessPoemException, PoemException {
876 return ((Book)g).getNonstandard();
877 }
878
879 public void setCooked(Persistent g, Object cooked)
880 throws AccessPoemException, ValidationPoemException {
881 ((Book)g).setNonstandard((Boolean)cooked);
882 }
883
884 public Field<Boolean> asField(Persistent g) {
885 return ((Book)g).getNonstandardField();
886 }
887
888 public DisplayLevel defaultDisplayLevel() {
889 return DisplayLevel.record;
890 }
891
892 public Searchability defaultSearchability() {
893 return Searchability.no;
894 }
895
896 public String defaultDisplayName() {
897 return "Non-standard";
898 }
899
900 public int defaultDisplayOrder() {
901 return 14;
902 }
903
904 public String defaultDescription() {
905 return "Whether the book has its own non-standard template";
906 }
907
908 public Object getRaw_unsafe(Persistent g)
909 throws AccessPoemException {
910 return ((Book)g).getNonstandard_unsafe();
911 }
912
913 public void setRaw_unsafe(Persistent g, Object raw)
914 throws AccessPoemException {
915 ((Book)g).setNonstandard_unsafe((Boolean)raw);
916 }
917
918 public Object getRaw(Persistent g)
919 throws AccessPoemException {
920 return ((Book)g).getNonstandard();
921 }
922
923 public void setRaw(Persistent g, Object raw)
924 throws AccessPoemException {
925 ((Book)g).setNonstandard((Boolean)raw);
926 }
927 });
928 }
929
930
931
932
933
934
935
936
937
938 public final Column<Integer> getIdColumn() {
939 return col_id;
940 }
941
942
943
944
945
946
947
948
949
950 public final Column<Integer> getSectionColumn() {
951 return col_section;
952 }
953
954
955
956
957
958
959
960
961
962 public final Column<Integer> getAuthorColumn() {
963 return col_author;
964 }
965
966
967
968
969
970
971
972
973
974 public final Column<Integer> getAdvertColumn() {
975 return col_advert;
976 }
977
978
979
980
981
982
983
984
985
986 public final Column<Integer> getAuthorsequenceColumn() {
987 return col_authorsequence;
988 }
989
990
991
992
993
994
995
996
997
998 public final Column<String> getTitleColumn() {
999 return col_title;
1000 }
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010 public final Column<String> getFulltitleifdifferentColumn() {
1011 return col_fulltitleifdifferent;
1012 }
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022 public final Column<Boolean> getPaginatedColumn() {
1023 return col_paginated;
1024 }
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034 public final Column<String> getMetatag_descriptionColumn() {
1035 return col_metatag_description;
1036 }
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046 public final Column<String> getMetatag_keywordsColumn() {
1047 return col_metatag_keywords;
1048 }
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058 public final Column<Timestamp> getLastbookshopsearchColumn() {
1059 return col_lastbookshopsearch;
1060 }
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070 public final Column<Integer> getOverridecanreadcontentColumn() {
1071 return col_overridecanreadcontent;
1072 }
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082 public final Column<String> getSummaryColumn() {
1083 return col_summary;
1084 }
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094 public final Column<Boolean> getHasnofrontpageColumn() {
1095 return col_hasnofrontpage;
1096 }
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106 public final Column<Boolean> getNonstandardColumn() {
1107 return col_nonstandard;
1108 }
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118 public Book getBookObject(Integer troid) {
1119 return (Book)getObject(troid);
1120 }
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130 public Book getBookObject(int troid) {
1131 return (Book)getObject(troid);
1132 }
1133
1134 protected JdbcPersistent _newPersistent() {
1135 return new Book();
1136 }
1137 public String defaultDescription() {
1138 return "A book or other work";
1139 }
1140
1141 public int defaultDisplayOrder() {
1142 return 400;
1143 }
1144 }
1145