Coverage Report - org.paneris.bibliomania.generated.AuthorTableBase
 
Classes in this File Line Coverage Branch Coverage Complexity
AuthorTableBase
69%
32/46
N/A
1
AuthorTableBase$1
28%
4/14
N/A
1
AuthorTableBase$10
26%
4/15
N/A
1
AuthorTableBase$11
23%
4/17
N/A
1
AuthorTableBase$12
28%
4/14
N/A
1
AuthorTableBase$2
25%
4/16
N/A
1
AuthorTableBase$3
26%
4/15
N/A
1
AuthorTableBase$4
25%
4/16
N/A
1
AuthorTableBase$5
28%
4/14
N/A
1
AuthorTableBase$6
30%
4/13
N/A
1
AuthorTableBase$7
28%
4/14
N/A
1
AuthorTableBase$8
28%
4/14
N/A
1
AuthorTableBase$9
25%
4/16
N/A
1
 
 1  
 // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
 2  
 
 3  
 package org.paneris.bibliomania.generated;
 4  
 
 5  
 
 6  
 import org.melati.poem.AccessPoemException;
 7  
 import org.melati.poem.BooleanPoemType;
 8  
 import org.melati.poem.Column;
 9  
 import org.melati.poem.Database;
 10  
 import org.melati.poem.DefinitionSource;
 11  
 import org.melati.poem.DisplayLevel;
 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.ReferencePoemType;
 17  
 import org.melati.poem.Searchability;
 18  
 import org.melati.poem.StringPoemType;
 19  
 import org.melati.poem.TroidPoemType;
 20  
 import org.melati.poem.ValidationPoemException;
 21  
 import org.paneris.bibliomania.Advert;
 22  
 import org.paneris.bibliomania.Author;
 23  
 import org.paneris.bibliomania.BibliomaniaDatabaseTables;
 24  
 import org.paneris.bibliomania.Section;
 25  
 import org.paneris.bibliomania.UnitTable;
 26  
 
 27  
 
 28  
 /**
 29  
  * Melati POEM generated base class for <code>Table</code> <code>Author</code>.
 30  
  *
 31  
  * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 32  
  */
 33  
 
 34  
 public class AuthorTableBase<T extends Author> extends UnitTable<T> {
 35  
 
 36  2
   private Column<Integer> col_id = null;
 37  2
   private Column<String> col_displayname = null;
 38  2
   private Column<String> col_longnameifdifferent = null;
 39  2
   private Column<String> col_sortname = null;
 40  2
   private Column<Integer> col_section = null;
 41  2
   private Column<Integer> col_advert = null;
 42  2
   private Column<String> col_metatag_description = null;
 43  2
   private Column<String> col_metatag_keywords = null;
 44  2
   private Column<String> col_imagefilename = null;
 45  2
   private Column<String> col_blurb = null;
 46  2
   private Column<String> col_biography = null;
 47  2
   private Column<Boolean> col_nonstandard = null;
 48  
 
 49  
  /**
 50  
   * Constructor. 
 51  
   * 
 52  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 53  
   * @param database          the POEM database we are using
 54  
   * @param name              the name of this <code>Table</code>
 55  
   * @param definitionSource  which definition is being used
 56  
   * @throws PoemException    if anything goes wrong
 57  
   */
 58  
 
 59  
   public AuthorTableBase(
 60  
       Database database, String name,
 61  
       DefinitionSource definitionSource) throws PoemException {
 62  2
     super(database, name, definitionSource);
 63  2
   }
 64  
 
 65  
 
 66  
  /**
 67  
   * Get the database tables.
 68  
   *
 69  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 70  
   * @return the database tables
 71  
   */
 72  
   public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() {
 73  8
     return (BibliomaniaDatabaseTables)getDatabase();
 74  
   }
 75  
 
 76  
 
 77  
  /**
 78  
   * Initialise this table by defining its columns.
 79  
   *
 80  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 81  
   */
 82  
   public void init() throws PoemException {
 83  2
     super.init();
 84  2
     defineColumn(col_id =
 85  
         new Column<Integer>(this, "id",
 86  
                    new TroidPoemType(),
 87  2
                    DefinitionSource.dsd) { 
 88  
           public Object getCooked(Persistent g)
 89  
               throws AccessPoemException, PoemException {
 90  0
             return ((Author)g).getId();
 91  
           }
 92  
 
 93  
           public void setCooked(Persistent g, Object cooked)
 94  
               throws AccessPoemException, ValidationPoemException {
 95  0
             ((Author)g).setId((Integer)cooked);
 96  0
           }
 97  
 
 98  
           public Field<Integer> asField(Persistent g) {
 99  0
             return ((Author)g).getIdField();
 100  
           }
 101  
 
 102  
           public boolean defaultUserEditable() {
 103  0
             return false;
 104  
           }
 105  
 
 106  
           public boolean defaultUserCreateable() {
 107  0
             return false;
 108  
           }
 109  
 
 110  
           public int defaultDisplayOrder() {
 111  0
             return 0;
 112  
           }
 113  
 
 114  
           public Object getRaw_unsafe(Persistent g)
 115  
               throws AccessPoemException {
 116  1
             return ((Author)g).getId_unsafe();
 117  
           }
 118  
 
 119  
           public void setRaw_unsafe(Persistent g, Object raw)
 120  
               throws AccessPoemException {
 121  5
             ((Author)g).setId_unsafe((Integer)raw);
 122  5
           }
 123  
 
 124  
           public Object getRaw(Persistent g)
 125  
               throws AccessPoemException {
 126  0
             return ((Author)g).getId();
 127  
           }
 128  
 
 129  
           public void setRaw(Persistent g, Object raw)
 130  
               throws AccessPoemException {
 131  0
             ((Author)g).setId((Integer)raw);
 132  0
           }
 133  
         });
 134  
 
 135  2
     defineColumn(col_displayname =
 136  
         new Column<String>(this, "displayname",
 137  
                    new StringPoemType(false, -1),
 138  2
                    DefinitionSource.dsd) { 
 139  
           public Object getCooked(Persistent g)
 140  
               throws AccessPoemException, PoemException {
 141  0
             return ((Author)g).getDisplayname();
 142  
           }
 143  
 
 144  
           public void setCooked(Persistent g, Object cooked)
 145  
               throws AccessPoemException, ValidationPoemException {
 146  0
             ((Author)g).setDisplayname((String)cooked);
 147  0
           }
 148  
 
 149  
           public Field<String> asField(Persistent g) {
 150  0
             return ((Author)g).getDisplaynameField();
 151  
           }
 152  
 
 153  
           public DisplayLevel defaultDisplayLevel() {
 154  0
             return DisplayLevel.primary;
 155  
           }
 156  
 
 157  
           public Searchability defaultSearchability() {
 158  0
             return Searchability.primary;
 159  
           }
 160  
 
 161  
           public String defaultDisplayName() {
 162  0
             return "Short name";
 163  
           }
 164  
 
 165  
           public int defaultDisplayOrder() {
 166  0
             return 1;
 167  
           }
 168  
 
 169  
           public String defaultDescription() {
 170  0
             return "The author's full name in short form (`Yule and Burnell')";
 171  
           }
 172  
 
 173  
           public Object getRaw_unsafe(Persistent g)
 174  
               throws AccessPoemException {
 175  3
             return ((Author)g).getDisplayname_unsafe();
 176  
           }
 177  
 
 178  
           public void setRaw_unsafe(Persistent g, Object raw)
 179  
               throws AccessPoemException {
 180  2
             ((Author)g).setDisplayname_unsafe((String)raw);
 181  2
           }
 182  
 
 183  
           public Object getRaw(Persistent g)
 184  
               throws AccessPoemException {
 185  0
             return ((Author)g).getDisplayname();
 186  
           }
 187  
 
 188  
           public void setRaw(Persistent g, Object raw)
 189  
               throws AccessPoemException {
 190  0
             ((Author)g).setDisplayname((String)raw);
 191  0
           }
 192  
         });
 193  
 
 194  2
     defineColumn(col_longnameifdifferent =
 195  
         new Column<String>(this, "longnameifdifferent",
 196  
                    new StringPoemType(true, -1),
 197  2
                    DefinitionSource.dsd) { 
 198  
           public Object getCooked(Persistent g)
 199  
               throws AccessPoemException, PoemException {
 200  0
             return ((Author)g).getLongnameifdifferent();
 201  
           }
 202  
 
 203  
           public void setCooked(Persistent g, Object cooked)
 204  
               throws AccessPoemException, ValidationPoemException {
 205  0
             ((Author)g).setLongnameifdifferent((String)cooked);
 206  0
           }
 207  
 
 208  
           public Field<String> asField(Persistent g) {
 209  0
             return ((Author)g).getLongnameifdifferentField();
 210  
           }
 211  
 
 212  
           public DisplayLevel defaultDisplayLevel() {
 213  0
             return DisplayLevel.record;
 214  
           }
 215  
 
 216  
           public String defaultDisplayName() {
 217  0
             return "Long name";
 218  
           }
 219  
 
 220  
           public int defaultDisplayOrder() {
 221  0
             return 2;
 222  
           }
 223  
 
 224  
           public String defaultDescription() {
 225  0
             return "The author's full name in long form (`Col Henry Yule and A. C. Burnell'), if different";
 226  
           }
 227  
 
 228  
           public Object getRaw_unsafe(Persistent g)
 229  
               throws AccessPoemException {
 230  1
             return ((Author)g).getLongnameifdifferent_unsafe();
 231  
           }
 232  
 
 233  
           public void setRaw_unsafe(Persistent g, Object raw)
 234  
               throws AccessPoemException {
 235  2
             ((Author)g).setLongnameifdifferent_unsafe((String)raw);
 236  2
           }
 237  
 
 238  
           public Object getRaw(Persistent g)
 239  
               throws AccessPoemException {
 240  0
             return ((Author)g).getLongnameifdifferent();
 241  
           }
 242  
 
 243  
           public void setRaw(Persistent g, Object raw)
 244  
               throws AccessPoemException {
 245  0
             ((Author)g).setLongnameifdifferent((String)raw);
 246  0
           }
 247  
         });
 248  
 
 249  2
     defineColumn(col_sortname =
 250  
         new Column<String>(this, "sortname",
 251  
                    new StringPoemType(true, -1),
 252  2
                    DefinitionSource.dsd) { 
 253  
           public Object getCooked(Persistent g)
 254  
               throws AccessPoemException, PoemException {
 255  0
             return ((Author)g).getSortname();
 256  
           }
 257  
 
 258  
           public void setCooked(Persistent g, Object cooked)
 259  
               throws AccessPoemException, ValidationPoemException {
 260  0
             ((Author)g).setSortname((String)cooked);
 261  0
           }
 262  
 
 263  
           public Field<String> asField(Persistent g) {
 264  0
             return ((Author)g).getSortnameField();
 265  
           }
 266  
 
 267  
           public DisplayLevel defaultDisplayLevel() {
 268  0
             return DisplayLevel.record;
 269  
           }
 270  
 
 271  
           public Integer defaultDisplayOrderPriority() {
 272  0
             return new Integer(0);
 273  
           }
 274  
 
 275  
           public int defaultDisplayOrder() {
 276  0
             return 3;
 277  
           }
 278  
 
 279  
           public String defaultDescription() {
 280  0
             return "A name by which the author should be sorted (`Fenimore Cooper, James')";
 281  
           }
 282  
 
 283  
           public boolean defaultIndexed() {
 284  0
             return true;
 285  
           }
 286  
 
 287  
           public Object getRaw_unsafe(Persistent g)
 288  
               throws AccessPoemException {
 289  1
             return ((Author)g).getSortname_unsafe();
 290  
           }
 291  
 
 292  
           public void setRaw_unsafe(Persistent g, Object raw)
 293  
               throws AccessPoemException {
 294  2
             ((Author)g).setSortname_unsafe((String)raw);
 295  2
           }
 296  
 
 297  
           public Object getRaw(Persistent g)
 298  
               throws AccessPoemException {
 299  0
             return ((Author)g).getSortname();
 300  
           }
 301  
 
 302  
           public void setRaw(Persistent g, Object raw)
 303  
               throws AccessPoemException {
 304  0
             ((Author)g).setSortname((String)raw);
 305  0
           }
 306  
         });
 307  
 
 308  2
     defineColumn(col_section =
 309  
         new Column<Integer>(this, "section",
 310  
                    new ReferencePoemType(getBibliomaniaDatabaseTables().
 311  
                                              getSectionTable(), true),
 312  2
                    DefinitionSource.dsd) { 
 313  
           public Object getCooked(Persistent g)
 314  
               throws AccessPoemException, PoemException {
 315  0
             return ((Author)g).getSection();
 316  
           }
 317  
 
 318  
           public void setCooked(Persistent g, Object cooked)
 319  
               throws AccessPoemException, ValidationPoemException {
 320  0
             ((Author)g).setSection((Section)cooked);
 321  0
           }
 322  
 
 323  
           public Field<Integer> asField(Persistent g) {
 324  0
             return ((Author)g).getSectionField();
 325  
           }
 326  
 
 327  
           public DisplayLevel defaultDisplayLevel() {
 328  0
             return DisplayLevel.record;
 329  
           }
 330  
 
 331  
           public Searchability defaultSearchability() {
 332  0
             return Searchability.yes;
 333  
           }
 334  
 
 335  
           public int defaultDisplayOrder() {
 336  0
             return 4;
 337  
           }
 338  
 
 339  
           public Object getRaw_unsafe(Persistent g)
 340  
               throws AccessPoemException {
 341  1
             return ((Author)g).getSection_unsafe();
 342  
           }
 343  
 
 344  
           public void setRaw_unsafe(Persistent g, Object raw)
 345  
               throws AccessPoemException {
 346  2
             ((Author)g).setSection_unsafe((Integer)raw);
 347  2
           }
 348  
 
 349  
           public Object getRaw(Persistent g)
 350  
               throws AccessPoemException {
 351  0
             return ((Author)g).getSectionTroid();
 352  
           }
 353  
 
 354  
           public void setRaw(Persistent g, Object raw)
 355  
               throws AccessPoemException {
 356  0
             ((Author)g).setSectionTroid((Integer)raw);
 357  0
           }
 358  
         });
 359  
 
 360  2
     defineColumn(col_advert =
 361  
         new Column<Integer>(this, "advert",
 362  
                    new ReferencePoemType(getBibliomaniaDatabaseTables().
 363  
                                              getAdvertTable(), true),
 364  2
                    DefinitionSource.dsd) { 
 365  
           public Object getCooked(Persistent g)
 366  
               throws AccessPoemException, PoemException {
 367  0
             return ((Author)g).getAdvert();
 368  
           }
 369  
 
 370  
           public void setCooked(Persistent g, Object cooked)
 371  
               throws AccessPoemException, ValidationPoemException {
 372  0
             ((Author)g).setAdvert((Advert)cooked);
 373  0
           }
 374  
 
 375  
           public Field<Integer> asField(Persistent g) {
 376  0
             return ((Author)g).getAdvertField();
 377  
           }
 378  
 
 379  
           public int defaultDisplayOrder() {
 380  0
             return 5;
 381  
           }
 382  
 
 383  
           public String defaultDescription() {
 384  0
             return "Advert for this author";
 385  
           }
 386  
 
 387  
           public Object getRaw_unsafe(Persistent g)
 388  
               throws AccessPoemException {
 389  1
             return ((Author)g).getAdvert_unsafe();
 390  
           }
 391  
 
 392  
           public void setRaw_unsafe(Persistent g, Object raw)
 393  
               throws AccessPoemException {
 394  2
             ((Author)g).setAdvert_unsafe((Integer)raw);
 395  2
           }
 396  
 
 397  
           public Object getRaw(Persistent g)
 398  
               throws AccessPoemException {
 399  0
             return ((Author)g).getAdvertTroid();
 400  
           }
 401  
 
 402  
           public void setRaw(Persistent g, Object raw)
 403  
               throws AccessPoemException {
 404  0
             ((Author)g).setAdvertTroid((Integer)raw);
 405  0
           }
 406  
         });
 407  
 
 408  2
     defineColumn(col_metatag_description =
 409  
         new Column<String>(this, "metatag_description",
 410  
                    new StringPoemType(true, -1),
 411  2
                    DefinitionSource.dsd) { 
 412  
           public Object getCooked(Persistent g)
 413  
               throws AccessPoemException, PoemException {
 414  0
             return ((Author)g).getMetatag_description();
 415  
           }
 416  
 
 417  
           public void setCooked(Persistent g, Object cooked)
 418  
               throws AccessPoemException, ValidationPoemException {
 419  0
             ((Author)g).setMetatag_description((String)cooked);
 420  0
           }
 421  
 
 422  
           public Field<String> asField(Persistent g) {
 423  0
             return ((Author)g).getMetatag_descriptionField();
 424  
           }
 425  
 
 426  
           public DisplayLevel defaultDisplayLevel() {
 427  0
             return DisplayLevel.record;
 428  
           }
 429  
 
 430  
           public Searchability defaultSearchability() {
 431  0
             return Searchability.no;
 432  
           }
 433  
 
 434  
           public int defaultDisplayOrder() {
 435  0
             return 6;
 436  
           }
 437  
 
 438  
           public Object getRaw_unsafe(Persistent g)
 439  
               throws AccessPoemException {
 440  1
             return ((Author)g).getMetatag_description_unsafe();
 441  
           }
 442  
 
 443  
           public void setRaw_unsafe(Persistent g, Object raw)
 444  
               throws AccessPoemException {
 445  2
             ((Author)g).setMetatag_description_unsafe((String)raw);
 446  2
           }
 447  
 
 448  
           public Object getRaw(Persistent g)
 449  
               throws AccessPoemException {
 450  0
             return ((Author)g).getMetatag_description();
 451  
           }
 452  
 
 453  
           public void setRaw(Persistent g, Object raw)
 454  
               throws AccessPoemException {
 455  0
             ((Author)g).setMetatag_description((String)raw);
 456  0
           }
 457  
         });
 458  
 
 459  2
     defineColumn(col_metatag_keywords =
 460  
         new Column<String>(this, "metatag_keywords",
 461  
                    new StringPoemType(true, -1),
 462  2
                    DefinitionSource.dsd) { 
 463  
           public Object getCooked(Persistent g)
 464  
               throws AccessPoemException, PoemException {
 465  0
             return ((Author)g).getMetatag_keywords();
 466  
           }
 467  
 
 468  
           public void setCooked(Persistent g, Object cooked)
 469  
               throws AccessPoemException, ValidationPoemException {
 470  0
             ((Author)g).setMetatag_keywords((String)cooked);
 471  0
           }
 472  
 
 473  
           public Field<String> asField(Persistent g) {
 474  0
             return ((Author)g).getMetatag_keywordsField();
 475  
           }
 476  
 
 477  
           public DisplayLevel defaultDisplayLevel() {
 478  0
             return DisplayLevel.record;
 479  
           }
 480  
 
 481  
           public Searchability defaultSearchability() {
 482  0
             return Searchability.no;
 483  
           }
 484  
 
 485  
           public int defaultDisplayOrder() {
 486  0
             return 7;
 487  
           }
 488  
 
 489  
           public Object getRaw_unsafe(Persistent g)
 490  
               throws AccessPoemException {
 491  1
             return ((Author)g).getMetatag_keywords_unsafe();
 492  
           }
 493  
 
 494  
           public void setRaw_unsafe(Persistent g, Object raw)
 495  
               throws AccessPoemException {
 496  2
             ((Author)g).setMetatag_keywords_unsafe((String)raw);
 497  2
           }
 498  
 
 499  
           public Object getRaw(Persistent g)
 500  
               throws AccessPoemException {
 501  0
             return ((Author)g).getMetatag_keywords();
 502  
           }
 503  
 
 504  
           public void setRaw(Persistent g, Object raw)
 505  
               throws AccessPoemException {
 506  0
             ((Author)g).setMetatag_keywords((String)raw);
 507  0
           }
 508  
         });
 509  
 
 510  2
     defineColumn(col_imagefilename =
 511  
         new Column<String>(this, "imagefilename",
 512  
                    new StringPoemType(true, -1),
 513  2
                    DefinitionSource.dsd) { 
 514  
           public Object getCooked(Persistent g)
 515  
               throws AccessPoemException, PoemException {
 516  0
             return ((Author)g).getImagefilename();
 517  
           }
 518  
 
 519  
           public void setCooked(Persistent g, Object cooked)
 520  
               throws AccessPoemException, ValidationPoemException {
 521  0
             ((Author)g).setImagefilename((String)cooked);
 522  0
           }
 523  
 
 524  
           public Field<String> asField(Persistent g) {
 525  0
             return ((Author)g).getImagefilenameField();
 526  
           }
 527  
 
 528  
           public DisplayLevel defaultDisplayLevel() {
 529  0
             return DisplayLevel.record;
 530  
           }
 531  
 
 532  
           public Searchability defaultSearchability() {
 533  0
             return Searchability.no;
 534  
           }
 535  
 
 536  
           public String defaultDisplayName() {
 537  0
             return "Image file name";
 538  
           }
 539  
 
 540  
           public int defaultDisplayOrder() {
 541  0
             return 8;
 542  
           }
 543  
 
 544  
           public String defaultDescription() {
 545  0
             return "The name, within the book directory, of an image of the author";
 546  
           }
 547  
 
 548  
           public Object getRaw_unsafe(Persistent g)
 549  
               throws AccessPoemException {
 550  1
             return ((Author)g).getImagefilename_unsafe();
 551  
           }
 552  
 
 553  
           public void setRaw_unsafe(Persistent g, Object raw)
 554  
               throws AccessPoemException {
 555  2
             ((Author)g).setImagefilename_unsafe((String)raw);
 556  2
           }
 557  
 
 558  
           public Object getRaw(Persistent g)
 559  
               throws AccessPoemException {
 560  0
             return ((Author)g).getImagefilename();
 561  
           }
 562  
 
 563  
           public void setRaw(Persistent g, Object raw)
 564  
               throws AccessPoemException {
 565  0
             ((Author)g).setImagefilename((String)raw);
 566  0
           }
 567  
         });
 568  
 
 569  2
     defineColumn(col_blurb =
 570  
         new Column<String>(this, "blurb",
 571  
                    new StringPoemType(true, -1),
 572  2
                    DefinitionSource.dsd) { 
 573  
           public Object getCooked(Persistent g)
 574  
               throws AccessPoemException, PoemException {
 575  0
             return ((Author)g).getBlurb();
 576  
           }
 577  
 
 578  
           public void setCooked(Persistent g, Object cooked)
 579  
               throws AccessPoemException, ValidationPoemException {
 580  0
             ((Author)g).setBlurb((String)cooked);
 581  0
           }
 582  
 
 583  
           public Field<String> asField(Persistent g) {
 584  0
             return ((Author)g).getBlurbField();
 585  
           }
 586  
 
 587  
           public DisplayLevel defaultDisplayLevel() {
 588  0
             return DisplayLevel.record;
 589  
           }
 590  
 
 591  
           public Searchability defaultSearchability() {
 592  0
             return Searchability.no;
 593  
           }
 594  
 
 595  
           public int defaultDisplayOrder() {
 596  0
             return 9;
 597  
           }
 598  
 
 599  
           public String defaultDescription() {
 600  0
             return "A short blurb to go next to the author image";
 601  
           }
 602  
 
 603  
           public Object getRaw_unsafe(Persistent g)
 604  
               throws AccessPoemException {
 605  1
             return ((Author)g).getBlurb_unsafe();
 606  
           }
 607  
 
 608  
           public void setRaw_unsafe(Persistent g, Object raw)
 609  
               throws AccessPoemException {
 610  2
             ((Author)g).setBlurb_unsafe((String)raw);
 611  2
           }
 612  
 
 613  
           public Object getRaw(Persistent g)
 614  
               throws AccessPoemException {
 615  0
             return ((Author)g).getBlurb();
 616  
           }
 617  
 
 618  
           public void setRaw(Persistent g, Object raw)
 619  
               throws AccessPoemException {
 620  0
             ((Author)g).setBlurb((String)raw);
 621  0
           }
 622  
         });
 623  
 
 624  2
     defineColumn(col_biography =
 625  
         new Column<String>(this, "biography",
 626  
                    new StringPoemType(true, -1),
 627  2
                    DefinitionSource.dsd) { 
 628  
           public Object getCooked(Persistent g)
 629  
               throws AccessPoemException, PoemException {
 630  0
             return ((Author)g).getBiography();
 631  
           }
 632  
 
 633  
           public void setCooked(Persistent g, Object cooked)
 634  
               throws AccessPoemException, ValidationPoemException {
 635  0
             ((Author)g).setBiography((String)cooked);
 636  0
           }
 637  
 
 638  
           public Field<String> asField(Persistent g) {
 639  0
             return ((Author)g).getBiographyField();
 640  
           }
 641  
 
 642  
           public DisplayLevel defaultDisplayLevel() {
 643  0
             return DisplayLevel.record;
 644  
           }
 645  
 
 646  
           public Searchability defaultSearchability() {
 647  0
             return Searchability.no;
 648  
           }
 649  
 
 650  
           public int defaultDisplayOrder() {
 651  0
             return 10;
 652  
           }
 653  
 
 654  
           public String defaultDescription() {
 655  0
             return "A biography for the author";
 656  
           }
 657  
 
 658  
           public int defaultWidth() {
 659  0
             return 80;
 660  
           }
 661  
 
 662  
           public int defaultHeight() {
 663  0
             return 20;
 664  
           }
 665  
 
 666  
           public Object getRaw_unsafe(Persistent g)
 667  
               throws AccessPoemException {
 668  1
             return ((Author)g).getBiography_unsafe();
 669  
           }
 670  
 
 671  
           public void setRaw_unsafe(Persistent g, Object raw)
 672  
               throws AccessPoemException {
 673  2
             ((Author)g).setBiography_unsafe((String)raw);
 674  2
           }
 675  
 
 676  
           public Object getRaw(Persistent g)
 677  
               throws AccessPoemException {
 678  0
             return ((Author)g).getBiography();
 679  
           }
 680  
 
 681  
           public void setRaw(Persistent g, Object raw)
 682  
               throws AccessPoemException {
 683  0
             ((Author)g).setBiography((String)raw);
 684  0
           }
 685  
         });
 686  
 
 687  2
     defineColumn(col_nonstandard =
 688  
         new Column<Boolean>(this, "nonstandard",
 689  
                    new BooleanPoemType(false),
 690  2
                    DefinitionSource.dsd) { 
 691  
           public Object getCooked(Persistent g)
 692  
               throws AccessPoemException, PoemException {
 693  0
             return ((Author)g).getNonstandard();
 694  
           }
 695  
 
 696  
           public void setCooked(Persistent g, Object cooked)
 697  
               throws AccessPoemException, ValidationPoemException {
 698  0
             ((Author)g).setNonstandard((Boolean)cooked);
 699  0
           }
 700  
 
 701  
           public Field<Boolean> asField(Persistent g) {
 702  0
             return ((Author)g).getNonstandardField();
 703  
           }
 704  
 
 705  
           public DisplayLevel defaultDisplayLevel() {
 706  0
             return DisplayLevel.record;
 707  
           }
 708  
 
 709  
           public int defaultDisplayOrder() {
 710  0
             return 11;
 711  
           }
 712  
 
 713  
           public String defaultDescription() {
 714  0
             return "If set then Author.wm is not used, any .wm files in the directory, such as index.wm, are used.";
 715  
           }
 716  
 
 717  
           public Object getRaw_unsafe(Persistent g)
 718  
               throws AccessPoemException {
 719  1
             return ((Author)g).getNonstandard_unsafe();
 720  
           }
 721  
 
 722  
           public void setRaw_unsafe(Persistent g, Object raw)
 723  
               throws AccessPoemException {
 724  2
             ((Author)g).setNonstandard_unsafe((Boolean)raw);
 725  2
           }
 726  
 
 727  
           public Object getRaw(Persistent g)
 728  
               throws AccessPoemException {
 729  0
             return ((Author)g).getNonstandard();
 730  
           }
 731  
 
 732  
           public void setRaw(Persistent g, Object raw)
 733  
               throws AccessPoemException {
 734  0
             ((Author)g).setNonstandard((Boolean)raw);
 735  0
           }
 736  
         });
 737  2
   }
 738  
 
 739  
 
 740  
  /**
 741  
   * Retrieves the <code>Id</code> <code>Column</code> for this 
 742  
   * <code>Author</code> <code>Table</code>.
 743  
   * 
 744  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 745  
   * @return the id <code>Column</code>
 746  
   */
 747  
   public final Column<Integer> getIdColumn() {
 748  0
     return col_id;
 749  
   }
 750  
 
 751  
 
 752  
  /**
 753  
   * Retrieves the <code>Displayname</code> <code>Column</code> for this 
 754  
   * <code>Author</code> <code>Table</code>.
 755  
   * 
 756  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 757  
   * @return the displayname <code>Column</code>
 758  
   */
 759  
   public final Column<String> getDisplaynameColumn() {
 760  5
     return col_displayname;
 761  
   }
 762  
 
 763  
 
 764  
  /**
 765  
   * Retrieves the <code>Longnameifdifferent</code> <code>Column</code> for this 
 766  
   * <code>Author</code> <code>Table</code>.
 767  
   * 
 768  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 769  
   * @return the longnameifdifferent <code>Column</code>
 770  
   */
 771  
   public final Column<String> getLongnameifdifferentColumn() {
 772  0
     return col_longnameifdifferent;
 773  
   }
 774  
 
 775  
 
 776  
  /**
 777  
   * Retrieves the <code>Sortname</code> <code>Column</code> for this 
 778  
   * <code>Author</code> <code>Table</code>.
 779  
   * 
 780  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 781  
   * @return the sortname <code>Column</code>
 782  
   */
 783  
   public final Column<String> getSortnameColumn() {
 784  0
     return col_sortname;
 785  
   }
 786  
 
 787  
 
 788  
  /**
 789  
   * Retrieves the <code>Section</code> <code>Column</code> for this 
 790  
   * <code>Author</code> <code>Table</code>.
 791  
   * 
 792  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 793  
   * @return the section <code>Column</code>
 794  
   */
 795  
   public final Column<Integer> getSectionColumn() {
 796  0
     return col_section;
 797  
   }
 798  
 
 799  
 
 800  
  /**
 801  
   * Retrieves the <code>Advert</code> <code>Column</code> for this 
 802  
   * <code>Author</code> <code>Table</code>.
 803  
   * 
 804  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 805  
   * @return the advert <code>Column</code>
 806  
   */
 807  
   public final Column<Integer> getAdvertColumn() {
 808  0
     return col_advert;
 809  
   }
 810  
 
 811  
 
 812  
  /**
 813  
   * Retrieves the <code>Metatag_description</code> <code>Column</code> for this 
 814  
   * <code>Author</code> <code>Table</code>.
 815  
   * 
 816  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 817  
   * @return the metatag_description <code>Column</code>
 818  
   */
 819  
   public final Column<String> getMetatag_descriptionColumn() {
 820  0
     return col_metatag_description;
 821  
   }
 822  
 
 823  
 
 824  
  /**
 825  
   * Retrieves the <code>Metatag_keywords</code> <code>Column</code> for this 
 826  
   * <code>Author</code> <code>Table</code>.
 827  
   * 
 828  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 829  
   * @return the metatag_keywords <code>Column</code>
 830  
   */
 831  
   public final Column<String> getMetatag_keywordsColumn() {
 832  0
     return col_metatag_keywords;
 833  
   }
 834  
 
 835  
 
 836  
  /**
 837  
   * Retrieves the <code>Imagefilename</code> <code>Column</code> for this 
 838  
   * <code>Author</code> <code>Table</code>.
 839  
   * 
 840  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 841  
   * @return the imagefilename <code>Column</code>
 842  
   */
 843  
   public final Column<String> getImagefilenameColumn() {
 844  0
     return col_imagefilename;
 845  
   }
 846  
 
 847  
 
 848  
  /**
 849  
   * Retrieves the <code>Blurb</code> <code>Column</code> for this 
 850  
   * <code>Author</code> <code>Table</code>.
 851  
   * 
 852  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 853  
   * @return the blurb <code>Column</code>
 854  
   */
 855  
   public final Column<String> getBlurbColumn() {
 856  0
     return col_blurb;
 857  
   }
 858  
 
 859  
 
 860  
  /**
 861  
   * Retrieves the <code>Biography</code> <code>Column</code> for this 
 862  
   * <code>Author</code> <code>Table</code>.
 863  
   * 
 864  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 865  
   * @return the biography <code>Column</code>
 866  
   */
 867  
   public final Column<String> getBiographyColumn() {
 868  0
     return col_biography;
 869  
   }
 870  
 
 871  
 
 872  
  /**
 873  
   * Retrieves the <code>Nonstandard</code> <code>Column</code> for this 
 874  
   * <code>Author</code> <code>Table</code>.
 875  
   * 
 876  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 877  
   * @return the nonstandard <code>Column</code>
 878  
   */
 879  
   public final Column<Boolean> getNonstandardColumn() {
 880  0
     return col_nonstandard;
 881  
   }
 882  
 
 883  
 
 884  
  /**
 885  
   * Retrieve the <code>Author</code> as a <code>Author</code>.
 886  
   *
 887  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 888  
   * @param troid a Table Row Oject ID
 889  
   * @return the <code>Persistent</code> identified by the <code>troid</code>
 890  
   */
 891  
   public Author getAuthorObject(Integer troid) {
 892  32
     return (Author)getObject(troid);
 893  
   }
 894  
 
 895  
 
 896  
  /**
 897  
   * Retrieve the <code>Author</code> 
 898  
   * as a <code>Author</code>.
 899  
   *
 900  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 901  
   * @param troid a Table Row Object ID
 902  
   * @return the <code>Persistent</code> identified   */
 903  
   public Author getAuthorObject(int troid) {
 904  0
     return (Author)getObject(troid);
 905  
   }
 906  
 
 907  
   protected JdbcPersistent _newPersistent() {
 908  2
     return new Author();
 909  
   }
 910  
   public String defaultDescription() {
 911  0
     return "An author of books or other works";
 912  
   }
 913  
 
 914  
   public int defaultDisplayOrder() {
 915  0
     return 300;
 916  
   }
 917  
 }
 918