Coverage Report - org.paneris.jammyjoes.model.generated.ProductTableBase
 
Classes in this File Line Coverage Branch Coverage Complexity
ProductTableBase
0%
0/125
N/A
1
ProductTableBase$1
0%
0/18
N/A
1
ProductTableBase$10
0%
0/16
N/A
1
ProductTableBase$11
0%
0/15
N/A
1
ProductTableBase$12
0%
0/15
N/A
1
ProductTableBase$13
0%
0/15
N/A
1
ProductTableBase$14
0%
0/16
N/A
1
ProductTableBase$15
0%
0/17
N/A
1
ProductTableBase$16
0%
0/17
N/A
1
ProductTableBase$17
0%
0/17
N/A
1
ProductTableBase$18
0%
0/17
N/A
1
ProductTableBase$19
0%
0/16
N/A
1
ProductTableBase$2
0%
0/16
N/A
1
ProductTableBase$20
0%
0/15
N/A
1
ProductTableBase$21
0%
0/15
N/A
1
ProductTableBase$22
0%
0/15
N/A
1
ProductTableBase$23
0%
0/17
N/A
1
ProductTableBase$24
0%
0/16
N/A
1
ProductTableBase$25
0%
0/16
N/A
1
ProductTableBase$26
0%
0/16
N/A
1
ProductTableBase$27
0%
0/15
N/A
1
ProductTableBase$28
0%
0/15
N/A
1
ProductTableBase$29
0%
0/15
N/A
1
ProductTableBase$3
0%
0/14
N/A
1
ProductTableBase$30
0%
0/15
N/A
1
ProductTableBase$31
0%
0/15
N/A
1
ProductTableBase$32
0%
0/17
N/A
1
ProductTableBase$33
0%
0/17
N/A
1
ProductTableBase$34
0%
0/15
N/A
1
ProductTableBase$35
0%
0/15
N/A
1
ProductTableBase$36
0%
0/14
N/A
1
ProductTableBase$37
0%
0/16
N/A
1
ProductTableBase$4
0%
0/14
N/A
1
ProductTableBase$5
0%
0/15
N/A
1
ProductTableBase$6
0%
0/16
N/A
1
ProductTableBase$7
0%
0/17
N/A
1
ProductTableBase$8
0%
0/15
N/A
1
ProductTableBase$9
0%
0/15
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  
 import org.melati.poem.AccessPoemException;
 6  
 import org.melati.poem.BooleanPoemType;
 7  
 import org.melati.poem.Column;
 8  
 import org.melati.poem.Database;
 9  
 import org.melati.poem.DefinitionSource;
 10  
 import org.melati.poem.DisplayLevel;
 11  
 import org.melati.poem.DoublePoemType;
 12  
 import org.melati.poem.Field;
 13  
 import org.melati.poem.IntegerPoemType;
 14  
 import org.melati.poem.JdbcPersistent;
 15  
 import org.melati.poem.Persistent;
 16  
 import org.melati.poem.PoemException;
 17  
 import org.melati.poem.ReferencePoemType;
 18  
 import org.melati.poem.Searchability;
 19  
 import org.melati.poem.StringPoemType;
 20  
 import org.melati.poem.TroidPoemType;
 21  
 import org.melati.poem.ValidationPoemException;
 22  
 import org.paneris.jammyjoes.model.Award;
 23  
 import org.paneris.jammyjoes.model.JammyjoesDatabaseTables;
 24  
 import org.paneris.jammyjoes.model.JammyjoesTable;
 25  
 import org.paneris.jammyjoes.model.Manufacturer;
 26  
 import org.paneris.jammyjoes.model.Product;
 27  
 import org.paneris.jammyjoes.model.ProductStatus;
 28  
 import org.paneris.jammyjoes.model.Sex;
 29  
 import org.paneris.jammyjoes.model.Supplier;
 30  
 import org.paneris.jammyjoes.model.Type;
 31  
 
 32  
 
 33  
 /**
 34  
  * Melati POEM generated base class for 
 35  
 <code>Table</code> <code>Product</code>.
 36  
  *
 37  
  * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 38  
  */
 39  
 
 40  
 public class ProductTableBase extends JammyjoesTable {
 41  
 
 42  0
   private Column col_id = null;
 43  0
   private Column col_name = null;
 44  0
   private Column col_status = null;
 45  0
   private Column col_type = null;
 46  0
   private Column col_type2 = null;
 47  0
   private Column col_sex = null;
 48  0
   private Column col_description = null;
 49  0
   private Column col_supplier = null;
 50  0
   private Column col_manufacturer = null;
 51  0
   private Column col_suppliercode = null;
 52  0
   private Column col_costprice = null;
 53  0
   private Column col_retailpriceincvat = null;
 54  0
   private Column col_vatexempt = null;
 55  0
   private Column col_saleprice = null;
 56  0
   private Column col_retailprice = null;
 57  0
   private Column col_margin = null;
 58  0
   private Column col_marginpercent = null;
 59  0
   private Column col_markuppercent = null;
 60  0
   private Column col_deliverycost = null;
 61  0
   private Column col_minage = null;
 62  0
   private Column col_maxage = null;
 63  0
   private Column col_pieces = null;
 64  0
   private Column col_stocklevel = null;
 65  0
   private Column col_reorderlevel = null;
 66  0
   private Column col_reorderquantity = null;
 67  0
   private Column col_minimumorder = null;
 68  0
   private Column col_leadtime = null;
 69  0
   private Column col_weight = null;
 70  0
   private Column col_width = null;
 71  0
   private Column col_height = null;
 72  0
   private Column col_depth = null;
 73  0
   private Column col_picture = null;
 74  0
   private Column col_picture2 = null;
 75  0
   private Column col_catalogue = null;
 76  0
   private Column col_deleted = null;
 77  0
   private Column col_award = null;
 78  0
   private Column col_onorderquantity = null;
 79  
 
 80  
  /**
 81  
   * Constructor. 
 82  
   * 
 83  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 84  
   * @param database          the POEM database we are using
 85  
   * @param name              the name of this <code>Table</code>
 86  
   * @param definitionSource  which definition is being used
 87  
   * @throws PoemException    if anything goes wrong
 88  
   */
 89  
 
 90  
   public ProductTableBase(
 91  
       Database database, String name,
 92  
       DefinitionSource definitionSource) throws PoemException {
 93  0
     super(database, name, definitionSource);
 94  0
   }
 95  
 
 96  
 
 97  
  /**
 98  
   * Get the database tables.
 99  
   *
 100  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 101  
   * @return the database tables
 102  
   */
 103  
   public JammyjoesDatabaseTables getJammyjoesDatabaseTables() {
 104  0
     return (JammyjoesDatabaseTables)getDatabase();
 105  
   }
 106  
 
 107  
   public void init() throws PoemException {
 108  0
     super.init();
 109  0
     defineColumn(col_id =
 110  
         new Column(this, "id",
 111  
                    new TroidPoemType(),
 112  
                    DefinitionSource.dsd) { 
 113  
           public Object getCooked(Persistent g)
 114  
               throws AccessPoemException, PoemException {
 115  0
             return ((Product)g).getId();
 116  
           }
 117  
 
 118  
           public void setCooked(Persistent g, Object cooked)
 119  
               throws AccessPoemException, ValidationPoemException {
 120  0
             ((Product)g).setId((Integer)cooked);
 121  0
           }
 122  
 
 123  
           public Field asField(Persistent g) {
 124  0
             return ((Product)g).getIdField();
 125  
           }
 126  
 
 127  
           protected boolean defaultUserEditable() {
 128  0
             return false;
 129  
           }
 130  
 
 131  
           protected boolean defaultUserCreateable() {
 132  0
             return false;
 133  
           }
 134  
 
 135  
           protected DisplayLevel defaultDisplayLevel() {
 136  0
             return DisplayLevel.summary;
 137  
           }
 138  
 
 139  
           protected Searchability defaultSearchability() {
 140  0
             return Searchability.primary;
 141  
           }
 142  
 
 143  
           protected Integer defaultDisplayOrderPriority() {
 144  0
             return new Integer(0);
 145  
           }
 146  
 
 147  
           protected boolean defaultSortDescending() {
 148  0
             return true;
 149  
           }
 150  
 
 151  
           protected int defaultDisplayOrder() {
 152  0
             return 0;
 153  
           }
 154  
 
 155  
           public Object getRaw_unsafe(Persistent g)
 156  
               throws AccessPoemException {
 157  0
             return ((Product)g).getId_unsafe();
 158  
           }
 159  
 
 160  
           public void setRaw_unsafe(Persistent g, Object raw)
 161  
               throws AccessPoemException {
 162  0
             ((Product)g).setId_unsafe((Integer)raw);
 163  0
           }
 164  
 
 165  
           public Object getRaw(Persistent g)
 166  
               throws AccessPoemException {
 167  0
             return ((Product)g).getId();
 168  
           }
 169  
 
 170  0
           public void setRaw(Persistent g, Object raw)
 171  
               throws AccessPoemException {
 172  0
             ((Product)g).setId((Integer)raw);
 173  0
           }
 174  
         });
 175  
 
 176  0
     defineColumn(col_name =
 177  
         new Column(this, "name",
 178  
                    new StringPoemType(false, -1),
 179  
                    DefinitionSource.dsd) { 
 180  
           public Object getCooked(Persistent g)
 181  
               throws AccessPoemException, PoemException {
 182  0
             return ((Product)g).getName();
 183  
           }
 184  
 
 185  
           public void setCooked(Persistent g, Object cooked)
 186  
               throws AccessPoemException, ValidationPoemException {
 187  0
             ((Product)g).setName((String)cooked);
 188  0
           }
 189  
 
 190  
           public Field asField(Persistent g) {
 191  0
             return ((Product)g).getNameField();
 192  
           }
 193  
 
 194  
           protected DisplayLevel defaultDisplayLevel() {
 195  0
             return DisplayLevel.primary;
 196  
           }
 197  
 
 198  
           protected Searchability defaultSearchability() {
 199  0
             return Searchability.yes;
 200  
           }
 201  
 
 202  
           protected String defaultDisplayName() {
 203  0
             return "Product Name";
 204  
           }
 205  
 
 206  
           protected int defaultDisplayOrder() {
 207  0
             return 1;
 208  
           }
 209  
 
 210  
           protected int defaultWidth() {
 211  0
             return 40;
 212  
           }
 213  
 
 214  
           public Object getRaw_unsafe(Persistent g)
 215  
               throws AccessPoemException {
 216  0
             return ((Product)g).getName_unsafe();
 217  
           }
 218  
 
 219  
           public void setRaw_unsafe(Persistent g, Object raw)
 220  
               throws AccessPoemException {
 221  0
             ((Product)g).setName_unsafe((String)raw);
 222  0
           }
 223  
 
 224  
           public Object getRaw(Persistent g)
 225  
               throws AccessPoemException {
 226  0
             return ((Product)g).getName();
 227  
           }
 228  
 
 229  0
           public void setRaw(Persistent g, Object raw)
 230  
               throws AccessPoemException {
 231  0
             ((Product)g).setName((String)raw);
 232  0
           }
 233  
         });
 234  
 
 235  0
     defineColumn(col_status =
 236  
         new Column(this, "status",
 237  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 238  
                                              getProductStatusTable(), false),
 239  
                    DefinitionSource.dsd) { 
 240  
           public Object getCooked(Persistent g)
 241  
               throws AccessPoemException, PoemException {
 242  0
             return ((Product)g).getStatus();
 243  
           }
 244  
 
 245  
           public void setCooked(Persistent g, Object cooked)
 246  
               throws AccessPoemException, ValidationPoemException {
 247  0
             ((Product)g).setStatus((ProductStatus)cooked);
 248  0
           }
 249  
 
 250  
           public Field asField(Persistent g) {
 251  0
             return ((Product)g).getStatusField();
 252  
           }
 253  
 
 254  
           protected DisplayLevel defaultDisplayLevel() {
 255  0
             return DisplayLevel.record;
 256  
           }
 257  
 
 258  
           protected Searchability defaultSearchability() {
 259  0
             return Searchability.yes;
 260  
           }
 261  
 
 262  
           protected int defaultDisplayOrder() {
 263  0
             return 2;
 264  
           }
 265  
 
 266  
           public Object getRaw_unsafe(Persistent g)
 267  
               throws AccessPoemException {
 268  0
             return ((Product)g).getStatus_unsafe();
 269  
           }
 270  
 
 271  
           public void setRaw_unsafe(Persistent g, Object raw)
 272  
               throws AccessPoemException {
 273  0
             ((Product)g).setStatus_unsafe((Integer)raw);
 274  0
           }
 275  
 
 276  
           public Object getRaw(Persistent g)
 277  
               throws AccessPoemException {
 278  0
             return ((Product)g).getStatusTroid();
 279  
           }
 280  
 
 281  0
           public void setRaw(Persistent g, Object raw)
 282  
               throws AccessPoemException {
 283  0
             ((Product)g).setStatusTroid((Integer)raw);
 284  0
           }
 285  
         });
 286  
 
 287  0
     defineColumn(col_type =
 288  
         new Column(this, "type",
 289  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 290  
                                              getTypeTable(), false),
 291  
                    DefinitionSource.dsd) { 
 292  
           public Object getCooked(Persistent g)
 293  
               throws AccessPoemException, PoemException {
 294  0
             return ((Product)g).getType();
 295  
           }
 296  
 
 297  
           public void setCooked(Persistent g, Object cooked)
 298  
               throws AccessPoemException, ValidationPoemException {
 299  0
             ((Product)g).setType((Type)cooked);
 300  0
           }
 301  
 
 302  
           public Field asField(Persistent g) {
 303  0
             return ((Product)g).getTypeField();
 304  
           }
 305  
 
 306  
           protected DisplayLevel defaultDisplayLevel() {
 307  0
             return DisplayLevel.record;
 308  
           }
 309  
 
 310  
           protected Searchability defaultSearchability() {
 311  0
             return Searchability.yes;
 312  
           }
 313  
 
 314  
           protected int defaultDisplayOrder() {
 315  0
             return 3;
 316  
           }
 317  
 
 318  
           public Object getRaw_unsafe(Persistent g)
 319  
               throws AccessPoemException {
 320  0
             return ((Product)g).getType_unsafe();
 321  
           }
 322  
 
 323  
           public void setRaw_unsafe(Persistent g, Object raw)
 324  
               throws AccessPoemException {
 325  0
             ((Product)g).setType_unsafe((Integer)raw);
 326  0
           }
 327  
 
 328  
           public Object getRaw(Persistent g)
 329  
               throws AccessPoemException {
 330  0
             return ((Product)g).getTypeTroid();
 331  
           }
 332  
 
 333  0
           public void setRaw(Persistent g, Object raw)
 334  
               throws AccessPoemException {
 335  0
             ((Product)g).setTypeTroid((Integer)raw);
 336  0
           }
 337  
         });
 338  
 
 339  0
     defineColumn(col_type2 =
 340  
         new Column(this, "type2",
 341  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 342  
                                              getTypeTable(), true),
 343  
                    DefinitionSource.dsd) { 
 344  
           public Object getCooked(Persistent g)
 345  
               throws AccessPoemException, PoemException {
 346  0
             return ((Product)g).getType2();
 347  
           }
 348  
 
 349  
           public void setCooked(Persistent g, Object cooked)
 350  
               throws AccessPoemException, ValidationPoemException {
 351  0
             ((Product)g).setType2((Type)cooked);
 352  0
           }
 353  
 
 354  
           public Field asField(Persistent g) {
 355  0
             return ((Product)g).getType2Field();
 356  
           }
 357  
 
 358  
           protected DisplayLevel defaultDisplayLevel() {
 359  0
             return DisplayLevel.record;
 360  
           }
 361  
 
 362  
           protected Searchability defaultSearchability() {
 363  0
             return Searchability.yes;
 364  
           }
 365  
 
 366  
           protected int defaultDisplayOrder() {
 367  0
             return 4;
 368  
           }
 369  
 
 370  
           protected String defaultDescription() {
 371  0
             return "You can add this product to another category here";
 372  
           }
 373  
 
 374  
           public Object getRaw_unsafe(Persistent g)
 375  
               throws AccessPoemException {
 376  0
             return ((Product)g).getType2_unsafe();
 377  
           }
 378  
 
 379  
           public void setRaw_unsafe(Persistent g, Object raw)
 380  
               throws AccessPoemException {
 381  0
             ((Product)g).setType2_unsafe((Integer)raw);
 382  0
           }
 383  
 
 384  
           public Object getRaw(Persistent g)
 385  
               throws AccessPoemException {
 386  0
             return ((Product)g).getType2Troid();
 387  
           }
 388  
 
 389  0
           public void setRaw(Persistent g, Object raw)
 390  
               throws AccessPoemException {
 391  0
             ((Product)g).setType2Troid((Integer)raw);
 392  0
           }
 393  
         });
 394  
 
 395  0
     defineColumn(col_sex =
 396  
         new Column(this, "sex",
 397  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 398  
                                              getSexTable(), true),
 399  
                    DefinitionSource.dsd) { 
 400  
           public Object getCooked(Persistent g)
 401  
               throws AccessPoemException, PoemException {
 402  0
             return ((Product)g).getSex();
 403  
           }
 404  
 
 405  
           public void setCooked(Persistent g, Object cooked)
 406  
               throws AccessPoemException, ValidationPoemException {
 407  0
             ((Product)g).setSex((Sex)cooked);
 408  0
           }
 409  
 
 410  
           public Field asField(Persistent g) {
 411  0
             return ((Product)g).getSexField();
 412  
           }
 413  
 
 414  
           protected DisplayLevel defaultDisplayLevel() {
 415  0
             return DisplayLevel.record;
 416  
           }
 417  
 
 418  
           protected Searchability defaultSearchability() {
 419  0
             return Searchability.yes;
 420  
           }
 421  
 
 422  
           protected String defaultDisplayName() {
 423  0
             return "Gender";
 424  
           }
 425  
 
 426  
           protected int defaultDisplayOrder() {
 427  0
             return 5;
 428  
           }
 429  
 
 430  
           protected String defaultDescription() {
 431  0
             return "Is this toy is targeted at boys or girls?";
 432  
           }
 433  
 
 434  
           public Object getRaw_unsafe(Persistent g)
 435  
               throws AccessPoemException {
 436  0
             return ((Product)g).getSex_unsafe();
 437  
           }
 438  
 
 439  
           public void setRaw_unsafe(Persistent g, Object raw)
 440  
               throws AccessPoemException {
 441  0
             ((Product)g).setSex_unsafe((Integer)raw);
 442  0
           }
 443  
 
 444  
           public Object getRaw(Persistent g)
 445  
               throws AccessPoemException {
 446  0
             return ((Product)g).getSexTroid();
 447  
           }
 448  
 
 449  0
           public void setRaw(Persistent g, Object raw)
 450  
               throws AccessPoemException {
 451  0
             ((Product)g).setSexTroid((Integer)raw);
 452  0
           }
 453  
         });
 454  
 
 455  0
     defineColumn(col_description =
 456  
         new Column(this, "description",
 457  
                    new StringPoemType(true, -1),
 458  
                    DefinitionSource.dsd) { 
 459  
           public Object getCooked(Persistent g)
 460  
               throws AccessPoemException, PoemException {
 461  0
             return ((Product)g).getDescription();
 462  
           }
 463  
 
 464  
           public void setCooked(Persistent g, Object cooked)
 465  
               throws AccessPoemException, ValidationPoemException {
 466  0
             ((Product)g).setDescription((String)cooked);
 467  0
           }
 468  
 
 469  
           public Field asField(Persistent g) {
 470  0
             return ((Product)g).getDescriptionField();
 471  
           }
 472  
 
 473  
           protected DisplayLevel defaultDisplayLevel() {
 474  0
             return DisplayLevel.record;
 475  
           }
 476  
 
 477  
           protected Searchability defaultSearchability() {
 478  0
             return Searchability.yes;
 479  
           }
 480  
 
 481  
           protected String defaultDisplayName() {
 482  0
             return "Description";
 483  
           }
 484  
 
 485  
           protected int defaultDisplayOrder() {
 486  0
             return 6;
 487  
           }
 488  
 
 489  
           protected int defaultWidth() {
 490  0
             return 40;
 491  
           }
 492  
 
 493  
           protected int defaultHeight() {
 494  0
             return 5;
 495  
           }
 496  
 
 497  
           public Object getRaw_unsafe(Persistent g)
 498  
               throws AccessPoemException {
 499  0
             return ((Product)g).getDescription_unsafe();
 500  
           }
 501  
 
 502  
           public void setRaw_unsafe(Persistent g, Object raw)
 503  
               throws AccessPoemException {
 504  0
             ((Product)g).setDescription_unsafe((String)raw);
 505  0
           }
 506  
 
 507  
           public Object getRaw(Persistent g)
 508  
               throws AccessPoemException {
 509  0
             return ((Product)g).getDescription();
 510  
           }
 511  
 
 512  0
           public void setRaw(Persistent g, Object raw)
 513  
               throws AccessPoemException {
 514  0
             ((Product)g).setDescription((String)raw);
 515  0
           }
 516  
         });
 517  
 
 518  0
     defineColumn(col_supplier =
 519  
         new Column(this, "supplier",
 520  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 521  
                                              getSupplierTable(), false),
 522  
                    DefinitionSource.dsd) { 
 523  
           public Object getCooked(Persistent g)
 524  
               throws AccessPoemException, PoemException {
 525  0
             return ((Product)g).getSupplier();
 526  
           }
 527  
 
 528  
           public void setCooked(Persistent g, Object cooked)
 529  
               throws AccessPoemException, ValidationPoemException {
 530  0
             ((Product)g).setSupplier((Supplier)cooked);
 531  0
           }
 532  
 
 533  
           public Field asField(Persistent g) {
 534  0
             return ((Product)g).getSupplierField();
 535  
           }
 536  
 
 537  
           protected DisplayLevel defaultDisplayLevel() {
 538  0
             return DisplayLevel.summary;
 539  
           }
 540  
 
 541  
           protected Searchability defaultSearchability() {
 542  0
             return Searchability.yes;
 543  
           }
 544  
 
 545  
           protected String defaultDisplayName() {
 546  0
             return "Supplier";
 547  
           }
 548  
 
 549  
           protected int defaultDisplayOrder() {
 550  0
             return 7;
 551  
           }
 552  
 
 553  
           public Object getRaw_unsafe(Persistent g)
 554  
               throws AccessPoemException {
 555  0
             return ((Product)g).getSupplier_unsafe();
 556  
           }
 557  
 
 558  
           public void setRaw_unsafe(Persistent g, Object raw)
 559  
               throws AccessPoemException {
 560  0
             ((Product)g).setSupplier_unsafe((Integer)raw);
 561  0
           }
 562  
 
 563  
           public Object getRaw(Persistent g)
 564  
               throws AccessPoemException {
 565  0
             return ((Product)g).getSupplierTroid();
 566  
           }
 567  
 
 568  0
           public void setRaw(Persistent g, Object raw)
 569  
               throws AccessPoemException {
 570  0
             ((Product)g).setSupplierTroid((Integer)raw);
 571  0
           }
 572  
         });
 573  
 
 574  0
     defineColumn(col_manufacturer =
 575  
         new Column(this, "manufacturer",
 576  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 577  
                                              getManufacturerTable(), false),
 578  
                    DefinitionSource.dsd) { 
 579  
           public Object getCooked(Persistent g)
 580  
               throws AccessPoemException, PoemException {
 581  0
             return ((Product)g).getManufacturer();
 582  
           }
 583  
 
 584  
           public void setCooked(Persistent g, Object cooked)
 585  
               throws AccessPoemException, ValidationPoemException {
 586  0
             ((Product)g).setManufacturer((Manufacturer)cooked);
 587  0
           }
 588  
 
 589  
           public Field asField(Persistent g) {
 590  0
             return ((Product)g).getManufacturerField();
 591  
           }
 592  
 
 593  
           protected DisplayLevel defaultDisplayLevel() {
 594  0
             return DisplayLevel.record;
 595  
           }
 596  
 
 597  
           protected Searchability defaultSearchability() {
 598  0
             return Searchability.yes;
 599  
           }
 600  
 
 601  
           protected String defaultDisplayName() {
 602  0
             return "Manufacturer";
 603  
           }
 604  
 
 605  
           protected int defaultDisplayOrder() {
 606  0
             return 8;
 607  
           }
 608  
 
 609  
           public Object getRaw_unsafe(Persistent g)
 610  
               throws AccessPoemException {
 611  0
             return ((Product)g).getManufacturer_unsafe();
 612  
           }
 613  
 
 614  
           public void setRaw_unsafe(Persistent g, Object raw)
 615  
               throws AccessPoemException {
 616  0
             ((Product)g).setManufacturer_unsafe((Integer)raw);
 617  0
           }
 618  
 
 619  
           public Object getRaw(Persistent g)
 620  
               throws AccessPoemException {
 621  0
             return ((Product)g).getManufacturerTroid();
 622  
           }
 623  
 
 624  0
           public void setRaw(Persistent g, Object raw)
 625  
               throws AccessPoemException {
 626  0
             ((Product)g).setManufacturerTroid((Integer)raw);
 627  0
           }
 628  
         });
 629  
 
 630  0
     defineColumn(col_suppliercode =
 631  
         new Column(this, "suppliercode",
 632  
                    new StringPoemType(true, -1),
 633  
                    DefinitionSource.dsd) { 
 634  
           public Object getCooked(Persistent g)
 635  
               throws AccessPoemException, PoemException {
 636  0
             return ((Product)g).getSuppliercode();
 637  
           }
 638  
 
 639  
           public void setCooked(Persistent g, Object cooked)
 640  
               throws AccessPoemException, ValidationPoemException {
 641  0
             ((Product)g).setSuppliercode((String)cooked);
 642  0
           }
 643  
 
 644  
           public Field asField(Persistent g) {
 645  0
             return ((Product)g).getSuppliercodeField();
 646  
           }
 647  
 
 648  
           protected DisplayLevel defaultDisplayLevel() {
 649  0
             return DisplayLevel.record;
 650  
           }
 651  
 
 652  
           protected Searchability defaultSearchability() {
 653  0
             return Searchability.yes;
 654  
           }
 655  
 
 656  
           protected String defaultDisplayName() {
 657  0
             return "Supplier's Product Code";
 658  
           }
 659  
 
 660  
           protected int defaultDisplayOrder() {
 661  0
             return 9;
 662  
           }
 663  
 
 664  
           protected int defaultWidth() {
 665  0
             return 20;
 666  
           }
 667  
 
 668  
           public Object getRaw_unsafe(Persistent g)
 669  
               throws AccessPoemException {
 670  0
             return ((Product)g).getSuppliercode_unsafe();
 671  
           }
 672  
 
 673  
           public void setRaw_unsafe(Persistent g, Object raw)
 674  
               throws AccessPoemException {
 675  0
             ((Product)g).setSuppliercode_unsafe((String)raw);
 676  0
           }
 677  
 
 678  
           public Object getRaw(Persistent g)
 679  
               throws AccessPoemException {
 680  0
             return ((Product)g).getSuppliercode();
 681  
           }
 682  
 
 683  0
           public void setRaw(Persistent g, Object raw)
 684  
               throws AccessPoemException {
 685  0
             ((Product)g).setSuppliercode((String)raw);
 686  0
           }
 687  
         });
 688  
 
 689  0
     defineColumn(col_costprice =
 690  
         new Column(this, "costprice",
 691  
                    new DoublePoemType(false),
 692  
                    DefinitionSource.dsd) { 
 693  
           public Object getCooked(Persistent g)
 694  
               throws AccessPoemException, PoemException {
 695  0
             return ((Product)g).getCostprice();
 696  
           }
 697  
 
 698  
           public void setCooked(Persistent g, Object cooked)
 699  
               throws AccessPoemException, ValidationPoemException {
 700  0
             ((Product)g).setCostprice((Double)cooked);
 701  0
           }
 702  
 
 703  
           public Field asField(Persistent g) {
 704  0
             return ((Product)g).getCostpriceField();
 705  
           }
 706  
 
 707  
           protected DisplayLevel defaultDisplayLevel() {
 708  0
             return DisplayLevel.record;
 709  
           }
 710  
 
 711  
           protected Searchability defaultSearchability() {
 712  0
             return Searchability.no;
 713  
           }
 714  
 
 715  
           protected String defaultDisplayName() {
 716  0
             return "Cost Price";
 717  
           }
 718  
 
 719  
           protected int defaultDisplayOrder() {
 720  0
             return 10;
 721  
           }
 722  
 
 723  
           public Object getRaw_unsafe(Persistent g)
 724  
               throws AccessPoemException {
 725  0
             return ((Product)g).getCostprice_unsafe();
 726  
           }
 727  
 
 728  
           public void setRaw_unsafe(Persistent g, Object raw)
 729  
               throws AccessPoemException {
 730  0
             ((Product)g).setCostprice_unsafe((Double)raw);
 731  0
           }
 732  
 
 733  
           public Object getRaw(Persistent g)
 734  
               throws AccessPoemException {
 735  0
             return ((Product)g).getCostprice();
 736  
           }
 737  
 
 738  0
           public void setRaw(Persistent g, Object raw)
 739  
               throws AccessPoemException {
 740  0
             ((Product)g).setCostprice((Double)raw);
 741  0
           }
 742  
         });
 743  
 
 744  0
     defineColumn(col_retailpriceincvat =
 745  
         new Column(this, "retailpriceincvat",
 746  
                    new DoublePoemType(false),
 747  
                    DefinitionSource.dsd) { 
 748  
           public Object getCooked(Persistent g)
 749  
               throws AccessPoemException, PoemException {
 750  0
             return ((Product)g).getRetailpriceincvat();
 751  
           }
 752  
 
 753  
           public void setCooked(Persistent g, Object cooked)
 754  
               throws AccessPoemException, ValidationPoemException {
 755  0
             ((Product)g).setRetailpriceincvat((Double)cooked);
 756  0
           }
 757  
 
 758  
           public Field asField(Persistent g) {
 759  0
             return ((Product)g).getRetailpriceincvatField();
 760  
           }
 761  
 
 762  
           protected DisplayLevel defaultDisplayLevel() {
 763  0
             return DisplayLevel.record;
 764  
           }
 765  
 
 766  
           protected Searchability defaultSearchability() {
 767  0
             return Searchability.no;
 768  
           }
 769  
 
 770  
           protected String defaultDisplayName() {
 771  0
             return "Retail Price inc VAT (if VAT is payable)";
 772  
           }
 773  
 
 774  
           protected int defaultDisplayOrder() {
 775  0
             return 11;
 776  
           }
 777  
 
 778  
           public Object getRaw_unsafe(Persistent g)
 779  
               throws AccessPoemException {
 780  0
             return ((Product)g).getRetailpriceincvat_unsafe();
 781  
           }
 782  
 
 783  
           public void setRaw_unsafe(Persistent g, Object raw)
 784  
               throws AccessPoemException {
 785  0
             ((Product)g).setRetailpriceincvat_unsafe((Double)raw);
 786  0
           }
 787  
 
 788  
           public Object getRaw(Persistent g)
 789  
               throws AccessPoemException {
 790  0
             return ((Product)g).getRetailpriceincvat();
 791  
           }
 792  
 
 793  0
           public void setRaw(Persistent g, Object raw)
 794  
               throws AccessPoemException {
 795  0
             ((Product)g).setRetailpriceincvat((Double)raw);
 796  0
           }
 797  
         });
 798  
 
 799  0
     defineColumn(col_vatexempt =
 800  
         new Column(this, "vatexempt",
 801  
                    new BooleanPoemType(false),
 802  
                    DefinitionSource.dsd) { 
 803  
           public Object getCooked(Persistent g)
 804  
               throws AccessPoemException, PoemException {
 805  0
             return ((Product)g).getVatexempt();
 806  
           }
 807  
 
 808  
           public void setCooked(Persistent g, Object cooked)
 809  
               throws AccessPoemException, ValidationPoemException {
 810  0
             ((Product)g).setVatexempt((Boolean)cooked);
 811  0
           }
 812  
 
 813  
           public Field asField(Persistent g) {
 814  0
             return ((Product)g).getVatexemptField();
 815  
           }
 816  
 
 817  
           protected DisplayLevel defaultDisplayLevel() {
 818  0
             return DisplayLevel.record;
 819  
           }
 820  
 
 821  
           protected Searchability defaultSearchability() {
 822  0
             return Searchability.yes;
 823  
           }
 824  
 
 825  
           protected String defaultDisplayName() {
 826  0
             return "Exempt from VAT?";
 827  
           }
 828  
 
 829  
           protected int defaultDisplayOrder() {
 830  0
             return 12;
 831  
           }
 832  
 
 833  
           public Object getRaw_unsafe(Persistent g)
 834  
               throws AccessPoemException {
 835  0
             return ((Product)g).getVatexempt_unsafe();
 836  
           }
 837  
 
 838  
           public void setRaw_unsafe(Persistent g, Object raw)
 839  
               throws AccessPoemException {
 840  0
             ((Product)g).setVatexempt_unsafe((Boolean)raw);
 841  0
           }
 842  
 
 843  
           public Object getRaw(Persistent g)
 844  
               throws AccessPoemException {
 845  0
             return ((Product)g).getVatexempt();
 846  
           }
 847  
 
 848  0
           public void setRaw(Persistent g, Object raw)
 849  
               throws AccessPoemException {
 850  0
             ((Product)g).setVatexempt((Boolean)raw);
 851  0
           }
 852  
         });
 853  
 
 854  0
     defineColumn(col_saleprice =
 855  
         new Column(this, "saleprice",
 856  
                    new DoublePoemType(true),
 857  
                    DefinitionSource.dsd) { 
 858  
           public Object getCooked(Persistent g)
 859  
               throws AccessPoemException, PoemException {
 860  0
             return ((Product)g).getSaleprice();
 861  
           }
 862  
 
 863  
           public void setCooked(Persistent g, Object cooked)
 864  
               throws AccessPoemException, ValidationPoemException {
 865  0
             ((Product)g).setSaleprice((Double)cooked);
 866  0
           }
 867  
 
 868  
           public Field asField(Persistent g) {
 869  0
             return ((Product)g).getSalepriceField();
 870  
           }
 871  
 
 872  
           protected DisplayLevel defaultDisplayLevel() {
 873  0
             return DisplayLevel.record;
 874  
           }
 875  
 
 876  
           protected Searchability defaultSearchability() {
 877  0
             return Searchability.no;
 878  
           }
 879  
 
 880  
           protected String defaultDisplayName() {
 881  0
             return "Pre Discount Price inc VAT";
 882  
           }
 883  
 
 884  
           protected int defaultDisplayOrder() {
 885  0
             return 13;
 886  
           }
 887  
 
 888  
           protected String defaultDescription() {
 889  0
             return "To put items in the sale, enter the original price here, and put the Sale price into the Retail Price inc VAT field";
 890  
           }
 891  
 
 892  
           public Object getRaw_unsafe(Persistent g)
 893  
               throws AccessPoemException {
 894  0
             return ((Product)g).getSaleprice_unsafe();
 895  
           }
 896  
 
 897  
           public void setRaw_unsafe(Persistent g, Object raw)
 898  
               throws AccessPoemException {
 899  0
             ((Product)g).setSaleprice_unsafe((Double)raw);
 900  0
           }
 901  
 
 902  
           public Object getRaw(Persistent g)
 903  
               throws AccessPoemException {
 904  0
             return ((Product)g).getSaleprice();
 905  
           }
 906  
 
 907  0
           public void setRaw(Persistent g, Object raw)
 908  
               throws AccessPoemException {
 909  0
             ((Product)g).setSaleprice((Double)raw);
 910  0
           }
 911  
         });
 912  
 
 913  0
     defineColumn(col_retailprice =
 914  
         new Column(this, "retailprice",
 915  
                    new DoublePoemType(false),
 916  
                    DefinitionSource.dsd) { 
 917  
           public Object getCooked(Persistent g)
 918  
               throws AccessPoemException, PoemException {
 919  0
             return ((Product)g).getRetailprice();
 920  
           }
 921  
 
 922  
           public void setCooked(Persistent g, Object cooked)
 923  
               throws AccessPoemException, ValidationPoemException {
 924  0
             ((Product)g).setRetailprice((Double)cooked);
 925  0
           }
 926  
 
 927  
           public Field asField(Persistent g) {
 928  0
             return ((Product)g).getRetailpriceField();
 929  
           }
 930  
 
 931  
           protected boolean defaultUserEditable() {
 932  0
             return false;
 933  
           }
 934  
 
 935  
           protected boolean defaultUserCreateable() {
 936  0
             return false;
 937  
           }
 938  
 
 939  
           protected DisplayLevel defaultDisplayLevel() {
 940  0
             return DisplayLevel.record;
 941  
           }
 942  
 
 943  
           protected Searchability defaultSearchability() {
 944  0
             return Searchability.no;
 945  
           }
 946  
 
 947  
           protected String defaultDisplayName() {
 948  0
             return "Retail Price ex VAT";
 949  
           }
 950  
 
 951  
           protected int defaultDisplayOrder() {
 952  0
             return 14;
 953  
           }
 954  
 
 955  
           public Object getRaw_unsafe(Persistent g)
 956  
               throws AccessPoemException {
 957  0
             return ((Product)g).getRetailprice_unsafe();
 958  
           }
 959  
 
 960  
           public void setRaw_unsafe(Persistent g, Object raw)
 961  
               throws AccessPoemException {
 962  0
             ((Product)g).setRetailprice_unsafe((Double)raw);
 963  0
           }
 964  
 
 965  
           public Object getRaw(Persistent g)
 966  
               throws AccessPoemException {
 967  0
             return ((Product)g).getRetailprice();
 968  
           }
 969  
 
 970  0
           public void setRaw(Persistent g, Object raw)
 971  
               throws AccessPoemException {
 972  0
             ((Product)g).setRetailprice((Double)raw);
 973  0
           }
 974  
         });
 975  
 
 976  0
     defineColumn(col_margin =
 977  
         new Column(this, "margin",
 978  
                    new DoublePoemType(true),
 979  
                    DefinitionSource.dsd) { 
 980  
           public Object getCooked(Persistent g)
 981  
               throws AccessPoemException, PoemException {
 982  0
             return ((Product)g).getMargin();
 983  
           }
 984  
 
 985  
           public void setCooked(Persistent g, Object cooked)
 986  
               throws AccessPoemException, ValidationPoemException {
 987  0
             ((Product)g).setMargin((Double)cooked);
 988  0
           }
 989  
 
 990  
           public Field asField(Persistent g) {
 991  0
             return ((Product)g).getMarginField();
 992  
           }
 993  
 
 994  
           protected boolean defaultUserEditable() {
 995  0
             return false;
 996  
           }
 997  
 
 998  
           protected boolean defaultUserCreateable() {
 999  0
             return false;
 1000  
           }
 1001  
 
 1002  
           protected DisplayLevel defaultDisplayLevel() {
 1003  0
             return DisplayLevel.record;
 1004  
           }
 1005  
 
 1006  
           protected Searchability defaultSearchability() {
 1007  0
             return Searchability.no;
 1008  
           }
 1009  
 
 1010  
           protected String defaultDisplayName() {
 1011  0
             return "Margin / Markup";
 1012  
           }
 1013  
 
 1014  
           protected int defaultDisplayOrder() {
 1015  0
             return 15;
 1016  
           }
 1017  
 
 1018  
           public Object getRaw_unsafe(Persistent g)
 1019  
               throws AccessPoemException {
 1020  0
             return ((Product)g).getMargin_unsafe();
 1021  
           }
 1022  
 
 1023  
           public void setRaw_unsafe(Persistent g, Object raw)
 1024  
               throws AccessPoemException {
 1025  0
             ((Product)g).setMargin_unsafe((Double)raw);
 1026  0
           }
 1027  
 
 1028  
           public Object getRaw(Persistent g)
 1029  
               throws AccessPoemException {
 1030  0
             return ((Product)g).getMargin();
 1031  
           }
 1032  
 
 1033  0
           public void setRaw(Persistent g, Object raw)
 1034  
               throws AccessPoemException {
 1035  0
             ((Product)g).setMargin((Double)raw);
 1036  0
           }
 1037  
         });
 1038  
 
 1039  0
     defineColumn(col_marginpercent =
 1040  
         new Column(this, "marginpercent",
 1041  
                    new DoublePoemType(true),
 1042  
                    DefinitionSource.dsd) { 
 1043  
           public Object getCooked(Persistent g)
 1044  
               throws AccessPoemException, PoemException {
 1045  0
             return ((Product)g).getMarginpercent();
 1046  
           }
 1047  
 
 1048  
           public void setCooked(Persistent g, Object cooked)
 1049  
               throws AccessPoemException, ValidationPoemException {
 1050  0
             ((Product)g).setMarginpercent((Double)cooked);
 1051  0
           }
 1052  
 
 1053  
           public Field asField(Persistent g) {
 1054  0
             return ((Product)g).getMarginpercentField();
 1055  
           }
 1056  
 
 1057  
           protected boolean defaultUserEditable() {
 1058  0
             return false;
 1059  
           }
 1060  
 
 1061  
           protected boolean defaultUserCreateable() {
 1062  0
             return false;
 1063  
           }
 1064  
 
 1065  
           protected DisplayLevel defaultDisplayLevel() {
 1066  0
             return DisplayLevel.record;
 1067  
           }
 1068  
 
 1069  
           protected Searchability defaultSearchability() {
 1070  0
             return Searchability.no;
 1071  
           }
 1072  
 
 1073  
           protected String defaultDisplayName() {
 1074  0
             return "Margin Percent";
 1075  
           }
 1076  
 
 1077  
           protected int defaultDisplayOrder() {
 1078  0
             return 16;
 1079  
           }
 1080  
 
 1081  
           public Object getRaw_unsafe(Persistent g)
 1082  
               throws AccessPoemException {
 1083  0
             return ((Product)g).getMarginpercent_unsafe();
 1084  
           }
 1085  
 
 1086  
           public void setRaw_unsafe(Persistent g, Object raw)
 1087  
               throws AccessPoemException {
 1088  0
             ((Product)g).setMarginpercent_unsafe((Double)raw);
 1089  0
           }
 1090  
 
 1091  
           public Object getRaw(Persistent g)
 1092  
               throws AccessPoemException {
 1093  0
             return ((Product)g).getMarginpercent();
 1094  
           }
 1095  
 
 1096  0
           public void setRaw(Persistent g, Object raw)
 1097  
               throws AccessPoemException {
 1098  0
             ((Product)g).setMarginpercent((Double)raw);
 1099  0
           }
 1100  
         });
 1101  
 
 1102  0
     defineColumn(col_markuppercent =
 1103  
         new Column(this, "markuppercent",
 1104  
                    new DoublePoemType(true),
 1105  
                    DefinitionSource.dsd) { 
 1106  
           public Object getCooked(Persistent g)
 1107  
               throws AccessPoemException, PoemException {
 1108  0
             return ((Product)g).getMarkuppercent();
 1109  
           }
 1110  
 
 1111  
           public void setCooked(Persistent g, Object cooked)
 1112  
               throws AccessPoemException, ValidationPoemException {
 1113  0
             ((Product)g).setMarkuppercent((Double)cooked);
 1114  0
           }
 1115  
 
 1116  
           public Field asField(Persistent g) {
 1117  0
             return ((Product)g).getMarkuppercentField();
 1118  
           }
 1119  
 
 1120  
           protected boolean defaultUserEditable() {
 1121  0
             return false;
 1122  
           }
 1123  
 
 1124  
           protected boolean defaultUserCreateable() {
 1125  0
             return false;
 1126  
           }
 1127  
 
 1128  
           protected DisplayLevel defaultDisplayLevel() {
 1129  0
             return DisplayLevel.record;
 1130  
           }
 1131  
 
 1132  
           protected Searchability defaultSearchability() {
 1133  0
             return Searchability.no;
 1134  
           }
 1135  
 
 1136  
           protected String defaultDisplayName() {
 1137  0
             return "Markup Percent";
 1138  
           }
 1139  
 
 1140  
           protected int defaultDisplayOrder() {
 1141  0
             return 17;
 1142  
           }
 1143  
 
 1144  
           public Object getRaw_unsafe(Persistent g)
 1145  
               throws AccessPoemException {
 1146  0
             return ((Product)g).getMarkuppercent_unsafe();
 1147  
           }
 1148  
 
 1149  
           public void setRaw_unsafe(Persistent g, Object raw)
 1150  
               throws AccessPoemException {
 1151  0
             ((Product)g).setMarkuppercent_unsafe((Double)raw);
 1152  0
           }
 1153  
 
 1154  
           public Object getRaw(Persistent g)
 1155  
               throws AccessPoemException {
 1156  0
             return ((Product)g).getMarkuppercent();
 1157  
           }
 1158  
 
 1159  0
           public void setRaw(Persistent g, Object raw)
 1160  
               throws AccessPoemException {
 1161  0
             ((Product)g).setMarkuppercent((Double)raw);
 1162  0
           }
 1163  
         });
 1164  
 
 1165  0
     defineColumn(col_deliverycost =
 1166  
         new Column(this, "deliverycost",
 1167  
                    new DoublePoemType(true),
 1168  
                    DefinitionSource.dsd) { 
 1169  
           public Object getCooked(Persistent g)
 1170  
               throws AccessPoemException, PoemException {
 1171  0
             return ((Product)g).getDeliverycost();
 1172  
           }
 1173  
 
 1174  
           public void setCooked(Persistent g, Object cooked)
 1175  
               throws AccessPoemException, ValidationPoemException {
 1176  0
             ((Product)g).setDeliverycost((Double)cooked);
 1177  0
           }
 1178  
 
 1179  
           public Field asField(Persistent g) {
 1180  0
             return ((Product)g).getDeliverycostField();
 1181  
           }
 1182  
 
 1183  
           protected DisplayLevel defaultDisplayLevel() {
 1184  0
             return DisplayLevel.record;
 1185  
           }
 1186  
 
 1187  
           protected Searchability defaultSearchability() {
 1188  0
             return Searchability.no;
 1189  
           }
 1190  
 
 1191  
           protected Integer defaultDisplayOrderPriority() {
 1192  0
             return new Integer(99);
 1193  
           }
 1194  
 
 1195  
           protected String defaultDisplayName() {
 1196  0
             return "Delivery Cost";
 1197  
           }
 1198  
 
 1199  
           protected int defaultDisplayOrder() {
 1200  0
             return 18;
 1201  
           }
 1202  
 
 1203  
           public Object getRaw_unsafe(Persistent g)
 1204  
               throws AccessPoemException {
 1205  0
             return ((Product)g).getDeliverycost_unsafe();
 1206  
           }
 1207  
 
 1208  
           public void setRaw_unsafe(Persistent g, Object raw)
 1209  
               throws AccessPoemException {
 1210  0
             ((Product)g).setDeliverycost_unsafe((Double)raw);
 1211  0
           }
 1212  
 
 1213  
           public Object getRaw(Persistent g)
 1214  
               throws AccessPoemException {
 1215  0
             return ((Product)g).getDeliverycost();
 1216  
           }
 1217  
 
 1218  0
           public void setRaw(Persistent g, Object raw)
 1219  
               throws AccessPoemException {
 1220  0
             ((Product)g).setDeliverycost((Double)raw);
 1221  0
           }
 1222  
         });
 1223  
 
 1224  0
     defineColumn(col_minage =
 1225  
         new Column(this, "minage",
 1226  
                    new IntegerPoemType(true),
 1227  
                    DefinitionSource.dsd) { 
 1228  
           public Object getCooked(Persistent g)
 1229  
               throws AccessPoemException, PoemException {
 1230  0
             return ((Product)g).getMinage();
 1231  
           }
 1232  
 
 1233  
           public void setCooked(Persistent g, Object cooked)
 1234  
               throws AccessPoemException, ValidationPoemException {
 1235  0
             ((Product)g).setMinage((Integer)cooked);
 1236  0
           }
 1237  
 
 1238  
           public Field asField(Persistent g) {
 1239  0
             return ((Product)g).getMinageField();
 1240  
           }
 1241  
 
 1242  
           protected DisplayLevel defaultDisplayLevel() {
 1243  0
             return DisplayLevel.record;
 1244  
           }
 1245  
 
 1246  
           protected Searchability defaultSearchability() {
 1247  0
             return Searchability.no;
 1248  
           }
 1249  
 
 1250  
           protected String defaultDisplayName() {
 1251  0
             return "Minimum Age";
 1252  
           }
 1253  
 
 1254  
           protected int defaultDisplayOrder() {
 1255  0
             return 19;
 1256  
           }
 1257  
 
 1258  
           public Object getRaw_unsafe(Persistent g)
 1259  
               throws AccessPoemException {
 1260  0
             return ((Product)g).getMinage_unsafe();
 1261  
           }
 1262  
 
 1263  
           public void setRaw_unsafe(Persistent g, Object raw)
 1264  
               throws AccessPoemException {
 1265  0
             ((Product)g).setMinage_unsafe((Integer)raw);
 1266  0
           }
 1267  
 
 1268  
           public Object getRaw(Persistent g)
 1269  
               throws AccessPoemException {
 1270  0
             return ((Product)g).getMinage();
 1271  
           }
 1272  
 
 1273  0
           public void setRaw(Persistent g, Object raw)
 1274  
               throws AccessPoemException {
 1275  0
             ((Product)g).setMinage((Integer)raw);
 1276  0
           }
 1277  
         });
 1278  
 
 1279  0
     defineColumn(col_maxage =
 1280  
         new Column(this, "maxage",
 1281  
                    new IntegerPoemType(true),
 1282  
                    DefinitionSource.dsd) { 
 1283  
           public Object getCooked(Persistent g)
 1284  
               throws AccessPoemException, PoemException {
 1285  0
             return ((Product)g).getMaxage();
 1286  
           }
 1287  
 
 1288  
           public void setCooked(Persistent g, Object cooked)
 1289  
               throws AccessPoemException, ValidationPoemException {
 1290  0
             ((Product)g).setMaxage((Integer)cooked);
 1291  0
           }
 1292  
 
 1293  
           public Field asField(Persistent g) {
 1294  0
             return ((Product)g).getMaxageField();
 1295  
           }
 1296  
 
 1297  
           protected DisplayLevel defaultDisplayLevel() {
 1298  0
             return DisplayLevel.record;
 1299  
           }
 1300  
 
 1301  
           protected Searchability defaultSearchability() {
 1302  0
             return Searchability.no;
 1303  
           }
 1304  
 
 1305  
           protected String defaultDisplayName() {
 1306  0
             return "Maximum Age";
 1307  
           }
 1308  
 
 1309  
           protected int defaultDisplayOrder() {
 1310  0
             return 20;
 1311  
           }
 1312  
 
 1313  
           public Object getRaw_unsafe(Persistent g)
 1314  
               throws AccessPoemException {
 1315  0
             return ((Product)g).getMaxage_unsafe();
 1316  
           }
 1317  
 
 1318  
           public void setRaw_unsafe(Persistent g, Object raw)
 1319  
               throws AccessPoemException {
 1320  0
             ((Product)g).setMaxage_unsafe((Integer)raw);
 1321  0
           }
 1322  
 
 1323  
           public Object getRaw(Persistent g)
 1324  
               throws AccessPoemException {
 1325  0
             return ((Product)g).getMaxage();
 1326  
           }
 1327  
 
 1328  0
           public void setRaw(Persistent g, Object raw)
 1329  
               throws AccessPoemException {
 1330  0
             ((Product)g).setMaxage((Integer)raw);
 1331  0
           }
 1332  
         });
 1333  
 
 1334  0
     defineColumn(col_pieces =
 1335  
         new Column(this, "pieces",
 1336  
                    new IntegerPoemType(true),
 1337  
                    DefinitionSource.dsd) { 
 1338  
           public Object getCooked(Persistent g)
 1339  
               throws AccessPoemException, PoemException {
 1340  0
             return ((Product)g).getPieces();
 1341  
           }
 1342  
 
 1343  
           public void setCooked(Persistent g, Object cooked)
 1344  
               throws AccessPoemException, ValidationPoemException {
 1345  0
             ((Product)g).setPieces((Integer)cooked);
 1346  0
           }
 1347  
 
 1348  
           public Field asField(Persistent g) {
 1349  0
             return ((Product)g).getPiecesField();
 1350  
           }
 1351  
 
 1352  
           protected DisplayLevel defaultDisplayLevel() {
 1353  0
             return DisplayLevel.record;
 1354  
           }
 1355  
 
 1356  
           protected Searchability defaultSearchability() {
 1357  0
             return Searchability.no;
 1358  
           }
 1359  
 
 1360  
           protected String defaultDisplayName() {
 1361  0
             return "Number of Pieces";
 1362  
           }
 1363  
 
 1364  
           protected int defaultDisplayOrder() {
 1365  0
             return 21;
 1366  
           }
 1367  
 
 1368  
           public Object getRaw_unsafe(Persistent g)
 1369  
               throws AccessPoemException {
 1370  0
             return ((Product)g).getPieces_unsafe();
 1371  
           }
 1372  
 
 1373  
           public void setRaw_unsafe(Persistent g, Object raw)
 1374  
               throws AccessPoemException {
 1375  0
             ((Product)g).setPieces_unsafe((Integer)raw);
 1376  0
           }
 1377  
 
 1378  
           public Object getRaw(Persistent g)
 1379  
               throws AccessPoemException {
 1380  0
             return ((Product)g).getPieces();
 1381  
           }
 1382  
 
 1383  0
           public void setRaw(Persistent g, Object raw)
 1384  
               throws AccessPoemException {
 1385  0
             ((Product)g).setPieces((Integer)raw);
 1386  0
           }
 1387  
         });
 1388  
 
 1389  0
     defineColumn(col_stocklevel =
 1390  
         new Column(this, "stocklevel",
 1391  
                    new IntegerPoemType(true),
 1392  
                    DefinitionSource.dsd) { 
 1393  
           public Object getCooked(Persistent g)
 1394  
               throws AccessPoemException, PoemException {
 1395  0
             return ((Product)g).getStocklevel();
 1396  
           }
 1397  
 
 1398  
           public void setCooked(Persistent g, Object cooked)
 1399  
               throws AccessPoemException, ValidationPoemException {
 1400  0
             ((Product)g).setStocklevel((Integer)cooked);
 1401  0
           }
 1402  
 
 1403  
           public Field asField(Persistent g) {
 1404  0
             return ((Product)g).getStocklevelField();
 1405  
           }
 1406  
 
 1407  
           protected boolean defaultUserEditable() {
 1408  0
             return false;
 1409  
           }
 1410  
 
 1411  
           protected boolean defaultUserCreateable() {
 1412  0
             return false;
 1413  
           }
 1414  
 
 1415  
           protected DisplayLevel defaultDisplayLevel() {
 1416  0
             return DisplayLevel.record;
 1417  
           }
 1418  
 
 1419  
           protected Searchability defaultSearchability() {
 1420  0
             return Searchability.no;
 1421  
           }
 1422  
 
 1423  
           protected String defaultDisplayName() {
 1424  0
             return "Stock Level";
 1425  
           }
 1426  
 
 1427  
           protected int defaultDisplayOrder() {
 1428  0
             return 22;
 1429  
           }
 1430  
 
 1431  
           public Object getRaw_unsafe(Persistent g)
 1432  
               throws AccessPoemException {
 1433  0
             return ((Product)g).getStocklevel_unsafe();
 1434  
           }
 1435  
 
 1436  
           public void setRaw_unsafe(Persistent g, Object raw)
 1437  
               throws AccessPoemException {
 1438  0
             ((Product)g).setStocklevel_unsafe((Integer)raw);
 1439  0
           }
 1440  
 
 1441  
           public Object getRaw(Persistent g)
 1442  
               throws AccessPoemException {
 1443  0
             return ((Product)g).getStocklevel();
 1444  
           }
 1445  
 
 1446  0
           public void setRaw(Persistent g, Object raw)
 1447  
               throws AccessPoemException {
 1448  0
             ((Product)g).setStocklevel((Integer)raw);
 1449  0
           }
 1450  
         });
 1451  
 
 1452  0
     defineColumn(col_reorderlevel =
 1453  
         new Column(this, "reorderlevel",
 1454  
                    new IntegerPoemType(false),
 1455  
                    DefinitionSource.dsd) { 
 1456  
           public Object getCooked(Persistent g)
 1457  
               throws AccessPoemException, PoemException {
 1458  0
             return ((Product)g).getReorderlevel();
 1459  
           }
 1460  
 
 1461  
           public void setCooked(Persistent g, Object cooked)
 1462  
               throws AccessPoemException, ValidationPoemException {
 1463  0
             ((Product)g).setReorderlevel((Integer)cooked);
 1464  0
           }
 1465  
 
 1466  
           public Field asField(Persistent g) {
 1467  0
             return ((Product)g).getReorderlevelField();
 1468  
           }
 1469  
 
 1470  
           protected DisplayLevel defaultDisplayLevel() {
 1471  0
             return DisplayLevel.record;
 1472  
           }
 1473  
 
 1474  
           protected Searchability defaultSearchability() {
 1475  0
             return Searchability.no;
 1476  
           }
 1477  
 
 1478  
           protected String defaultDisplayName() {
 1479  0
             return "Reorder Level";
 1480  
           }
 1481  
 
 1482  
           protected int defaultDisplayOrder() {
 1483  0
             return 23;
 1484  
           }
 1485  
 
 1486  
           protected String defaultDescription() {
 1487  0
             return "The level at which stock needs to fall to before JammyJoes normally orders";
 1488  
           }
 1489  
 
 1490  
           public Object getRaw_unsafe(Persistent g)
 1491  
               throws AccessPoemException {
 1492  0
             return ((Product)g).getReorderlevel_unsafe();
 1493  
           }
 1494  
 
 1495  
           public void setRaw_unsafe(Persistent g, Object raw)
 1496  
               throws AccessPoemException {
 1497  0
             ((Product)g).setReorderlevel_unsafe((Integer)raw);
 1498  0
           }
 1499  
 
 1500  
           public Object getRaw(Persistent g)
 1501  
               throws AccessPoemException {
 1502  0
             return ((Product)g).getReorderlevel();
 1503  
           }
 1504  
 
 1505  0
           public void setRaw(Persistent g, Object raw)
 1506  
               throws AccessPoemException {
 1507  0
             ((Product)g).setReorderlevel((Integer)raw);
 1508  0
           }
 1509  
         });
 1510  
 
 1511  0
     defineColumn(col_reorderquantity =
 1512  
         new Column(this, "reorderquantity",
 1513  
                    new IntegerPoemType(false),
 1514  
                    DefinitionSource.dsd) { 
 1515  
           public Object getCooked(Persistent g)
 1516  
               throws AccessPoemException, PoemException {
 1517  0
             return ((Product)g).getReorderquantity();
 1518  
           }
 1519  
 
 1520  
           public void setCooked(Persistent g, Object cooked)
 1521  
               throws AccessPoemException, ValidationPoemException {
 1522  0
             ((Product)g).setReorderquantity((Integer)cooked);
 1523  0
           }
 1524  
 
 1525  
           public Field asField(Persistent g) {
 1526  0
             return ((Product)g).getReorderquantityField();
 1527  
           }
 1528  
 
 1529  
           protected DisplayLevel defaultDisplayLevel() {
 1530  0
             return DisplayLevel.record;
 1531  
           }
 1532  
 
 1533  
           protected Searchability defaultSearchability() {
 1534  0
             return Searchability.no;
 1535  
           }
 1536  
 
 1537  
           protected String defaultDisplayName() {
 1538  0
             return "Reorder Quantity";
 1539  
           }
 1540  
 
 1541  
           protected int defaultDisplayOrder() {
 1542  0
             return 24;
 1543  
           }
 1544  
 
 1545  
           protected String defaultDescription() {
 1546  0
             return "The quantity that JammyJoes normally orders";
 1547  
           }
 1548  
 
 1549  
           public Object getRaw_unsafe(Persistent g)
 1550  
               throws AccessPoemException {
 1551  0
             return ((Product)g).getReorderquantity_unsafe();
 1552  
           }
 1553  
 
 1554  
           public void setRaw_unsafe(Persistent g, Object raw)
 1555  
               throws AccessPoemException {
 1556  0
             ((Product)g).setReorderquantity_unsafe((Integer)raw);
 1557  0
           }
 1558  
 
 1559  
           public Object getRaw(Persistent g)
 1560  
               throws AccessPoemException {
 1561  0
             return ((Product)g).getReorderquantity();
 1562  
           }
 1563  
 
 1564  0
           public void setRaw(Persistent g, Object raw)
 1565  
               throws AccessPoemException {
 1566  0
             ((Product)g).setReorderquantity((Integer)raw);
 1567  0
           }
 1568  
         });
 1569  
 
 1570  0
     defineColumn(col_minimumorder =
 1571  
         new Column(this, "minimumorder",
 1572  
                    new IntegerPoemType(true),
 1573  
                    DefinitionSource.dsd) { 
 1574  
           public Object getCooked(Persistent g)
 1575  
               throws AccessPoemException, PoemException {
 1576  0
             return ((Product)g).getMinimumorder();
 1577  
           }
 1578  
 
 1579  
           public void setCooked(Persistent g, Object cooked)
 1580  
               throws AccessPoemException, ValidationPoemException {
 1581  0
             ((Product)g).setMinimumorder((Integer)cooked);
 1582  0
           }
 1583  
 
 1584  
           public Field asField(Persistent g) {
 1585  0
             return ((Product)g).getMinimumorderField();
 1586  
           }
 1587  
 
 1588  
           protected DisplayLevel defaultDisplayLevel() {
 1589  0
             return DisplayLevel.record;
 1590  
           }
 1591  
 
 1592  
           protected Searchability defaultSearchability() {
 1593  0
             return Searchability.no;
 1594  
           }
 1595  
 
 1596  
           protected String defaultDisplayName() {
 1597  0
             return "Minimum Order Quantity";
 1598  
           }
 1599  
 
 1600  
           protected int defaultDisplayOrder() {
 1601  0
             return 25;
 1602  
           }
 1603  
 
 1604  
           protected String defaultDescription() {
 1605  0
             return "The minimum quantity that can be ordered";
 1606  
           }
 1607  
 
 1608  
           public Object getRaw_unsafe(Persistent g)
 1609  
               throws AccessPoemException {
 1610  0
             return ((Product)g).getMinimumorder_unsafe();
 1611  
           }
 1612  
 
 1613  
           public void setRaw_unsafe(Persistent g, Object raw)
 1614  
               throws AccessPoemException {
 1615  0
             ((Product)g).setMinimumorder_unsafe((Integer)raw);
 1616  0
           }
 1617  
 
 1618  
           public Object getRaw(Persistent g)
 1619  
               throws AccessPoemException {
 1620  0
             return ((Product)g).getMinimumorder();
 1621  
           }
 1622  
 
 1623  0
           public void setRaw(Persistent g, Object raw)
 1624  
               throws AccessPoemException {
 1625  0
             ((Product)g).setMinimumorder((Integer)raw);
 1626  0
           }
 1627  
         });
 1628  
 
 1629  0
     defineColumn(col_leadtime =
 1630  
         new Column(this, "leadtime",
 1631  
                    new IntegerPoemType(true),
 1632  
                    DefinitionSource.dsd) { 
 1633  
           public Object getCooked(Persistent g)
 1634  
               throws AccessPoemException, PoemException {
 1635  0
             return ((Product)g).getLeadtime();
 1636  
           }
 1637  
 
 1638  
           public void setCooked(Persistent g, Object cooked)
 1639  
               throws AccessPoemException, ValidationPoemException {
 1640  0
             ((Product)g).setLeadtime((Integer)cooked);
 1641  0
           }
 1642  
 
 1643  
           public Field asField(Persistent g) {
 1644  0
             return ((Product)g).getLeadtimeField();
 1645  
           }
 1646  
 
 1647  
           protected DisplayLevel defaultDisplayLevel() {
 1648  0
             return DisplayLevel.record;
 1649  
           }
 1650  
 
 1651  
           protected Searchability defaultSearchability() {
 1652  0
             return Searchability.no;
 1653  
           }
 1654  
 
 1655  
           protected String defaultDisplayName() {
 1656  0
             return "Lead Time (Days)";
 1657  
           }
 1658  
 
 1659  
           protected int defaultDisplayOrder() {
 1660  0
             return 26;
 1661  
           }
 1662  
 
 1663  
           public Object getRaw_unsafe(Persistent g)
 1664  
               throws AccessPoemException {
 1665  0
             return ((Product)g).getLeadtime_unsafe();
 1666  
           }
 1667  
 
 1668  
           public void setRaw_unsafe(Persistent g, Object raw)
 1669  
               throws AccessPoemException {
 1670  0
             ((Product)g).setLeadtime_unsafe((Integer)raw);
 1671  0
           }
 1672  
 
 1673  
           public Object getRaw(Persistent g)
 1674  
               throws AccessPoemException {
 1675  0
             return ((Product)g).getLeadtime();
 1676  
           }
 1677  
 
 1678  0
           public void setRaw(Persistent g, Object raw)
 1679  
               throws AccessPoemException {
 1680  0
             ((Product)g).setLeadtime((Integer)raw);
 1681  0
           }
 1682  
         });
 1683  
 
 1684  0
     defineColumn(col_weight =
 1685  
         new Column(this, "weight",
 1686  
                    new DoublePoemType(true),
 1687  
                    DefinitionSource.dsd) { 
 1688  
           public Object getCooked(Persistent g)
 1689  
               throws AccessPoemException, PoemException {
 1690  0
             return ((Product)g).getWeight();
 1691  
           }
 1692  
 
 1693  
           public void setCooked(Persistent g, Object cooked)
 1694  
               throws AccessPoemException, ValidationPoemException {
 1695  0
             ((Product)g).setWeight((Double)cooked);
 1696  0
           }
 1697  
 
 1698  
           public Field asField(Persistent g) {
 1699  0
             return ((Product)g).getWeightField();
 1700  
           }
 1701  
 
 1702  
           protected DisplayLevel defaultDisplayLevel() {
 1703  0
             return DisplayLevel.record;
 1704  
           }
 1705  
 
 1706  
           protected Searchability defaultSearchability() {
 1707  0
             return Searchability.no;
 1708  
           }
 1709  
 
 1710  
           protected String defaultDisplayName() {
 1711  0
             return "Weight in Grammes";
 1712  
           }
 1713  
 
 1714  
           protected int defaultDisplayOrder() {
 1715  0
             return 27;
 1716  
           }
 1717  
 
 1718  
           public Object getRaw_unsafe(Persistent g)
 1719  
               throws AccessPoemException {
 1720  0
             return ((Product)g).getWeight_unsafe();
 1721  
           }
 1722  
 
 1723  
           public void setRaw_unsafe(Persistent g, Object raw)
 1724  
               throws AccessPoemException {
 1725  0
             ((Product)g).setWeight_unsafe((Double)raw);
 1726  0
           }
 1727  
 
 1728  
           public Object getRaw(Persistent g)
 1729  
               throws AccessPoemException {
 1730  0
             return ((Product)g).getWeight();
 1731  
           }
 1732  
 
 1733  0
           public void setRaw(Persistent g, Object raw)
 1734  
               throws AccessPoemException {
 1735  0
             ((Product)g).setWeight((Double)raw);
 1736  0
           }
 1737  
         });
 1738  
 
 1739  0
     defineColumn(col_width =
 1740  
         new Column(this, "width",
 1741  
                    new DoublePoemType(true),
 1742  
                    DefinitionSource.dsd) { 
 1743  
           public Object getCooked(Persistent g)
 1744  
               throws AccessPoemException, PoemException {
 1745  0
             return ((Product)g).getWidth();
 1746  
           }
 1747  
 
 1748  
           public void setCooked(Persistent g, Object cooked)
 1749  
               throws AccessPoemException, ValidationPoemException {
 1750  0
             ((Product)g).setWidth((Double)cooked);
 1751  0
           }
 1752  
 
 1753  
           public Field asField(Persistent g) {
 1754  0
             return ((Product)g).getWidthField();
 1755  
           }
 1756  
 
 1757  
           protected DisplayLevel defaultDisplayLevel() {
 1758  0
             return DisplayLevel.detail;
 1759  
           }
 1760  
 
 1761  
           protected Searchability defaultSearchability() {
 1762  0
             return Searchability.no;
 1763  
           }
 1764  
 
 1765  
           protected String defaultDisplayName() {
 1766  0
             return "Width (or size) in cm";
 1767  
           }
 1768  
 
 1769  
           protected int defaultDisplayOrder() {
 1770  0
             return 28;
 1771  
           }
 1772  
 
 1773  
           public Object getRaw_unsafe(Persistent g)
 1774  
               throws AccessPoemException {
 1775  0
             return ((Product)g).getWidth_unsafe();
 1776  
           }
 1777  
 
 1778  
           public void setRaw_unsafe(Persistent g, Object raw)
 1779  
               throws AccessPoemException {
 1780  0
             ((Product)g).setWidth_unsafe((Double)raw);
 1781  0
           }
 1782  
 
 1783  
           public Object getRaw(Persistent g)
 1784  
               throws AccessPoemException {
 1785  0
             return ((Product)g).getWidth();
 1786  
           }
 1787  
 
 1788  0
           public void setRaw(Persistent g, Object raw)
 1789  
               throws AccessPoemException {
 1790  0
             ((Product)g).setWidth((Double)raw);
 1791  0
           }
 1792  
         });
 1793  
 
 1794  0
     defineColumn(col_height =
 1795  
         new Column(this, "height",
 1796  
                    new DoublePoemType(true),
 1797  
                    DefinitionSource.dsd) { 
 1798  
           public Object getCooked(Persistent g)
 1799  
               throws AccessPoemException, PoemException {
 1800  0
             return ((Product)g).getHeight();
 1801  
           }
 1802  
 
 1803  
           public void setCooked(Persistent g, Object cooked)
 1804  
               throws AccessPoemException, ValidationPoemException {
 1805  0
             ((Product)g).setHeight((Double)cooked);
 1806  0
           }
 1807  
 
 1808  
           public Field asField(Persistent g) {
 1809  0
             return ((Product)g).getHeightField();
 1810  
           }
 1811  
 
 1812  
           protected DisplayLevel defaultDisplayLevel() {
 1813  0
             return DisplayLevel.detail;
 1814  
           }
 1815  
 
 1816  
           protected Searchability defaultSearchability() {
 1817  0
             return Searchability.no;
 1818  
           }
 1819  
 
 1820  
           protected String defaultDisplayName() {
 1821  0
             return "Height in cm";
 1822  
           }
 1823  
 
 1824  
           protected int defaultDisplayOrder() {
 1825  0
             return 29;
 1826  
           }
 1827  
 
 1828  
           public Object getRaw_unsafe(Persistent g)
 1829  
               throws AccessPoemException {
 1830  0
             return ((Product)g).getHeight_unsafe();
 1831  
           }
 1832  
 
 1833  
           public void setRaw_unsafe(Persistent g, Object raw)
 1834  
               throws AccessPoemException {
 1835  0
             ((Product)g).setHeight_unsafe((Double)raw);
 1836  0
           }
 1837  
 
 1838  
           public Object getRaw(Persistent g)
 1839  
               throws AccessPoemException {
 1840  0
             return ((Product)g).getHeight();
 1841  
           }
 1842  
 
 1843  0
           public void setRaw(Persistent g, Object raw)
 1844  
               throws AccessPoemException {
 1845  0
             ((Product)g).setHeight((Double)raw);
 1846  0
           }
 1847  
         });
 1848  
 
 1849  0
     defineColumn(col_depth =
 1850  
         new Column(this, "depth",
 1851  
                    new DoublePoemType(true),
 1852  
                    DefinitionSource.dsd) { 
 1853  
           public Object getCooked(Persistent g)
 1854  
               throws AccessPoemException, PoemException {
 1855  0
             return ((Product)g).getDepth();
 1856  
           }
 1857  
 
 1858  
           public void setCooked(Persistent g, Object cooked)
 1859  
               throws AccessPoemException, ValidationPoemException {
 1860  0
             ((Product)g).setDepth((Double)cooked);
 1861  0
           }
 1862  
 
 1863  
           public Field asField(Persistent g) {
 1864  0
             return ((Product)g).getDepthField();
 1865  
           }
 1866  
 
 1867  
           protected DisplayLevel defaultDisplayLevel() {
 1868  0
             return DisplayLevel.detail;
 1869  
           }
 1870  
 
 1871  
           protected Searchability defaultSearchability() {
 1872  0
             return Searchability.no;
 1873  
           }
 1874  
 
 1875  
           protected String defaultDisplayName() {
 1876  0
             return "Depth in cm";
 1877  
           }
 1878  
 
 1879  
           protected int defaultDisplayOrder() {
 1880  0
             return 30;
 1881  
           }
 1882  
 
 1883  
           public Object getRaw_unsafe(Persistent g)
 1884  
               throws AccessPoemException {
 1885  0
             return ((Product)g).getDepth_unsafe();
 1886  
           }
 1887  
 
 1888  
           public void setRaw_unsafe(Persistent g, Object raw)
 1889  
               throws AccessPoemException {
 1890  0
             ((Product)g).setDepth_unsafe((Double)raw);
 1891  0
           }
 1892  
 
 1893  
           public Object getRaw(Persistent g)
 1894  
               throws AccessPoemException {
 1895  0
             return ((Product)g).getDepth();
 1896  
           }
 1897  
 
 1898  0
           public void setRaw(Persistent g, Object raw)
 1899  
               throws AccessPoemException {
 1900  0
             ((Product)g).setDepth((Double)raw);
 1901  0
           }
 1902  
         });
 1903  
 
 1904  0
     defineColumn(col_picture =
 1905  
         new Column(this, "picture",
 1906  
                    new StringPoemType(true, -1),
 1907  
                    DefinitionSource.dsd) { 
 1908  
           public Object getCooked(Persistent g)
 1909  
               throws AccessPoemException, PoemException {
 1910  0
             return ((Product)g).getPicture();
 1911  
           }
 1912  
 
 1913  
           public void setCooked(Persistent g, Object cooked)
 1914  
               throws AccessPoemException, ValidationPoemException {
 1915  0
             ((Product)g).setPicture((String)cooked);
 1916  0
           }
 1917  
 
 1918  
           public Field asField(Persistent g) {
 1919  0
             return ((Product)g).getPictureField();
 1920  
           }
 1921  
 
 1922  
           protected DisplayLevel defaultDisplayLevel() {
 1923  0
             return DisplayLevel.record;
 1924  
           }
 1925  
 
 1926  
           protected Searchability defaultSearchability() {
 1927  0
             return Searchability.no;
 1928  
           }
 1929  
 
 1930  
           protected String defaultDisplayName() {
 1931  0
             return "Small Picture";
 1932  
           }
 1933  
 
 1934  
           protected int defaultDisplayOrder() {
 1935  0
             return 31;
 1936  
           }
 1937  
 
 1938  
           protected int defaultWidth() {
 1939  0
             return 20;
 1940  
           }
 1941  
 
 1942  
           protected String defaultRenderinfo() {
 1943  0
             return "ImageUpload";
 1944  
           }
 1945  
 
 1946  
           public Object getRaw_unsafe(Persistent g)
 1947  
               throws AccessPoemException {
 1948  0
             return ((Product)g).getPicture_unsafe();
 1949  
           }
 1950  
 
 1951  
           public void setRaw_unsafe(Persistent g, Object raw)
 1952  
               throws AccessPoemException {
 1953  0
             ((Product)g).setPicture_unsafe((String)raw);
 1954  0
           }
 1955  
 
 1956  
           public Object getRaw(Persistent g)
 1957  
               throws AccessPoemException {
 1958  0
             return ((Product)g).getPicture();
 1959  
           }
 1960  
 
 1961  0
           public void setRaw(Persistent g, Object raw)
 1962  
               throws AccessPoemException {
 1963  0
             ((Product)g).setPicture((String)raw);
 1964  0
           }
 1965  
         });
 1966  
 
 1967  0
     defineColumn(col_picture2 =
 1968  
         new Column(this, "picture2",
 1969  
                    new StringPoemType(true, -1),
 1970  
                    DefinitionSource.dsd) { 
 1971  
           public Object getCooked(Persistent g)
 1972  
               throws AccessPoemException, PoemException {
 1973  0
             return ((Product)g).getPicture2();
 1974  
           }
 1975  
 
 1976  
           public void setCooked(Persistent g, Object cooked)
 1977  
               throws AccessPoemException, ValidationPoemException {
 1978  0
             ((Product)g).setPicture2((String)cooked);
 1979  0
           }
 1980  
 
 1981  
           public Field asField(Persistent g) {
 1982  0
             return ((Product)g).getPicture2Field();
 1983  
           }
 1984  
 
 1985  
           protected DisplayLevel defaultDisplayLevel() {
 1986  0
             return DisplayLevel.record;
 1987  
           }
 1988  
 
 1989  
           protected Searchability defaultSearchability() {
 1990  0
             return Searchability.no;
 1991  
           }
 1992  
 
 1993  
           protected String defaultDisplayName() {
 1994  0
             return "Big Picture";
 1995  
           }
 1996  
 
 1997  
           protected int defaultDisplayOrder() {
 1998  0
             return 32;
 1999  
           }
 2000  
 
 2001  
           protected int defaultWidth() {
 2002  0
             return 20;
 2003  
           }
 2004  
 
 2005  
           protected String defaultRenderinfo() {
 2006  0
             return "ImageUpload";
 2007  
           }
 2008  
 
 2009  
           public Object getRaw_unsafe(Persistent g)
 2010  
               throws AccessPoemException {
 2011  0
             return ((Product)g).getPicture2_unsafe();
 2012  
           }
 2013  
 
 2014  
           public void setRaw_unsafe(Persistent g, Object raw)
 2015  
               throws AccessPoemException {
 2016  0
             ((Product)g).setPicture2_unsafe((String)raw);
 2017  0
           }
 2018  
 
 2019  
           public Object getRaw(Persistent g)
 2020  
               throws AccessPoemException {
 2021  0
             return ((Product)g).getPicture2();
 2022  
           }
 2023  
 
 2024  0
           public void setRaw(Persistent g, Object raw)
 2025  
               throws AccessPoemException {
 2026  0
             ((Product)g).setPicture2((String)raw);
 2027  0
           }
 2028  
         });
 2029  
 
 2030  0
     defineColumn(col_catalogue =
 2031  
         new Column(this, "catalogue",
 2032  
                    new BooleanPoemType(false),
 2033  
                    DefinitionSource.dsd) { 
 2034  
           public Object getCooked(Persistent g)
 2035  
               throws AccessPoemException, PoemException {
 2036  0
             return ((Product)g).getCatalogue();
 2037  
           }
 2038  
 
 2039  
           public void setCooked(Persistent g, Object cooked)
 2040  
               throws AccessPoemException, ValidationPoemException {
 2041  0
             ((Product)g).setCatalogue((Boolean)cooked);
 2042  0
           }
 2043  
 
 2044  
           public Field asField(Persistent g) {
 2045  0
             return ((Product)g).getCatalogueField();
 2046  
           }
 2047  
 
 2048  
           protected DisplayLevel defaultDisplayLevel() {
 2049  0
             return DisplayLevel.record;
 2050  
           }
 2051  
 
 2052  
           protected Searchability defaultSearchability() {
 2053  0
             return Searchability.yes;
 2054  
           }
 2055  
 
 2056  
           protected String defaultDisplayName() {
 2057  0
             return "Use in Catalogue?";
 2058  
           }
 2059  
 
 2060  
           protected int defaultDisplayOrder() {
 2061  0
             return 33;
 2062  
           }
 2063  
 
 2064  
           public Object getRaw_unsafe(Persistent g)
 2065  
               throws AccessPoemException {
 2066  0
             return ((Product)g).getCatalogue_unsafe();
 2067  
           }
 2068  
 
 2069  
           public void setRaw_unsafe(Persistent g, Object raw)
 2070  
               throws AccessPoemException {
 2071  0
             ((Product)g).setCatalogue_unsafe((Boolean)raw);
 2072  0
           }
 2073  
 
 2074  
           public Object getRaw(Persistent g)
 2075  
               throws AccessPoemException {
 2076  0
             return ((Product)g).getCatalogue();
 2077  
           }
 2078  
 
 2079  0
           public void setRaw(Persistent g, Object raw)
 2080  
               throws AccessPoemException {
 2081  0
             ((Product)g).setCatalogue((Boolean)raw);
 2082  0
           }
 2083  
         });
 2084  
 
 2085  0
     defineColumn(col_deleted =
 2086  
         new Column(this, "deleted",
 2087  
                    new BooleanPoemType(false),
 2088  
                    DefinitionSource.dsd) { 
 2089  
           public Object getCooked(Persistent g)
 2090  
               throws AccessPoemException, PoemException {
 2091  0
             return ((Product)g).getDeleted();
 2092  
           }
 2093  
 
 2094  
           public void setCooked(Persistent g, Object cooked)
 2095  
               throws AccessPoemException, ValidationPoemException {
 2096  0
             ((Product)g).setDeleted((Boolean)cooked);
 2097  0
           }
 2098  
 
 2099  
           public Field asField(Persistent g) {
 2100  0
             return ((Product)g).getDeletedField();
 2101  
           }
 2102  
 
 2103  
           protected DisplayLevel defaultDisplayLevel() {
 2104  0
             return DisplayLevel.detail;
 2105  
           }
 2106  
 
 2107  
           protected Searchability defaultSearchability() {
 2108  0
             return Searchability.no;
 2109  
           }
 2110  
 
 2111  
           protected String defaultDisplayName() {
 2112  0
             return "Deleted?";
 2113  
           }
 2114  
 
 2115  
           protected int defaultDisplayOrder() {
 2116  0
             return 34;
 2117  
           }
 2118  
 
 2119  
           public Object getRaw_unsafe(Persistent g)
 2120  
               throws AccessPoemException {
 2121  0
             return ((Product)g).getDeleted_unsafe();
 2122  
           }
 2123  
 
 2124  
           public void setRaw_unsafe(Persistent g, Object raw)
 2125  
               throws AccessPoemException {
 2126  0
             ((Product)g).setDeleted_unsafe((Boolean)raw);
 2127  0
           }
 2128  
 
 2129  
           public Object getRaw(Persistent g)
 2130  
               throws AccessPoemException {
 2131  0
             return ((Product)g).getDeleted();
 2132  
           }
 2133  
 
 2134  0
           public void setRaw(Persistent g, Object raw)
 2135  
               throws AccessPoemException {
 2136  0
             ((Product)g).setDeleted((Boolean)raw);
 2137  0
           }
 2138  
         });
 2139  
 
 2140  0
     defineColumn(col_award =
 2141  
         new Column(this, "award",
 2142  
                    new ReferencePoemType(getJammyjoesDatabaseTables().
 2143  
                                              getAwardTable(), true),
 2144  
                    DefinitionSource.dsd) { 
 2145  
           public Object getCooked(Persistent g)
 2146  
               throws AccessPoemException, PoemException {
 2147  0
             return ((Product)g).getAward();
 2148  
           }
 2149  
 
 2150  
           public void setCooked(Persistent g, Object cooked)
 2151  
               throws AccessPoemException, ValidationPoemException {
 2152  0
             ((Product)g).setAward((Award)cooked);
 2153  0
           }
 2154  
 
 2155  
           public Field asField(Persistent g) {
 2156  0
             return ((Product)g).getAwardField();
 2157  
           }
 2158  
 
 2159  
           protected DisplayLevel defaultDisplayLevel() {
 2160  0
             return DisplayLevel.never;
 2161  
           }
 2162  
 
 2163  
           protected Searchability defaultSearchability() {
 2164  0
             return Searchability.no;
 2165  
           }
 2166  
 
 2167  
           protected int defaultDisplayOrder() {
 2168  0
             return 35;
 2169  
           }
 2170  
 
 2171  
           public Object getRaw_unsafe(Persistent g)
 2172  
               throws AccessPoemException {
 2173  0
             return ((Product)g).getAward_unsafe();
 2174  
           }
 2175  
 
 2176  
           public void setRaw_unsafe(Persistent g, Object raw)
 2177  
               throws AccessPoemException {
 2178  0
             ((Product)g).setAward_unsafe((Integer)raw);
 2179  0
           }
 2180  
 
 2181  
           public Object getRaw(Persistent g)
 2182  
               throws AccessPoemException {
 2183  0
             return ((Product)g).getAwardTroid();
 2184  
           }
 2185  
 
 2186  0
           public void setRaw(Persistent g, Object raw)
 2187  
               throws AccessPoemException {
 2188  0
             ((Product)g).setAwardTroid((Integer)raw);
 2189  0
           }
 2190  
         });
 2191  
 
 2192  0
     defineColumn(col_onorderquantity =
 2193  
         new Column(this, "onorderquantity",
 2194  
                    new IntegerPoemType(true),
 2195  
                    DefinitionSource.dsd) { 
 2196  
           public Object getCooked(Persistent g)
 2197  
               throws AccessPoemException, PoemException {
 2198  0
             return ((Product)g).getOnorderquantity();
 2199  
           }
 2200  
 
 2201  
           public void setCooked(Persistent g, Object cooked)
 2202  
               throws AccessPoemException, ValidationPoemException {
 2203  0
             ((Product)g).setOnorderquantity((Integer)cooked);
 2204  0
           }
 2205  
 
 2206  
           public Field asField(Persistent g) {
 2207  0
             return ((Product)g).getOnorderquantityField();
 2208  
           }
 2209  
 
 2210  
           protected DisplayLevel defaultDisplayLevel() {
 2211  0
             return DisplayLevel.record;
 2212  
           }
 2213  
 
 2214  
           protected Searchability defaultSearchability() {
 2215  0
             return Searchability.no;
 2216  
           }
 2217  
 
 2218  
           protected String defaultDisplayName() {
 2219  0
             return "On-order Level";
 2220  
           }
 2221  
 
 2222  
           protected int defaultDisplayOrder() {
 2223  0
             return 36;
 2224  
           }
 2225  
 
 2226  
           protected String defaultDescription() {
 2227  0
             return "Not currently used";
 2228  
           }
 2229  
 
 2230  
           public Object getRaw_unsafe(Persistent g)
 2231  
               throws AccessPoemException {
 2232  0
             return ((Product)g).getOnorderquantity_unsafe();
 2233  
           }
 2234  
 
 2235  
           public void setRaw_unsafe(Persistent g, Object raw)
 2236  
               throws AccessPoemException {
 2237  0
             ((Product)g).setOnorderquantity_unsafe((Integer)raw);
 2238  0
           }
 2239  
 
 2240  
           public Object getRaw(Persistent g)
 2241  
               throws AccessPoemException {
 2242  0
             return ((Product)g).getOnorderquantity();
 2243  
           }
 2244  
 
 2245  0
           public void setRaw(Persistent g, Object raw)
 2246  
               throws AccessPoemException {
 2247  0
             ((Product)g).setOnorderquantity((Integer)raw);
 2248  0
           }
 2249  
         });
 2250  0
   }
 2251  
 
 2252  
 
 2253  
  /**
 2254  
   * Retrieves the <code>Id</code> <code>Column</code> for this 
 2255  
   * <code>Product</code> <code>Table</code>.
 2256  
   * 
 2257  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2258  
   * @return the id <code>Column</code>
 2259  
   */
 2260  
   public final Column getIdColumn() {
 2261  0
     return col_id;
 2262  
   }
 2263  
 
 2264  
 
 2265  
  /**
 2266  
   * Retrieves the <code>Name</code> <code>Column</code> for this 
 2267  
   * <code>Product</code> <code>Table</code>.
 2268  
   * 
 2269  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2270  
   * @return the name <code>Column</code>
 2271  
   */
 2272  
   public final Column getNameColumn() {
 2273  0
     return col_name;
 2274  
   }
 2275  
 
 2276  
 
 2277  
  /**
 2278  
   * Retrieves the <code>Status</code> <code>Column</code> for this 
 2279  
   * <code>Product</code> <code>Table</code>.
 2280  
   * 
 2281  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2282  
   * @return the status <code>Column</code>
 2283  
   */
 2284  
   public final Column getStatusColumn() {
 2285  0
     return col_status;
 2286  
   }
 2287  
 
 2288  
 
 2289  
  /**
 2290  
   * Retrieves the <code>Type</code> <code>Column</code> for this 
 2291  
   * <code>Product</code> <code>Table</code>.
 2292  
   * 
 2293  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2294  
   * @return the type <code>Column</code>
 2295  
   */
 2296  
   public final Column getTypeColumn() {
 2297  0
     return col_type;
 2298  
   }
 2299  
 
 2300  
 
 2301  
  /**
 2302  
   * Retrieves the <code>Type2</code> <code>Column</code> for this 
 2303  
   * <code>Product</code> <code>Table</code>.
 2304  
   * 
 2305  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2306  
   * @return the type2 <code>Column</code>
 2307  
   */
 2308  
   public final Column getType2Column() {
 2309  0
     return col_type2;
 2310  
   }
 2311  
 
 2312  
 
 2313  
  /**
 2314  
   * Retrieves the <code>Sex</code> <code>Column</code> for this 
 2315  
   * <code>Product</code> <code>Table</code>.
 2316  
   * 
 2317  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2318  
   * @return the sex <code>Column</code>
 2319  
   */
 2320  
   public final Column getSexColumn() {
 2321  0
     return col_sex;
 2322  
   }
 2323  
 
 2324  
 
 2325  
  /**
 2326  
   * Retrieves the <code>Description</code> <code>Column</code> for this 
 2327  
   * <code>Product</code> <code>Table</code>.
 2328  
   * 
 2329  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2330  
   * @return the description <code>Column</code>
 2331  
   */
 2332  
   public final Column getDescriptionColumn() {
 2333  0
     return col_description;
 2334  
   }
 2335  
 
 2336  
 
 2337  
  /**
 2338  
   * Retrieves the <code>Supplier</code> <code>Column</code> for this 
 2339  
   * <code>Product</code> <code>Table</code>.
 2340  
   * 
 2341  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2342  
   * @return the supplier <code>Column</code>
 2343  
   */
 2344  
   public final Column getSupplierColumn() {
 2345  0
     return col_supplier;
 2346  
   }
 2347  
 
 2348  
 
 2349  
  /**
 2350  
   * Retrieves the <code>Manufacturer</code> <code>Column</code> for this 
 2351  
   * <code>Product</code> <code>Table</code>.
 2352  
   * 
 2353  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2354  
   * @return the manufacturer <code>Column</code>
 2355  
   */
 2356  
   public final Column getManufacturerColumn() {
 2357  0
     return col_manufacturer;
 2358  
   }
 2359  
 
 2360  
 
 2361  
  /**
 2362  
   * Retrieves the <code>Suppliercode</code> <code>Column</code> for this 
 2363  
   * <code>Product</code> <code>Table</code>.
 2364  
   * 
 2365  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2366  
   * @return the suppliercode <code>Column</code>
 2367  
   */
 2368  
   public final Column getSuppliercodeColumn() {
 2369  0
     return col_suppliercode;
 2370  
   }
 2371  
 
 2372  
 
 2373  
  /**
 2374  
   * Retrieves the <code>Costprice</code> <code>Column</code> for this 
 2375  
   * <code>Product</code> <code>Table</code>.
 2376  
   * 
 2377  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2378  
   * @return the costprice <code>Column</code>
 2379  
   */
 2380  
   public final Column getCostpriceColumn() {
 2381  0
     return col_costprice;
 2382  
   }
 2383  
 
 2384  
 
 2385  
  /**
 2386  
   * Retrieves the <code>Retailpriceincvat</code> <code>Column</code> for this 
 2387  
   * <code>Product</code> <code>Table</code>.
 2388  
   * 
 2389  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2390  
   * @return the retailpriceincvat <code>Column</code>
 2391  
   */
 2392  
   public final Column getRetailpriceincvatColumn() {
 2393  0
     return col_retailpriceincvat;
 2394  
   }
 2395  
 
 2396  
 
 2397  
  /**
 2398  
   * Retrieves the <code>Vatexempt</code> <code>Column</code> for this 
 2399  
   * <code>Product</code> <code>Table</code>.
 2400  
   * 
 2401  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2402  
   * @return the vatexempt <code>Column</code>
 2403  
   */
 2404  
   public final Column getVatexemptColumn() {
 2405  0
     return col_vatexempt;
 2406  
   }
 2407  
 
 2408  
 
 2409  
  /**
 2410  
   * Retrieves the <code>Saleprice</code> <code>Column</code> for this 
 2411  
   * <code>Product</code> <code>Table</code>.
 2412  
   * 
 2413  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2414  
   * @return the saleprice <code>Column</code>
 2415  
   */
 2416  
   public final Column getSalepriceColumn() {
 2417  0
     return col_saleprice;
 2418  
   }
 2419  
 
 2420  
 
 2421  
  /**
 2422  
   * Retrieves the <code>Retailprice</code> <code>Column</code> for this 
 2423  
   * <code>Product</code> <code>Table</code>.
 2424  
   * 
 2425  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2426  
   * @return the retailprice <code>Column</code>
 2427  
   */
 2428  
   public final Column getRetailpriceColumn() {
 2429  0
     return col_retailprice;
 2430  
   }
 2431  
 
 2432  
 
 2433  
  /**
 2434  
   * Retrieves the <code>Margin</code> <code>Column</code> for this 
 2435  
   * <code>Product</code> <code>Table</code>.
 2436  
   * 
 2437  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2438  
   * @return the margin <code>Column</code>
 2439  
   */
 2440  
   public final Column getMarginColumn() {
 2441  0
     return col_margin;
 2442  
   }
 2443  
 
 2444  
 
 2445  
  /**
 2446  
   * Retrieves the <code>Marginpercent</code> <code>Column</code> for this 
 2447  
   * <code>Product</code> <code>Table</code>.
 2448  
   * 
 2449  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2450  
   * @return the marginpercent <code>Column</code>
 2451  
   */
 2452  
   public final Column getMarginpercentColumn() {
 2453  0
     return col_marginpercent;
 2454  
   }
 2455  
 
 2456  
 
 2457  
  /**
 2458  
   * Retrieves the <code>Markuppercent</code> <code>Column</code> for this 
 2459  
   * <code>Product</code> <code>Table</code>.
 2460  
   * 
 2461  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2462  
   * @return the markuppercent <code>Column</code>
 2463  
   */
 2464  
   public final Column getMarkuppercentColumn() {
 2465  0
     return col_markuppercent;
 2466  
   }
 2467  
 
 2468  
 
 2469  
  /**
 2470  
   * Retrieves the <code>Deliverycost</code> <code>Column</code> for this 
 2471  
   * <code>Product</code> <code>Table</code>.
 2472  
   * 
 2473  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2474  
   * @return the deliverycost <code>Column</code>
 2475  
   */
 2476  
   public final Column getDeliverycostColumn() {
 2477  0
     return col_deliverycost;
 2478  
   }
 2479  
 
 2480  
 
 2481  
  /**
 2482  
   * Retrieves the <code>Minage</code> <code>Column</code> for this 
 2483  
   * <code>Product</code> <code>Table</code>.
 2484  
   * 
 2485  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2486  
   * @return the minage <code>Column</code>
 2487  
   */
 2488  
   public final Column getMinageColumn() {
 2489  0
     return col_minage;
 2490  
   }
 2491  
 
 2492  
 
 2493  
  /**
 2494  
   * Retrieves the <code>Maxage</code> <code>Column</code> for this 
 2495  
   * <code>Product</code> <code>Table</code>.
 2496  
   * 
 2497  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2498  
   * @return the maxage <code>Column</code>
 2499  
   */
 2500  
   public final Column getMaxageColumn() {
 2501  0
     return col_maxage;
 2502  
   }
 2503  
 
 2504  
 
 2505  
  /**
 2506  
   * Retrieves the <code>Pieces</code> <code>Column</code> for this 
 2507  
   * <code>Product</code> <code>Table</code>.
 2508  
   * 
 2509  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2510  
   * @return the pieces <code>Column</code>
 2511  
   */
 2512  
   public final Column getPiecesColumn() {
 2513  0
     return col_pieces;
 2514  
   }
 2515  
 
 2516  
 
 2517  
  /**
 2518  
   * Retrieves the <code>Stocklevel</code> <code>Column</code> for this 
 2519  
   * <code>Product</code> <code>Table</code>.
 2520  
   * 
 2521  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2522  
   * @return the stocklevel <code>Column</code>
 2523  
   */
 2524  
   public final Column getStocklevelColumn() {
 2525  0
     return col_stocklevel;
 2526  
   }
 2527  
 
 2528  
 
 2529  
  /**
 2530  
   * Retrieves the <code>Reorderlevel</code> <code>Column</code> for this 
 2531  
   * <code>Product</code> <code>Table</code>.
 2532  
   * 
 2533  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2534  
   * @return the reorderlevel <code>Column</code>
 2535  
   */
 2536  
   public final Column getReorderlevelColumn() {
 2537  0
     return col_reorderlevel;
 2538  
   }
 2539  
 
 2540  
 
 2541  
  /**
 2542  
   * Retrieves the <code>Reorderquantity</code> <code>Column</code> for this 
 2543  
   * <code>Product</code> <code>Table</code>.
 2544  
   * 
 2545  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2546  
   * @return the reorderquantity <code>Column</code>
 2547  
   */
 2548  
   public final Column getReorderquantityColumn() {
 2549  0
     return col_reorderquantity;
 2550  
   }
 2551  
 
 2552  
 
 2553  
  /**
 2554  
   * Retrieves the <code>Minimumorder</code> <code>Column</code> for this 
 2555  
   * <code>Product</code> <code>Table</code>.
 2556  
   * 
 2557  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2558  
   * @return the minimumorder <code>Column</code>
 2559  
   */
 2560  
   public final Column getMinimumorderColumn() {
 2561  0
     return col_minimumorder;
 2562  
   }
 2563  
 
 2564  
 
 2565  
  /**
 2566  
   * Retrieves the <code>Leadtime</code> <code>Column</code> for this 
 2567  
   * <code>Product</code> <code>Table</code>.
 2568  
   * 
 2569  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2570  
   * @return the leadtime <code>Column</code>
 2571  
   */
 2572  
   public final Column getLeadtimeColumn() {
 2573  0
     return col_leadtime;
 2574  
   }
 2575  
 
 2576  
 
 2577  
  /**
 2578  
   * Retrieves the <code>Weight</code> <code>Column</code> for this 
 2579  
   * <code>Product</code> <code>Table</code>.
 2580  
   * 
 2581  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2582  
   * @return the weight <code>Column</code>
 2583  
   */
 2584  
   public final Column getWeightColumn() {
 2585  0
     return col_weight;
 2586  
   }
 2587  
 
 2588  
 
 2589  
  /**
 2590  
   * Retrieves the <code>Width</code> <code>Column</code> for this 
 2591  
   * <code>Product</code> <code>Table</code>.
 2592  
   * 
 2593  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2594  
   * @return the width <code>Column</code>
 2595  
   */
 2596  
   public final Column getWidthColumn() {
 2597  0
     return col_width;
 2598  
   }
 2599  
 
 2600  
 
 2601  
  /**
 2602  
   * Retrieves the <code>Height</code> <code>Column</code> for this 
 2603  
   * <code>Product</code> <code>Table</code>.
 2604  
   * 
 2605  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2606  
   * @return the height <code>Column</code>
 2607  
   */
 2608  
   public final Column getHeightColumn() {
 2609  0
     return col_height;
 2610  
   }
 2611  
 
 2612  
 
 2613  
  /**
 2614  
   * Retrieves the <code>Depth</code> <code>Column</code> for this 
 2615  
   * <code>Product</code> <code>Table</code>.
 2616  
   * 
 2617  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2618  
   * @return the depth <code>Column</code>
 2619  
   */
 2620  
   public final Column getDepthColumn() {
 2621  0
     return col_depth;
 2622  
   }
 2623  
 
 2624  
 
 2625  
  /**
 2626  
   * Retrieves the <code>Picture</code> <code>Column</code> for this 
 2627  
   * <code>Product</code> <code>Table</code>.
 2628  
   * 
 2629  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2630  
   * @return the picture <code>Column</code>
 2631  
   */
 2632  
   public final Column getPictureColumn() {
 2633  0
     return col_picture;
 2634  
   }
 2635  
 
 2636  
 
 2637  
  /**
 2638  
   * Retrieves the <code>Picture2</code> <code>Column</code> for this 
 2639  
   * <code>Product</code> <code>Table</code>.
 2640  
   * 
 2641  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2642  
   * @return the picture2 <code>Column</code>
 2643  
   */
 2644  
   public final Column getPicture2Column() {
 2645  0
     return col_picture2;
 2646  
   }
 2647  
 
 2648  
 
 2649  
  /**
 2650  
   * Retrieves the <code>Catalogue</code> <code>Column</code> for this 
 2651  
   * <code>Product</code> <code>Table</code>.
 2652  
   * 
 2653  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2654  
   * @return the catalogue <code>Column</code>
 2655  
   */
 2656  
   public final Column getCatalogueColumn() {
 2657  0
     return col_catalogue;
 2658  
   }
 2659  
 
 2660  
 
 2661  
  /**
 2662  
   * Retrieves the <code>Deleted</code> <code>Column</code> for this 
 2663  
   * <code>Product</code> <code>Table</code>.
 2664  
   * 
 2665  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2666  
   * @return the deleted <code>Column</code>
 2667  
   */
 2668  
   public final Column getDeletedColumn() {
 2669  0
     return col_deleted;
 2670  
   }
 2671  
 
 2672  
 
 2673  
  /**
 2674  
   * Retrieves the <code>Award</code> <code>Column</code> for this 
 2675  
   * <code>Product</code> <code>Table</code>.
 2676  
   * 
 2677  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2678  
   * @return the award <code>Column</code>
 2679  
   */
 2680  
   public final Column getAwardColumn() {
 2681  0
     return col_award;
 2682  
   }
 2683  
 
 2684  
 
 2685  
  /**
 2686  
   * Retrieves the <code>Onorderquantity</code> <code>Column</code> for this 
 2687  
   * <code>Product</code> <code>Table</code>.
 2688  
   * 
 2689  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 2690  
   * @return the onorderquantity <code>Column</code>
 2691  
   */
 2692  
   public final Column getOnorderquantityColumn() {
 2693  0
     return col_onorderquantity;
 2694  
   }
 2695  
 
 2696  
 
 2697  
  /**
 2698  
   * Retrieve the <code>Product</code> as a <code>Product</code>.
 2699  
   *
 2700  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 2701  
   * @param troid a Table Row Oject ID
 2702  
   * @return the <code>Persistent</code> identified by the <code>troid</code>
 2703  
   */
 2704  
   public Product getProductObject(Integer troid) {
 2705  0
     return (Product)getObject(troid);
 2706  
   }
 2707  
 
 2708  
 
 2709  
  /**
 2710  
   * Retrieve the <code>Product</code> 
 2711  
   * as a <code>Product</code>.
 2712  
   *
 2713  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 2714  
   * @param troid a Table Row Object ID
 2715  
   * @return the <code>Persistent</code> identified   */
 2716  
   public Product getProductObject(int troid) {
 2717  0
     return (Product)getObject(troid);
 2718  
   }
 2719  
 
 2720  
   protected JdbcPersistent _newPersistent() {
 2721  0
     return new Product();
 2722  
   }
 2723  
   protected String defaultDisplayName() {
 2724  0
     return "Products";
 2725  
   }
 2726  
 
 2727  
   protected String defaultDescription() {
 2728  0
     return "JammyJoes Products";
 2729  
   }
 2730  
 
 2731  
   protected boolean defaultRememberAllTroids() {
 2732  0
     return true;
 2733  
   }
 2734  
 
 2735  
   protected Integer defaultCacheLimit() {
 2736  0
     return new Integer(999999999);
 2737  
   }
 2738  
 
 2739  
   protected String defaultCategory() {
 2740  0
     return "Data";
 2741  
   }
 2742  
 
 2743  
   protected int defaultDisplayOrder() {
 2744  0
     return 10;
 2745  
   }
 2746  
 }
 2747