Coverage Report - org.paneris.jammyjoes.model.generated.AgeBase
 
Classes in this File Line Coverage Branch Coverage Complexity
AgeBase
0%
0/65
N/A
1
 
 1  
 // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
 2  
 
 3  
 package org.paneris.jammyjoes.model.generated;
 4  
 
 5  
 
 6  
 import org.melati.poem.AccessPoemException;
 7  
 import org.melati.poem.Column;
 8  
 import org.melati.poem.Field;
 9  
 import org.melati.poem.JdbcPersistent;
 10  
 import org.melati.poem.ValidationPoemException;
 11  
 import org.paneris.jammyjoes.model.AgeTable;
 12  
 import org.paneris.jammyjoes.model.JammyjoesDatabaseTables;
 13  
 
 14  
 
 15  
 /**
 16  
  * Melati POEM generated abstract base class for a <code>Persistent</code> 
 17  
  * <code>Age</code> Object.
 18  
  *
 19  
  * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava 
 20  
  */
 21  0
 public abstract class AgeBase extends JdbcPersistent {
 22  
 
 23  
 
 24  
  /**
 25  
   * Retrieves the Database object.
 26  
   * 
 27  
   * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava 
 28  
   * @return the database
 29  
   */
 30  
   public JammyjoesDatabaseTables getJammyjoesDatabaseTables() {
 31  0
     return (JammyjoesDatabaseTables)getDatabase();
 32  
   }
 33  
 
 34  
 
 35  
  /**
 36  
   * Retrieves the  <code>AgeTable</code> table 
 37  
   * which this <code>Persistent</code> is from.
 38  
   * 
 39  
   * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava 
 40  
   * @return the AgeTable
 41  
   */
 42  
   public AgeTable getAgeTable() {
 43  0
     return (AgeTable)getTable();
 44  
   }
 45  
 
 46  
   private AgeTable _getAgeTable() {
 47  0
     return (AgeTable)getTable();
 48  
   }
 49  
 
 50  
   // Fields in this table 
 51  
  /**
 52  
   * id 
 53  
   */
 54  
   protected Integer id;
 55  
  /**
 56  
   * Age name (singular) - Age name (singular) 
 57  
   */
 58  
   protected String name;
 59  
  /**
 60  
   * Age name (plural) - Age name (plural) 
 61  
   */
 62  
   protected String pluralName;
 63  
  /**
 64  
   * Minimum Age 
 65  
   */
 66  
   protected Integer minage;
 67  
  /**
 68  
   * Maximum Age 
 69  
   */
 70  
   protected Integer maxage;
 71  
 
 72  
 
 73  
  /**
 74  
   * Retrieves the <code>Id</code> value, without locking, 
 75  
   * for this <code>Age</code> <code>Persistent</code>.
 76  
   *
 77  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 78  
   * @return the Integer id
 79  
   */
 80  
   public Integer getId_unsafe() {
 81  0
     return id;
 82  
   }
 83  
 
 84  
 
 85  
  /**
 86  
   * Sets the <code>Id</code> value directly, without checking, 
 87  
   * for this Age <code>Persistent</code>.
 88  
   * 
 89  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 90  
   * @param cooked  the pre-validated value to set
 91  
   */
 92  
   public void setId_unsafe(Integer cooked) {
 93  0
     id = cooked;
 94  0
   }
 95  
 
 96  
  /**
 97  
   * Retrieves the Id value, with locking, for this 
 98  
   * <code>Age</code> <code>Persistent</code>.
 99  
   * 
 100  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 101  
   * @throws AccessPoemException 
 102  
   *         if the current <code>AccessToken</code> 
 103  
   *         does not confer write access rights 
 104  
   * @return the value of the field <code>Id</code> for this 
 105  
   *         <code>Age</code> <code>Persistent</code>  
 106  
   */
 107  
 
 108  
   public Integer getId()
 109  
       throws AccessPoemException {
 110  0
     readLock();
 111  0
     return getId_unsafe();
 112  
   }
 113  
 
 114  
 
 115  
  /**
 116  
   * Sets the <code>Id</code> value, with checking, for this 
 117  
   * <code>Age</code> <code>Persistent</code>.
 118  
   * 
 119  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 120  
   * @param cooked  a validated <code>int</code> 
 121  
   * @throws AccessPoemException 
 122  
   *         if the current <code>AccessToken</code> 
 123  
   *         does not confer write access rights
 124  
   * @throws ValidationPoemException 
 125  
   *         if the value is not valid
 126  
   */
 127  
   public void setId(Integer cooked)
 128  
       throws AccessPoemException, ValidationPoemException {
 129  0
     _getAgeTable().getIdColumn().
 130  
       getType().assertValidCooked(cooked);
 131  0
     writeLock();
 132  0
     setId_unsafe(cooked);
 133  0
   }
 134  
 
 135  
  /**
 136  
   * Sets the <code>Id</code> value, with checking, for this 
 137  
   * <code>Age</code> <code>Persistent</code>.
 138  
   * 
 139  
   * @generator org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods 
 140  
   * @param cooked  a validated <code>int</code>
 141  
   * @throws AccessPoemException 
 142  
   *         if the current <code>AccessToken</code> 
 143  
   *         does not confer write access rights
 144  
   * @throws ValidationPoemException 
 145  
   *         if the value is not valid
 146  
   */
 147  
 
 148  
   public final void setId(int cooked)
 149  
       throws AccessPoemException, ValidationPoemException {
 150  0
     setId(new Integer(cooked));
 151  0
   }
 152  
 
 153  
 
 154  
  /**
 155  
   * Retrieves the <code>Id</code> value as a <code>Field</code>
 156  
   * from this <code>Age</code> <code>Persistent</code>.
 157  
   * 
 158  
   * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator 
 159  
   * @throws AccessPoemException 
 160  
   *         if the current <code>AccessToken</code> 
 161  
   *         does not confer write access rights
 162  
   * @return the Integer id
 163  
   */
 164  
   public Field getIdField() throws AccessPoemException {
 165  0
     Column c = _getAgeTable().getIdColumn();
 166  0
     return new Field(c.getRaw(this), c);
 167  
   }
 168  
 
 169  
 
 170  
  /**
 171  
   * Retrieves the <code>Name</code> value, without locking, 
 172  
   * for this <code>Age</code> <code>Persistent</code>.
 173  
   *
 174  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 175  
   * @return the String name
 176  
   */
 177  
   public String getName_unsafe() {
 178  0
     return name;
 179  
   }
 180  
 
 181  
 
 182  
  /**
 183  
   * Sets the <code>Name</code> value directly, without checking, 
 184  
   * for this Age <code>Persistent</code>.
 185  
   * 
 186  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 187  
   * @param cooked  the pre-validated value to set
 188  
   */
 189  
   public void setName_unsafe(String cooked) {
 190  0
     name = cooked;
 191  0
   }
 192  
 
 193  
  /**
 194  
   * Retrieves the Name value, with locking, for this 
 195  
   * <code>Age</code> <code>Persistent</code>.
 196  
   * Field description: 
 197  
   *   Age name (singular) 
 198  
   * 
 199  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 200  
   * @throws AccessPoemException 
 201  
   *         if the current <code>AccessToken</code> 
 202  
   *         does not confer write access rights 
 203  
   * @return the value of the field <code>Name</code> for this 
 204  
   *         <code>Age</code> <code>Persistent</code>  
 205  
   */
 206  
 
 207  
   public String getName()
 208  
       throws AccessPoemException {
 209  0
     readLock();
 210  0
     return getName_unsafe();
 211  
   }
 212  
 
 213  
 
 214  
  /**
 215  
   * Sets the <code>Name</code> value, with checking, for this 
 216  
   * <code>Age</code> <code>Persistent</code>.
 217  
   * Field description: 
 218  
   *   Age name (singular) 
 219  
   * 
 220  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 221  
   * @param cooked  a validated <code>int</code> 
 222  
   * @throws AccessPoemException 
 223  
   *         if the current <code>AccessToken</code> 
 224  
   *         does not confer write access rights
 225  
   * @throws ValidationPoemException 
 226  
   *         if the value is not valid
 227  
   */
 228  
   public void setName(String cooked)
 229  
       throws AccessPoemException, ValidationPoemException {
 230  0
     _getAgeTable().getNameColumn().
 231  
       getType().assertValidCooked(cooked);
 232  0
     writeLock();
 233  0
     setName_unsafe(cooked);
 234  0
   }
 235  
 
 236  
 
 237  
  /**
 238  
   * Retrieves the <code>Name</code> value as a <code>Field</code>
 239  
   * from this <code>Age</code> <code>Persistent</code>.
 240  
   * 
 241  
   * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator 
 242  
   * @throws AccessPoemException 
 243  
   *         if the current <code>AccessToken</code> 
 244  
   *         does not confer write access rights
 245  
   * @return the String name
 246  
   */
 247  
   public Field getNameField() throws AccessPoemException {
 248  0
     Column c = _getAgeTable().getNameColumn();
 249  0
     return new Field(c.getRaw(this), c);
 250  
   }
 251  
 
 252  
 
 253  
  /**
 254  
   * Retrieves the <code>PluralName</code> value, without locking, 
 255  
   * for this <code>Age</code> <code>Persistent</code>.
 256  
   *
 257  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 258  
   * @return the String pluralName
 259  
   */
 260  
   public String getPluralName_unsafe() {
 261  0
     return pluralName;
 262  
   }
 263  
 
 264  
 
 265  
  /**
 266  
   * Sets the <code>PluralName</code> value directly, without checking, 
 267  
   * for this Age <code>Persistent</code>.
 268  
   * 
 269  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 270  
   * @param cooked  the pre-validated value to set
 271  
   */
 272  
   public void setPluralName_unsafe(String cooked) {
 273  0
     pluralName = cooked;
 274  0
   }
 275  
 
 276  
  /**
 277  
   * Retrieves the PluralName value, with locking, for this 
 278  
   * <code>Age</code> <code>Persistent</code>.
 279  
   * Field description: 
 280  
   *   Age name (plural) 
 281  
   * 
 282  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 283  
   * @throws AccessPoemException 
 284  
   *         if the current <code>AccessToken</code> 
 285  
   *         does not confer write access rights 
 286  
   * @return the value of the field <code>PluralName</code> for this 
 287  
   *         <code>Age</code> <code>Persistent</code>  
 288  
   */
 289  
 
 290  
   public String getPluralName()
 291  
       throws AccessPoemException {
 292  0
     readLock();
 293  0
     return getPluralName_unsafe();
 294  
   }
 295  
 
 296  
 
 297  
  /**
 298  
   * Sets the <code>PluralName</code> value, with checking, for this 
 299  
   * <code>Age</code> <code>Persistent</code>.
 300  
   * Field description: 
 301  
   *   Age name (plural) 
 302  
   * 
 303  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 304  
   * @param cooked  a validated <code>int</code> 
 305  
   * @throws AccessPoemException 
 306  
   *         if the current <code>AccessToken</code> 
 307  
   *         does not confer write access rights
 308  
   * @throws ValidationPoemException 
 309  
   *         if the value is not valid
 310  
   */
 311  
   public void setPluralName(String cooked)
 312  
       throws AccessPoemException, ValidationPoemException {
 313  0
     _getAgeTable().getPluralNameColumn().
 314  
       getType().assertValidCooked(cooked);
 315  0
     writeLock();
 316  0
     setPluralName_unsafe(cooked);
 317  0
   }
 318  
 
 319  
 
 320  
  /**
 321  
   * Retrieves the <code>PluralName</code> value as a <code>Field</code>
 322  
   * from this <code>Age</code> <code>Persistent</code>.
 323  
   * 
 324  
   * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator 
 325  
   * @throws AccessPoemException 
 326  
   *         if the current <code>AccessToken</code> 
 327  
   *         does not confer write access rights
 328  
   * @return the String pluralName
 329  
   */
 330  
   public Field getPluralNameField() throws AccessPoemException {
 331  0
     Column c = _getAgeTable().getPluralNameColumn();
 332  0
     return new Field(c.getRaw(this), c);
 333  
   }
 334  
 
 335  
 
 336  
  /**
 337  
   * Retrieves the <code>Minage</code> value, without locking, 
 338  
   * for this <code>Age</code> <code>Persistent</code>.
 339  
   *
 340  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 341  
   * @return the Integer minage
 342  
   */
 343  
   public Integer getMinage_unsafe() {
 344  0
     return minage;
 345  
   }
 346  
 
 347  
 
 348  
  /**
 349  
   * Sets the <code>Minage</code> value directly, without checking, 
 350  
   * for this Age <code>Persistent</code>.
 351  
   * 
 352  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 353  
   * @param cooked  the pre-validated value to set
 354  
   */
 355  
   public void setMinage_unsafe(Integer cooked) {
 356  0
     minage = cooked;
 357  0
   }
 358  
 
 359  
  /**
 360  
   * Retrieves the Minage value, with locking, for this 
 361  
   * <code>Age</code> <code>Persistent</code>.
 362  
   * 
 363  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 364  
   * @throws AccessPoemException 
 365  
   *         if the current <code>AccessToken</code> 
 366  
   *         does not confer write access rights 
 367  
   * @return the value of the field <code>Minage</code> for this 
 368  
   *         <code>Age</code> <code>Persistent</code>  
 369  
   */
 370  
 
 371  
   public Integer getMinage()
 372  
       throws AccessPoemException {
 373  0
     readLock();
 374  0
     return getMinage_unsafe();
 375  
   }
 376  
 
 377  
 
 378  
  /**
 379  
   * Sets the <code>Minage</code> value, with checking, for this 
 380  
   * <code>Age</code> <code>Persistent</code>.
 381  
   * 
 382  
   * @generator org.melati.poem.prepro.AtomFieldDef#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  
   public void setMinage(Integer cooked)
 391  
       throws AccessPoemException, ValidationPoemException {
 392  0
     _getAgeTable().getMinageColumn().
 393  
       getType().assertValidCooked(cooked);
 394  0
     writeLock();
 395  0
     setMinage_unsafe(cooked);
 396  0
   }
 397  
 
 398  
  /**
 399  
   * Sets the <code>Minage</code> value, with checking, for this 
 400  
   * <code>Age</code> <code>Persistent</code>.
 401  
   * 
 402  
   * @generator org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods 
 403  
   * @param cooked  a validated <code>int</code>
 404  
   * @throws AccessPoemException 
 405  
   *         if the current <code>AccessToken</code> 
 406  
   *         does not confer write access rights
 407  
   * @throws ValidationPoemException 
 408  
   *         if the value is not valid
 409  
   */
 410  
 
 411  
   public final void setMinage(int cooked)
 412  
       throws AccessPoemException, ValidationPoemException {
 413  0
     setMinage(new Integer(cooked));
 414  0
   }
 415  
 
 416  
 
 417  
  /**
 418  
   * Retrieves the <code>Minage</code> value as a <code>Field</code>
 419  
   * from this <code>Age</code> <code>Persistent</code>.
 420  
   * 
 421  
   * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator 
 422  
   * @throws AccessPoemException 
 423  
   *         if the current <code>AccessToken</code> 
 424  
   *         does not confer write access rights
 425  
   * @return the Integer minage
 426  
   */
 427  
   public Field getMinageField() throws AccessPoemException {
 428  0
     Column c = _getAgeTable().getMinageColumn();
 429  0
     return new Field(c.getRaw(this), c);
 430  
   }
 431  
 
 432  
 
 433  
  /**
 434  
   * Retrieves the <code>Maxage</code> value, without locking, 
 435  
   * for this <code>Age</code> <code>Persistent</code>.
 436  
   *
 437  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 438  
   * @return the Integer maxage
 439  
   */
 440  
   public Integer getMaxage_unsafe() {
 441  0
     return maxage;
 442  
   }
 443  
 
 444  
 
 445  
  /**
 446  
   * Sets the <code>Maxage</code> value directly, without checking, 
 447  
   * for this Age <code>Persistent</code>.
 448  
   * 
 449  
   * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods 
 450  
   * @param cooked  the pre-validated value to set
 451  
   */
 452  
   public void setMaxage_unsafe(Integer cooked) {
 453  0
     maxage = cooked;
 454  0
   }
 455  
 
 456  
  /**
 457  
   * Retrieves the Maxage value, with locking, for this 
 458  
   * <code>Age</code> <code>Persistent</code>.
 459  
   * 
 460  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 
 461  
   * @throws AccessPoemException 
 462  
   *         if the current <code>AccessToken</code> 
 463  
   *         does not confer write access rights 
 464  
   * @return the value of the field <code>Maxage</code> for this 
 465  
   *         <code>Age</code> <code>Persistent</code>  
 466  
   */
 467  
 
 468  
   public Integer getMaxage()
 469  
       throws AccessPoemException {
 470  0
     readLock();
 471  0
     return getMaxage_unsafe();
 472  
   }
 473  
 
 474  
 
 475  
  /**
 476  
   * Sets the <code>Maxage</code> value, with checking, for this 
 477  
   * <code>Age</code> <code>Persistent</code>.
 478  
   * 
 479  
   * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods  
 480  
   * @param cooked  a validated <code>int</code> 
 481  
   * @throws AccessPoemException 
 482  
   *         if the current <code>AccessToken</code> 
 483  
   *         does not confer write access rights
 484  
   * @throws ValidationPoemException 
 485  
   *         if the value is not valid
 486  
   */
 487  
   public void setMaxage(Integer cooked)
 488  
       throws AccessPoemException, ValidationPoemException {
 489  0
     _getAgeTable().getMaxageColumn().
 490  
       getType().assertValidCooked(cooked);
 491  0
     writeLock();
 492  0
     setMaxage_unsafe(cooked);
 493  0
   }
 494  
 
 495  
  /**
 496  
   * Sets the <code>Maxage</code> value, with checking, for this 
 497  
   * <code>Age</code> <code>Persistent</code>.
 498  
   * 
 499  
   * @generator org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods 
 500  
   * @param cooked  a validated <code>int</code>
 501  
   * @throws AccessPoemException 
 502  
   *         if the current <code>AccessToken</code> 
 503  
   *         does not confer write access rights
 504  
   * @throws ValidationPoemException 
 505  
   *         if the value is not valid
 506  
   */
 507  
 
 508  
   public final void setMaxage(int cooked)
 509  
       throws AccessPoemException, ValidationPoemException {
 510  0
     setMaxage(new Integer(cooked));
 511  0
   }
 512  
 
 513  
 
 514  
  /**
 515  
   * Retrieves the <code>Maxage</code> value as a <code>Field</code>
 516  
   * from this <code>Age</code> <code>Persistent</code>.
 517  
   * 
 518  
   * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator 
 519  
   * @throws AccessPoemException 
 520  
   *         if the current <code>AccessToken</code> 
 521  
   *         does not confer write access rights
 522  
   * @return the Integer maxage
 523  
   */
 524  
   public Field getMaxageField() throws AccessPoemException {
 525  0
     Column c = _getAgeTable().getMaxageColumn();
 526  0
     return new Field(c.getRaw(this), c);
 527  
   }
 528  
 }
 529