Coverage Report - org.paneris.bibliomania.generated.ChapterBase
 
Classes in this File Line Coverage Branch Coverage Complexity
ChapterBase
62%
73/116
33%
2/6
1.057
 
 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 java.sql.Timestamp;
 7  
 import org.melati.poem.AccessPoemException;
 8  
 import org.melati.poem.Column;
 9  
 import org.melati.poem.Field;
 10  
 import org.melati.poem.NoSuchRowPoemException;
 11  
 import org.melati.poem.ValidationPoemException;
 12  
 import org.paneris.bibliomania.BibliomaniaDatabaseTables;
 13  
 import org.paneris.bibliomania.Book;
 14  
 import org.paneris.bibliomania.Chapter;
 15  
 import org.paneris.bibliomania.ChapterTable;
 16  
 import org.paneris.bibliomania.Unit;
 17  
 
 18  
 
 19  
 /**
 20  
  * Melati POEM generated abstract base class for a <code>Persistent</code> 
 21  
  * <code>Chapter</code> Object.
 22  
  *
 23  
  * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava 
 24  
  */
 25  7
 public abstract class ChapterBase extends Unit {
 26  
 
 27  
 
 28  
  /**
 29  
   * Retrieves the Database object.
 30  
   * 
 31  
   * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava 
 32  
   * @return the database
 33  
   */
 34  
   public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() {
 35  126
     return (BibliomaniaDatabaseTables)getDatabase();
 36  
   }
 37  
 
 38  
 
 39  
  /**
 40  
   * Retrieves the  <code>ChapterTable</code> table 
 41  
   * which this <code>Persistent</code> is from.
 42  
   * 
 43  
   * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava 
 44  
   * @return the ChapterTable
 45  
   */
 46  
   @SuppressWarnings("unchecked")
 47  
   public ChapterTable<Chapter> getChapterTable() {
 48  2
     return (ChapterTable<Chapter>)getTable();
 49  
   }
 50  
 
 51  
   @SuppressWarnings("unchecked")
 52  
   private ChapterTable<Chapter> _getChapterTable() {
 53  26
     return (ChapterTable<Chapter>)getTable();
 54  
   }
 55  
 
 56  
   // Fields in this table 
 57  
  /**
 58  
   * id 
 59  
   */
 60  
   protected Integer id;
 61  
  /**
 62  
   * book - The book to which the chapter belongs 
 63  
   */
 64  
   protected Integer book;
 65  
  /**
 66  
   * sequence - The number of the chapter 
 67  
   */
 68  
   protected Integer sequence;
 69  
  /**
 70  
   * FTI text id - A key under which the chapter is free-text-indexed, 
 71  
   * combining section, author, book and sequence 
 72  
   */
 73  
   protected Long textid;
 74  
  /**
 75  
   * FTI index date - When the chapter was free-text-indexed 
 76  
   */
 77  
   protected Timestamp indexdate;
 78  
  /**
 79  
   * title - The short title of the chapter (e.g. `Chapter 10') 
 80  
   */
 81  
   protected String title;
 82  
  /**
 83  
   * Long title - The long title of the chapter (e.g. `In which Pip ...') 
 84  
   */
 85  
   protected String longtitle;
 86  
  /**
 87  
   * filename - The filename of the chapter in the local filesystem, relative 
 88  
   * to `Path' 
 89  
   */
 90  
   protected String filename;
 91  
  /**
 92  
   * part 
 93  
   */
 94  
   protected String part;
 95  
 
 96  
 
 97  
  /**
 98  
   * Retrieves the <code>Id</code> value, without locking, 
 99  
   * for this <code>Chapter</code> <code>Persistent</code>.
 100  
   *
 101  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 102  
   * @return the Integer id
 103  
   */
 104  
   public Integer getId_unsafe() {
 105  6
     return id;
 106  
   }
 107  
 
 108  
 
 109  
  /**
 110  
   * Sets the <code>Id</code> value directly, without checking, 
 111  
   * for this Chapter <code>Persistent</code>.
 112  
   * 
 113  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 114  
   * @param cooked  the pre-validated value to set
 115  
   */
 116  
   public void setId_unsafe(Integer cooked) {
 117  20
     id = cooked;
 118  20
   }
 119  
 
 120  
  /**
 121  
   * Retrieves the Id value, with locking, for this 
 122  
   * <code>Chapter</code> <code>Persistent</code>.
 123  
   * 
 124  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 125  
   * @throws AccessPoemException 
 126  
   *         if the current <code>AccessToken</code> 
 127  
   *         does not confer write access rights 
 128  
   * @return the value of the field <code>Id</code> for this 
 129  
   *         <code>Chapter</code> <code>Persistent</code>  
 130  
   */
 131  
 
 132  
   public Integer getId()
 133  
       throws AccessPoemException {
 134  0
     readLock();
 135  0
     return getId_unsafe();
 136  
   }
 137  
 
 138  
 
 139  
  /**
 140  
   * Sets the <code>Id</code> value, with checking, for this 
 141  
   * <code>Chapter</code> <code>Persistent</code>.
 142  
   * 
 143  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 144  
   * @param cooked  a validated <code>int</code> 
 145  
   * @throws AccessPoemException 
 146  
   *         if the current <code>AccessToken</code> 
 147  
   *         does not confer write access rights
 148  
   * @throws ValidationPoemException 
 149  
   *         if the value is not valid
 150  
   */
 151  
   public void setId(Integer cooked)
 152  
       throws AccessPoemException, ValidationPoemException {
 153  0
     _getChapterTable().getIdColumn().
 154  
       getType().assertValidCooked(cooked);
 155  0
     writeLock();
 156  0
     setId_unsafe(cooked);
 157  0
   }
 158  
 
 159  
  /**
 160  
   * Sets the <code>Id</code> value, with checking, for this 
 161  
   * <code>Chapter</code> <code>Persistent</code>.
 162  
   * 
 163  
   * Generated by org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods 
 164  
   * @param cooked  a validated <code>int</code>
 165  
   * @throws AccessPoemException 
 166  
   *         if the current <code>AccessToken</code> 
 167  
   *         does not confer write access rights
 168  
   * @throws ValidationPoemException 
 169  
   *         if the value is not valid
 170  
   */
 171  
 
 172  
   public final void setId(int cooked)
 173  
       throws AccessPoemException, ValidationPoemException {
 174  0
     setId(new Integer(cooked));
 175  0
   }
 176  
 
 177  
 
 178  
  /**
 179  
   * Retrieves the <code>Id</code> value as a <code>Field</code>
 180  
   * from this <code>Chapter</code> <code>Persistent</code>.
 181  
   * 
 182  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 183  
   * @throws AccessPoemException 
 184  
   *         if the current <code>AccessToken</code> 
 185  
   *         does not confer write access rights
 186  
   * @return the Integer id
 187  
   */
 188  
   public Field<Integer> getIdField() throws AccessPoemException {
 189  0
     Column<Integer> c = _getChapterTable().getIdColumn();
 190  0
     return new Field<Integer>((Integer)c.getRaw(this), c);
 191  
   }
 192  
 
 193  
 
 194  
  /**
 195  
   * Retrieves the <code>Book</code> value, without locking, 
 196  
   * for this <code>Chapter</code> <code>Persistent</code>.
 197  
   *
 198  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 199  
   * @return the Integer book
 200  
   */
 201  
   public Integer getBook_unsafe() {
 202  132
     return book;
 203  
   }
 204  
 
 205  
 
 206  
  /**
 207  
   * Sets the <code>Book</code> value directly, without checking, 
 208  
   * for this Chapter <code>Persistent</code>.
 209  
   * 
 210  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 211  
   * @param cooked  the pre-validated value to set
 212  
   */
 213  
   public void setBook_unsafe(Integer cooked) {
 214  12
     book = cooked;
 215  12
   }
 216  
 
 217  
  /**
 218  
   * Retrieves the Table Row Object ID. 
 219  
   *
 220  
   * Generated by org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods 
 221  
   * @throws AccessPoemException  
 222  
   *         if the current <code>AccessToken</code> 
 223  
   *         does not confer read access rights 
 224  
   * @return the TROID as an <code>Integer</code> 
 225  
   */
 226  
 
 227  
   public Integer getBookTroid()
 228  
       throws AccessPoemException {
 229  126
     readLock();
 230  126
     return getBook_unsafe();
 231  
   }
 232  
 
 233  
 
 234  
  /**
 235  
   * Sets the Table Row Object ID. 
 236  
   * 
 237  
   * Generated by org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods 
 238  
   * @param raw  a Table Row Object Id 
 239  
   * @throws AccessPoemException  
 240  
   *         if the current <code>AccessToken</code> 
 241  
   *         does not confer write access rights
 242  
   */
 243  
   public void setBookTroid(Integer raw)
 244  
       throws AccessPoemException {
 245  0
     setBook(raw == null ? null : 
 246  
         (Book)getBibliomaniaDatabaseTables().getBookTable().getBookObject(raw));
 247  0
   }
 248  
 
 249  
 
 250  
  /**
 251  
   * Retrieves the <code>Book</code> object referred to.
 252  
   *  
 253  
   * Generated by org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods 
 254  
   * @throws AccessPoemException  
 255  
   *         if the current <code>AccessToken</code> 
 256  
   *         does not confer read access rights 
 257  
   * @throws NoSuchRowPoemException  
 258  
   *         if the <code>Persistent</code> has yet to be allocated a TROID 
 259  
   * @return the <code>Book</code> as a <code>Book</code> 
 260  
   */
 261  
   public Book getBook()
 262  
       throws AccessPoemException, NoSuchRowPoemException {
 263  126
     Integer troid = getBookTroid();
 264  126
     return troid == null ? null :
 265  
         (Book)getBibliomaniaDatabaseTables().getBookTable().getBookObject(troid);
 266  
   }
 267  
 
 268  
 
 269  
  /**
 270  
   * Set the Book.
 271  
   * 
 272  
   * Generated by org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods 
 273  
   * @param cooked  a validated <code>Book</code>
 274  
   * @throws AccessPoemException  
 275  
   *         if the current <code>AccessToken</code> 
 276  
   *         does not confer write access rights 
 277  
   */
 278  
   public void setBook(Book cooked)
 279  
       throws AccessPoemException {
 280  5
     _getChapterTable().
 281  
       getBookColumn().
 282  
         getType().assertValidCooked(cooked);
 283  5
     writeLock();
 284  5
     if (cooked == null)
 285  0
       setBook_unsafe(null);
 286  
     else {
 287  5
       cooked.existenceLock();
 288  5
       setBook_unsafe(cooked.troid());
 289  
     }
 290  5
   }
 291  
 
 292  
 
 293  
  /**
 294  
   * Retrieves the <code>Book</code> value as a <code>Field</code>
 295  
   * from this <code>Chapter</code> <code>Persistent</code>.
 296  
   * 
 297  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 298  
   * @throws AccessPoemException 
 299  
   *         if the current <code>AccessToken</code> 
 300  
   *         does not confer write access rights
 301  
   * @return the Integer book
 302  
   */
 303  
   public Field<Integer> getBookField() throws AccessPoemException {
 304  0
     Column<Integer> c = _getChapterTable().getBookColumn();
 305  0
     return new Field<Integer>((Integer)c.getRaw(this), c);
 306  
   }
 307  
 
 308  
 
 309  
  /**
 310  
   * Retrieves the <code>Sequence</code> value, without locking, 
 311  
   * for this <code>Chapter</code> <code>Persistent</code>.
 312  
   *
 313  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 314  
   * @return the Integer sequence
 315  
   */
 316  
   public Integer getSequence_unsafe() {
 317  33
     return sequence;
 318  
   }
 319  
 
 320  
 
 321  
  /**
 322  
   * Sets the <code>Sequence</code> value directly, without checking, 
 323  
   * for this Chapter <code>Persistent</code>.
 324  
   * 
 325  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 326  
   * @param cooked  the pre-validated value to set
 327  
   */
 328  
   public void setSequence_unsafe(Integer cooked) {
 329  12
     sequence = cooked;
 330  12
   }
 331  
 
 332  
  /**
 333  
   * Retrieves the Sequence value, with locking, for this 
 334  
   * <code>Chapter</code> <code>Persistent</code>.
 335  
   * Field description: 
 336  
   *   The number of the chapter 
 337  
   * 
 338  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 339  
   * @throws AccessPoemException 
 340  
   *         if the current <code>AccessToken</code> 
 341  
   *         does not confer write access rights 
 342  
   * @return the value of the field <code>Sequence</code> for this 
 343  
   *         <code>Chapter</code> <code>Persistent</code>  
 344  
   */
 345  
 
 346  
   public Integer getSequence()
 347  
       throws AccessPoemException {
 348  27
     readLock();
 349  27
     return getSequence_unsafe();
 350  
   }
 351  
 
 352  
 
 353  
  /**
 354  
   * Sets the <code>Sequence</code> value, with checking, for this 
 355  
   * <code>Chapter</code> <code>Persistent</code>.
 356  
   * Field description: 
 357  
   *   The number of the chapter 
 358  
   * 
 359  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 360  
   * @param cooked  a validated <code>int</code> 
 361  
   * @throws AccessPoemException 
 362  
   *         if the current <code>AccessToken</code> 
 363  
   *         does not confer write access rights
 364  
   * @throws ValidationPoemException 
 365  
   *         if the value is not valid
 366  
   */
 367  
   public void setSequence(Integer cooked)
 368  
       throws AccessPoemException, ValidationPoemException {
 369  5
     _getChapterTable().getSequenceColumn().
 370  
       getType().assertValidCooked(cooked);
 371  5
     writeLock();
 372  5
     setSequence_unsafe(cooked);
 373  5
   }
 374  
 
 375  
  /**
 376  
   * Sets the <code>Sequence</code> value, with checking, for this 
 377  
   * <code>Chapter</code> <code>Persistent</code>.
 378  
   * Field description: 
 379  
   *   The number of the chapter 
 380  
   * 
 381  
   * 
 382  
   * Generated by org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods 
 383  
   * @param cooked  a validated <code>int</code>
 384  
   * @throws AccessPoemException 
 385  
   *         if the current <code>AccessToken</code> 
 386  
   *         does not confer write access rights
 387  
   * @throws ValidationPoemException 
 388  
   *         if the value is not valid
 389  
   */
 390  
 
 391  
   public final void setSequence(int cooked)
 392  
       throws AccessPoemException, ValidationPoemException {
 393  5
     setSequence(new Integer(cooked));
 394  5
   }
 395  
 
 396  
 
 397  
  /**
 398  
   * Retrieves the <code>Sequence</code> value as a <code>Field</code>
 399  
   * from this <code>Chapter</code> <code>Persistent</code>.
 400  
   * 
 401  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 402  
   * @throws AccessPoemException 
 403  
   *         if the current <code>AccessToken</code> 
 404  
   *         does not confer write access rights
 405  
   * @return the Integer sequence
 406  
   */
 407  
   public Field<Integer> getSequenceField() throws AccessPoemException {
 408  0
     Column<Integer> c = _getChapterTable().getSequenceColumn();
 409  0
     return new Field<Integer>((Integer)c.getRaw(this), c);
 410  
   }
 411  
 
 412  
 
 413  
  /**
 414  
   * Retrieves the <code>Textid</code> value, without locking, 
 415  
   * for this <code>Chapter</code> <code>Persistent</code>.
 416  
   *
 417  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 418  
   * @return the Long textid
 419  
   */
 420  
   public Long getTextid_unsafe() {
 421  6
     return textid;
 422  
   }
 423  
 
 424  
 
 425  
  /**
 426  
   * Sets the <code>Textid</code> value directly, without checking, 
 427  
   * for this Chapter <code>Persistent</code>.
 428  
   * 
 429  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 430  
   * @param cooked  the pre-validated value to set
 431  
   */
 432  
   public void setTextid_unsafe(Long cooked) {
 433  8
     textid = cooked;
 434  8
   }
 435  
 
 436  
  /**
 437  
   * Retrieves the Textid value, with locking, for this 
 438  
   * <code>Chapter</code> <code>Persistent</code>.
 439  
   * Field description: 
 440  
   *   A key under which the chapter is free-text-indexed, combining section, 
 441  
   *   author, book and sequence 
 442  
   * 
 443  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 444  
   * @throws AccessPoemException 
 445  
   *         if the current <code>AccessToken</code> 
 446  
   *         does not confer write access rights 
 447  
   * @return the value of the field <code>Textid</code> for this 
 448  
   *         <code>Chapter</code> <code>Persistent</code>  
 449  
   */
 450  
 
 451  
   public Long getTextid()
 452  
       throws AccessPoemException {
 453  0
     readLock();
 454  0
     return getTextid_unsafe();
 455  
   }
 456  
 
 457  
 
 458  
  /**
 459  
   * Sets the <code>Textid</code> value, with checking, for this 
 460  
   * <code>Chapter</code> <code>Persistent</code>.
 461  
   * Field description: 
 462  
   *   A key under which the chapter is free-text-indexed, combining section, 
 463  
   *   author, book and sequence 
 464  
   * 
 465  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 466  
   * @param cooked  a validated <code>int</code> 
 467  
   * @throws AccessPoemException 
 468  
   *         if the current <code>AccessToken</code> 
 469  
   *         does not confer write access rights
 470  
   * @throws ValidationPoemException 
 471  
   *         if the value is not valid
 472  
   */
 473  
   public void setTextid(Long cooked)
 474  
       throws AccessPoemException, ValidationPoemException {
 475  1
     _getChapterTable().getTextidColumn().
 476  
       getType().assertValidCooked(cooked);
 477  1
     writeLock();
 478  1
     setTextid_unsafe(cooked);
 479  1
   }
 480  
 
 481  
  /**
 482  
   * Sets the <code>Textid</code> value, with checking, for this 
 483  
   * <code>Chapter</code> <code>Persistent</code>.
 484  
   * Field description: 
 485  
   *   A key under which the chapter is free-text-indexed, combining section, 
 486  
   *   author, book and sequence 
 487  
   * 
 488  
   * 
 489  
   * Generated by org.melati.poem.prepro.LongFieldDef#generateBaseMethods 
 490  
   * @param cooked  a validated <code>int</code>
 491  
   * @throws AccessPoemException 
 492  
   *         if the current <code>AccessToken</code> 
 493  
   *         does not confer write access rights
 494  
   * @throws ValidationPoemException 
 495  
   *         if the value is not valid
 496  
   */
 497  
 
 498  
   public final void setTextid(long cooked)
 499  
       throws AccessPoemException, ValidationPoemException {
 500  1
     setTextid(new Long(cooked));
 501  1
   }
 502  
 
 503  
 
 504  
  /**
 505  
   * Retrieves the <code>Textid</code> value as a <code>Field</code>
 506  
   * from this <code>Chapter</code> <code>Persistent</code>.
 507  
   * 
 508  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 509  
   * @throws AccessPoemException 
 510  
   *         if the current <code>AccessToken</code> 
 511  
   *         does not confer write access rights
 512  
   * @return the Long textid
 513  
   */
 514  
   public Field<Long> getTextidField() throws AccessPoemException {
 515  0
     Column<Long> c = _getChapterTable().getTextidColumn();
 516  0
     return new Field<Long>((Long)c.getRaw(this), c);
 517  
   }
 518  
 
 519  
 
 520  
  /**
 521  
   * Retrieves the <code>Indexdate</code> value, without locking, 
 522  
   * for this <code>Chapter</code> <code>Persistent</code>.
 523  
   *
 524  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 525  
   * @return the Timestamp indexdate
 526  
   */
 527  
   public Timestamp getIndexdate_unsafe() {
 528  6
     return indexdate;
 529  
   }
 530  
 
 531  
 
 532  
  /**
 533  
   * Sets the <code>Indexdate</code> value directly, without checking, 
 534  
   * for this Chapter <code>Persistent</code>.
 535  
   * 
 536  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 537  
   * @param cooked  the pre-validated value to set
 538  
   */
 539  
   public void setIndexdate_unsafe(Timestamp cooked) {
 540  7
     indexdate = cooked;
 541  7
   }
 542  
 
 543  
  /**
 544  
   * Retrieves the Indexdate value, with locking, for this 
 545  
   * <code>Chapter</code> <code>Persistent</code>.
 546  
   * Field description: 
 547  
   *   When the chapter was free-text-indexed 
 548  
   * 
 549  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 550  
   * @throws AccessPoemException 
 551  
   *         if the current <code>AccessToken</code> 
 552  
   *         does not confer write access rights 
 553  
   * @return the value of the field <code>Indexdate</code> for this 
 554  
   *         <code>Chapter</code> <code>Persistent</code>  
 555  
   */
 556  
 
 557  
   public Timestamp getIndexdate()
 558  
       throws AccessPoemException {
 559  0
     readLock();
 560  0
     return getIndexdate_unsafe();
 561  
   }
 562  
 
 563  
 
 564  
  /**
 565  
   * Sets the <code>Indexdate</code> value, with checking, for this 
 566  
   * <code>Chapter</code> <code>Persistent</code>.
 567  
   * Field description: 
 568  
   *   When the chapter was free-text-indexed 
 569  
   * 
 570  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 571  
   * @param cooked  a validated <code>int</code> 
 572  
   * @throws AccessPoemException 
 573  
   *         if the current <code>AccessToken</code> 
 574  
   *         does not confer write access rights
 575  
   * @throws ValidationPoemException 
 576  
   *         if the value is not valid
 577  
   */
 578  
   public void setIndexdate(Timestamp cooked)
 579  
       throws AccessPoemException, ValidationPoemException {
 580  0
     _getChapterTable().getIndexdateColumn().
 581  
       getType().assertValidCooked(cooked);
 582  0
     writeLock();
 583  0
     setIndexdate_unsafe(cooked);
 584  0
   }
 585  
 
 586  
 
 587  
  /**
 588  
   * Retrieves the <code>Indexdate</code> value as a <code>Field</code>
 589  
   * from this <code>Chapter</code> <code>Persistent</code>.
 590  
   * 
 591  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 592  
   * @throws AccessPoemException 
 593  
   *         if the current <code>AccessToken</code> 
 594  
   *         does not confer write access rights
 595  
   * @return the Timestamp indexdate
 596  
   */
 597  
   public Field<Timestamp> getIndexdateField() throws AccessPoemException {
 598  0
     Column<Timestamp> c = _getChapterTable().getIndexdateColumn();
 599  0
     return new Field<Timestamp>((Timestamp)c.getRaw(this), c);
 600  
   }
 601  
 
 602  
 
 603  
  /**
 604  
   * Retrieves the <code>Title</code> value, without locking, 
 605  
   * for this <code>Chapter</code> <code>Persistent</code>.
 606  
   *
 607  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 608  
   * @return the String title
 609  
   */
 610  
   public String getTitle_unsafe() {
 611  33
     return title;
 612  
   }
 613  
 
 614  
 
 615  
  /**
 616  
   * Sets the <code>Title</code> value directly, without checking, 
 617  
   * for this Chapter <code>Persistent</code>.
 618  
   * 
 619  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 620  
   * @param cooked  the pre-validated value to set
 621  
   */
 622  
   public void setTitle_unsafe(String cooked) {
 623  12
     title = cooked;
 624  12
   }
 625  
 
 626  
  /**
 627  
   * Retrieves the Title value, with locking, for this 
 628  
   * <code>Chapter</code> <code>Persistent</code>.
 629  
   * Field description: 
 630  
   *   The short title of the chapter (e.g. `Chapter 10') 
 631  
   * 
 632  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 633  
   * @throws AccessPoemException 
 634  
   *         if the current <code>AccessToken</code> 
 635  
   *         does not confer write access rights 
 636  
   * @return the value of the field <code>Title</code> for this 
 637  
   *         <code>Chapter</code> <code>Persistent</code>  
 638  
   */
 639  
 
 640  
   public String getTitle()
 641  
       throws AccessPoemException {
 642  27
     readLock();
 643  27
     return getTitle_unsafe();
 644  
   }
 645  
 
 646  
 
 647  
  /**
 648  
   * Sets the <code>Title</code> value, with checking, for this 
 649  
   * <code>Chapter</code> <code>Persistent</code>.
 650  
   * Field description: 
 651  
   *   The short title of the chapter (e.g. `Chapter 10') 
 652  
   * 
 653  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 654  
   * @param cooked  a validated <code>int</code> 
 655  
   * @throws AccessPoemException 
 656  
   *         if the current <code>AccessToken</code> 
 657  
   *         does not confer write access rights
 658  
   * @throws ValidationPoemException 
 659  
   *         if the value is not valid
 660  
   */
 661  
   public void setTitle(String cooked)
 662  
       throws AccessPoemException, ValidationPoemException {
 663  5
     _getChapterTable().getTitleColumn().
 664  
       getType().assertValidCooked(cooked);
 665  5
     writeLock();
 666  5
     setTitle_unsafe(cooked);
 667  5
   }
 668  
 
 669  
 
 670  
  /**
 671  
   * Retrieves the <code>Title</code> value as a <code>Field</code>
 672  
   * from this <code>Chapter</code> <code>Persistent</code>.
 673  
   * 
 674  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 675  
   * @throws AccessPoemException 
 676  
   *         if the current <code>AccessToken</code> 
 677  
   *         does not confer write access rights
 678  
   * @return the String title
 679  
   */
 680  
   public Field<String> getTitleField() throws AccessPoemException {
 681  0
     Column<String> c = _getChapterTable().getTitleColumn();
 682  0
     return new Field<String>((String)c.getRaw(this), c);
 683  
   }
 684  
 
 685  
 
 686  
  /**
 687  
   * Retrieves the <code>Longtitle</code> value, without locking, 
 688  
   * for this <code>Chapter</code> <code>Persistent</code>.
 689  
   *
 690  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 691  
   * @return the String longtitle
 692  
   */
 693  
   public String getLongtitle_unsafe() {
 694  31
     return longtitle;
 695  
   }
 696  
 
 697  
 
 698  
  /**
 699  
   * Sets the <code>Longtitle</code> value directly, without checking, 
 700  
   * for this Chapter <code>Persistent</code>.
 701  
   * 
 702  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 703  
   * @param cooked  the pre-validated value to set
 704  
   */
 705  
   public void setLongtitle_unsafe(String cooked) {
 706  12
     longtitle = cooked;
 707  12
   }
 708  
 
 709  
  /**
 710  
   * Retrieves the Longtitle value, with locking, for this 
 711  
   * <code>Chapter</code> <code>Persistent</code>.
 712  
   * Field description: 
 713  
   *   The long title of the chapter (e.g. `In which Pip ...') 
 714  
   * 
 715  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 716  
   * @throws AccessPoemException 
 717  
   *         if the current <code>AccessToken</code> 
 718  
   *         does not confer write access rights 
 719  
   * @return the value of the field <code>Longtitle</code> for this 
 720  
   *         <code>Chapter</code> <code>Persistent</code>  
 721  
   */
 722  
 
 723  
   public String getLongtitle()
 724  
       throws AccessPoemException {
 725  25
     readLock();
 726  25
     return getLongtitle_unsafe();
 727  
   }
 728  
 
 729  
 
 730  
  /**
 731  
   * Sets the <code>Longtitle</code> value, with checking, for this 
 732  
   * <code>Chapter</code> <code>Persistent</code>.
 733  
   * Field description: 
 734  
   *   The long title of the chapter (e.g. `In which Pip ...') 
 735  
   * 
 736  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 737  
   * @param cooked  a validated <code>int</code> 
 738  
   * @throws AccessPoemException 
 739  
   *         if the current <code>AccessToken</code> 
 740  
   *         does not confer write access rights
 741  
   * @throws ValidationPoemException 
 742  
   *         if the value is not valid
 743  
   */
 744  
   public void setLongtitle(String cooked)
 745  
       throws AccessPoemException, ValidationPoemException {
 746  5
     _getChapterTable().getLongtitleColumn().
 747  
       getType().assertValidCooked(cooked);
 748  5
     writeLock();
 749  5
     setLongtitle_unsafe(cooked);
 750  5
   }
 751  
 
 752  
 
 753  
  /**
 754  
   * Retrieves the <code>Longtitle</code> value as a <code>Field</code>
 755  
   * from this <code>Chapter</code> <code>Persistent</code>.
 756  
   * 
 757  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 758  
   * @throws AccessPoemException 
 759  
   *         if the current <code>AccessToken</code> 
 760  
   *         does not confer write access rights
 761  
   * @return the String longtitle
 762  
   */
 763  
   public Field<String> getLongtitleField() throws AccessPoemException {
 764  0
     Column<String> c = _getChapterTable().getLongtitleColumn();
 765  0
     return new Field<String>((String)c.getRaw(this), c);
 766  
   }
 767  
 
 768  
 
 769  
  /**
 770  
   * Retrieves the <code>Filename</code> value, without locking, 
 771  
   * for this <code>Chapter</code> <code>Persistent</code>.
 772  
   *
 773  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 774  
   * @return the String filename
 775  
   */
 776  
   public String getFilename_unsafe() {
 777  23
     return filename;
 778  
   }
 779  
 
 780  
 
 781  
  /**
 782  
   * Sets the <code>Filename</code> value directly, without checking, 
 783  
   * for this Chapter <code>Persistent</code>.
 784  
   * 
 785  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 786  
   * @param cooked  the pre-validated value to set
 787  
   */
 788  
   public void setFilename_unsafe(String cooked) {
 789  12
     filename = cooked;
 790  12
   }
 791  
 
 792  
  /**
 793  
   * Retrieves the Filename value, with locking, for this 
 794  
   * <code>Chapter</code> <code>Persistent</code>.
 795  
   * Field description: 
 796  
   *   The filename of the chapter in the local filesystem, relative to `Path' 
 797  
   * 
 798  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 799  
   * @throws AccessPoemException 
 800  
   *         if the current <code>AccessToken</code> 
 801  
   *         does not confer write access rights 
 802  
   * @return the value of the field <code>Filename</code> for this 
 803  
   *         <code>Chapter</code> <code>Persistent</code>  
 804  
   */
 805  
 
 806  
   public String getFilename()
 807  
       throws AccessPoemException {
 808  17
     readLock();
 809  17
     return getFilename_unsafe();
 810  
   }
 811  
 
 812  
 
 813  
  /**
 814  
   * Sets the <code>Filename</code> value, with checking, for this 
 815  
   * <code>Chapter</code> <code>Persistent</code>.
 816  
   * Field description: 
 817  
   *   The filename of the chapter in the local filesystem, relative to `Path' 
 818  
   * 
 819  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 820  
   * @param cooked  a validated <code>int</code> 
 821  
   * @throws AccessPoemException 
 822  
   *         if the current <code>AccessToken</code> 
 823  
   *         does not confer write access rights
 824  
   * @throws ValidationPoemException 
 825  
   *         if the value is not valid
 826  
   */
 827  
   public void setFilename(String cooked)
 828  
       throws AccessPoemException, ValidationPoemException {
 829  5
     _getChapterTable().getFilenameColumn().
 830  
       getType().assertValidCooked(cooked);
 831  5
     writeLock();
 832  5
     setFilename_unsafe(cooked);
 833  5
   }
 834  
 
 835  
 
 836  
  /**
 837  
   * Retrieves the <code>Filename</code> value as a <code>Field</code>
 838  
   * from this <code>Chapter</code> <code>Persistent</code>.
 839  
   * 
 840  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 841  
   * @throws AccessPoemException 
 842  
   *         if the current <code>AccessToken</code> 
 843  
   *         does not confer write access rights
 844  
   * @return the String filename
 845  
   */
 846  
   public Field<String> getFilenameField() throws AccessPoemException {
 847  0
     Column<String> c = _getChapterTable().getFilenameColumn();
 848  0
     return new Field<String>((String)c.getRaw(this), c);
 849  
   }
 850  
 
 851  
 
 852  
  /**
 853  
   * Retrieves the <code>Part</code> value, without locking, 
 854  
   * for this <code>Chapter</code> <code>Persistent</code>.
 855  
   *
 856  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 857  
   * @return the String part
 858  
   */
 859  
   public String getPart_unsafe() {
 860  6
     return part;
 861  
   }
 862  
 
 863  
 
 864  
  /**
 865  
   * Sets the <code>Part</code> value directly, without checking, 
 866  
   * for this Chapter <code>Persistent</code>.
 867  
   * 
 868  
   * see org.melati.poem.prepro.FieldDef#generateBaseMethods 
 869  
   * @param cooked  the pre-validated value to set
 870  
   */
 871  
   public void setPart_unsafe(String cooked) {
 872  7
     part = cooked;
 873  7
   }
 874  
 
 875  
  /**
 876  
   * Retrieves the Part value, with locking, for this 
 877  
   * <code>Chapter</code> <code>Persistent</code>.
 878  
   * 
 879  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 880  
   * @throws AccessPoemException 
 881  
   *         if the current <code>AccessToken</code> 
 882  
   *         does not confer write access rights 
 883  
   * @return the value of the field <code>Part</code> for this 
 884  
   *         <code>Chapter</code> <code>Persistent</code>  
 885  
   */
 886  
 
 887  
   public String getPart()
 888  
       throws AccessPoemException {
 889  0
     readLock();
 890  0
     return getPart_unsafe();
 891  
   }
 892  
 
 893  
 
 894  
  /**
 895  
   * Sets the <code>Part</code> value, with checking, for this 
 896  
   * <code>Chapter</code> <code>Persistent</code>.
 897  
   * 
 898  
   * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 899  
   * @param cooked  a validated <code>int</code> 
 900  
   * @throws AccessPoemException 
 901  
   *         if the current <code>AccessToken</code> 
 902  
   *         does not confer write access rights
 903  
   * @throws ValidationPoemException 
 904  
   *         if the value is not valid
 905  
   */
 906  
   public void setPart(String cooked)
 907  
       throws AccessPoemException, ValidationPoemException {
 908  0
     _getChapterTable().getPartColumn().
 909  
       getType().assertValidCooked(cooked);
 910  0
     writeLock();
 911  0
     setPart_unsafe(cooked);
 912  0
   }
 913  
 
 914  
 
 915  
  /**
 916  
   * Retrieves the <code>Part</code> value as a <code>Field</code>
 917  
   * from this <code>Chapter</code> <code>Persistent</code>.
 918  
   * 
 919  
   * see org.melati.poem.prepro.FieldDef#generateFieldCreator 
 920  
   * @throws AccessPoemException 
 921  
   *         if the current <code>AccessToken</code> 
 922  
   *         does not confer write access rights
 923  
   * @return the String part
 924  
   */
 925  
   public Field<String> getPartField() throws AccessPoemException {
 926  0
     Column<String> c = _getChapterTable().getPartColumn();
 927  0
     return new Field<String>((String)c.getRaw(this), c);
 928  
   }
 929  
 
 930  
 }
 931