Coverage Report - org.paneris.jammyjoes.model.generated.SupplierTableBase
 
Classes in this File Line Coverage Branch Coverage Complexity
SupplierTableBase
0%
0/52
N/A
1
SupplierTableBase$1
0%
0/16
N/A
1
SupplierTableBase$10
0%
0/15
N/A
1
SupplierTableBase$11
0%
0/15
N/A
1
SupplierTableBase$12
0%
0/16
N/A
1
SupplierTableBase$13
0%
0/17
N/A
1
SupplierTableBase$2
0%
0/18
N/A
1
SupplierTableBase$3
0%
0/17
N/A
1
SupplierTableBase$4
0%
0/17
N/A
1
SupplierTableBase$5
0%
0/16
N/A
1
SupplierTableBase$6
0%
0/16
N/A
1
SupplierTableBase$7
0%
0/16
N/A
1
SupplierTableBase$8
0%
0/17
N/A
1
SupplierTableBase$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.JdbcPersistent;
 14  
 import org.melati.poem.Persistent;
 15  
 import org.melati.poem.PoemException;
 16  
 import org.melati.poem.Searchability;
 17  
 import org.melati.poem.StringPoemType;
 18  
 import org.melati.poem.TroidPoemType;
 19  
 import org.melati.poem.ValidationPoemException;
 20  
 import org.paneris.jammyjoes.model.JammyjoesDatabaseTables;
 21  
 import org.paneris.jammyjoes.model.JammyjoesTable;
 22  
 import org.paneris.jammyjoes.model.Supplier;
 23  
 
 24  
 
 25  
 /**
 26  
  * Melati POEM generated base class for 
 27  
 <code>Table</code> <code>Supplier</code>.
 28  
  *
 29  
  * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 30  
  */
 31  
 
 32  
 public class SupplierTableBase extends JammyjoesTable {
 33  
 
 34  0
   private Column col_id = null;
 35  0
   private Column col_name = null;
 36  0
   private Column col_address = null;
 37  0
   private Column col_profile = null;
 38  0
   private Column col_contact = null;
 39  0
   private Column col_email = null;
 40  0
   private Column col_website = null;
 41  0
   private Column col_comment = null;
 42  0
   private Column col_minimumamount = null;
 43  0
   private Column col_tel = null;
 44  0
   private Column col_fax = null;
 45  0
   private Column col_minimumorder = null;
 46  0
   private Column col_deleted = null;
 47  
 
 48  
  /**
 49  
   * Constructor. 
 50  
   * 
 51  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 52  
   * @param database          the POEM database we are using
 53  
   * @param name              the name of this <code>Table</code>
 54  
   * @param definitionSource  which definition is being used
 55  
   * @throws PoemException    if anything goes wrong
 56  
   */
 57  
 
 58  
   public SupplierTableBase(
 59  
       Database database, String name,
 60  
       DefinitionSource definitionSource) throws PoemException {
 61  0
     super(database, name, definitionSource);
 62  0
   }
 63  
 
 64  
 
 65  
  /**
 66  
   * Get the database tables.
 67  
   *
 68  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 69  
   * @return the database tables
 70  
   */
 71  
   public JammyjoesDatabaseTables getJammyjoesDatabaseTables() {
 72  0
     return (JammyjoesDatabaseTables)getDatabase();
 73  
   }
 74  
 
 75  
   public void init() throws PoemException {
 76  0
     super.init();
 77  0
     defineColumn(col_id =
 78  
         new Column(this, "id",
 79  
                    new TroidPoemType(),
 80  
                    DefinitionSource.dsd) { 
 81  
           public Object getCooked(Persistent g)
 82  
               throws AccessPoemException, PoemException {
 83  0
             return ((Supplier)g).getId();
 84  
           }
 85  
 
 86  
           public void setCooked(Persistent g, Object cooked)
 87  
               throws AccessPoemException, ValidationPoemException {
 88  0
             ((Supplier)g).setId((Integer)cooked);
 89  0
           }
 90  
 
 91  
           public Field asField(Persistent g) {
 92  0
             return ((Supplier)g).getIdField();
 93  
           }
 94  
 
 95  
           protected boolean defaultUserEditable() {
 96  0
             return false;
 97  
           }
 98  
 
 99  
           protected boolean defaultUserCreateable() {
 100  0
             return false;
 101  
           }
 102  
 
 103  
           protected DisplayLevel defaultDisplayLevel() {
 104  0
             return DisplayLevel.record;
 105  
           }
 106  
 
 107  
           protected Searchability defaultSearchability() {
 108  0
             return Searchability.no;
 109  
           }
 110  
 
 111  
           protected int defaultDisplayOrder() {
 112  0
             return 0;
 113  
           }
 114  
 
 115  
           public Object getRaw_unsafe(Persistent g)
 116  
               throws AccessPoemException {
 117  0
             return ((Supplier)g).getId_unsafe();
 118  
           }
 119  
 
 120  
           public void setRaw_unsafe(Persistent g, Object raw)
 121  
               throws AccessPoemException {
 122  0
             ((Supplier)g).setId_unsafe((Integer)raw);
 123  0
           }
 124  
 
 125  
           public Object getRaw(Persistent g)
 126  
               throws AccessPoemException {
 127  0
             return ((Supplier)g).getId();
 128  
           }
 129  
 
 130  0
           public void setRaw(Persistent g, Object raw)
 131  
               throws AccessPoemException {
 132  0
             ((Supplier)g).setId((Integer)raw);
 133  0
           }
 134  
         });
 135  
 
 136  0
     defineColumn(col_name =
 137  
         new Column(this, "name",
 138  
                    new StringPoemType(false, -1),
 139  
                    DefinitionSource.dsd) { 
 140  
           public Object getCooked(Persistent g)
 141  
               throws AccessPoemException, PoemException {
 142  0
             return ((Supplier)g).getName();
 143  
           }
 144  
 
 145  
           public void setCooked(Persistent g, Object cooked)
 146  
               throws AccessPoemException, ValidationPoemException {
 147  0
             ((Supplier)g).setName((String)cooked);
 148  0
           }
 149  
 
 150  
           public Field asField(Persistent g) {
 151  0
             return ((Supplier)g).getNameField();
 152  
           }
 153  
 
 154  
           protected DisplayLevel defaultDisplayLevel() {
 155  0
             return DisplayLevel.primary;
 156  
           }
 157  
 
 158  
           protected Searchability defaultSearchability() {
 159  0
             return Searchability.yes;
 160  
           }
 161  
 
 162  
           protected Integer defaultDisplayOrderPriority() {
 163  0
             return new Integer(1);
 164  
           }
 165  
 
 166  
           protected String defaultDisplayName() {
 167  0
             return "Name";
 168  
           }
 169  
 
 170  
           protected int defaultDisplayOrder() {
 171  0
             return 1;
 172  
           }
 173  
 
 174  
           protected boolean defaultUnique() {
 175  0
             return true;
 176  
           }
 177  
 
 178  
           protected int defaultWidth() {
 179  0
             return 20;
 180  
           }
 181  
 
 182  
           public Object getRaw_unsafe(Persistent g)
 183  
               throws AccessPoemException {
 184  0
             return ((Supplier)g).getName_unsafe();
 185  
           }
 186  
 
 187  
           public void setRaw_unsafe(Persistent g, Object raw)
 188  
               throws AccessPoemException {
 189  0
             ((Supplier)g).setName_unsafe((String)raw);
 190  0
           }
 191  
 
 192  
           public Object getRaw(Persistent g)
 193  
               throws AccessPoemException {
 194  0
             return ((Supplier)g).getName();
 195  
           }
 196  
 
 197  0
           public void setRaw(Persistent g, Object raw)
 198  
               throws AccessPoemException {
 199  0
             ((Supplier)g).setName((String)raw);
 200  0
           }
 201  
         });
 202  
 
 203  0
     defineColumn(col_address =
 204  
         new Column(this, "address",
 205  
                    new StringPoemType(true, -1),
 206  
                    DefinitionSource.dsd) { 
 207  
           public Object getCooked(Persistent g)
 208  
               throws AccessPoemException, PoemException {
 209  0
             return ((Supplier)g).getAddress();
 210  
           }
 211  
 
 212  
           public void setCooked(Persistent g, Object cooked)
 213  
               throws AccessPoemException, ValidationPoemException {
 214  0
             ((Supplier)g).setAddress((String)cooked);
 215  0
           }
 216  
 
 217  
           public Field asField(Persistent g) {
 218  0
             return ((Supplier)g).getAddressField();
 219  
           }
 220  
 
 221  
           protected DisplayLevel defaultDisplayLevel() {
 222  0
             return DisplayLevel.record;
 223  
           }
 224  
 
 225  
           protected Searchability defaultSearchability() {
 226  0
             return Searchability.no;
 227  
           }
 228  
 
 229  
           protected String defaultDisplayName() {
 230  0
             return "Address";
 231  
           }
 232  
 
 233  
           protected int defaultDisplayOrder() {
 234  0
             return 2;
 235  
           }
 236  
 
 237  
           protected int defaultWidth() {
 238  0
             return 20;
 239  
           }
 240  
 
 241  
           protected int defaultHeight() {
 242  0
             return 5;
 243  
           }
 244  
 
 245  
           public Object getRaw_unsafe(Persistent g)
 246  
               throws AccessPoemException {
 247  0
             return ((Supplier)g).getAddress_unsafe();
 248  
           }
 249  
 
 250  
           public void setRaw_unsafe(Persistent g, Object raw)
 251  
               throws AccessPoemException {
 252  0
             ((Supplier)g).setAddress_unsafe((String)raw);
 253  0
           }
 254  
 
 255  
           public Object getRaw(Persistent g)
 256  
               throws AccessPoemException {
 257  0
             return ((Supplier)g).getAddress();
 258  
           }
 259  
 
 260  0
           public void setRaw(Persistent g, Object raw)
 261  
               throws AccessPoemException {
 262  0
             ((Supplier)g).setAddress((String)raw);
 263  0
           }
 264  
         });
 265  
 
 266  0
     defineColumn(col_profile =
 267  
         new Column(this, "profile",
 268  
                    new StringPoemType(true, -1),
 269  
                    DefinitionSource.dsd) { 
 270  
           public Object getCooked(Persistent g)
 271  
               throws AccessPoemException, PoemException {
 272  0
             return ((Supplier)g).getProfile();
 273  
           }
 274  
 
 275  
           public void setCooked(Persistent g, Object cooked)
 276  
               throws AccessPoemException, ValidationPoemException {
 277  0
             ((Supplier)g).setProfile((String)cooked);
 278  0
           }
 279  
 
 280  
           public Field asField(Persistent g) {
 281  0
             return ((Supplier)g).getProfileField();
 282  
           }
 283  
 
 284  
           protected DisplayLevel defaultDisplayLevel() {
 285  0
             return DisplayLevel.record;
 286  
           }
 287  
 
 288  
           protected Searchability defaultSearchability() {
 289  0
             return Searchability.no;
 290  
           }
 291  
 
 292  
           protected String defaultDisplayName() {
 293  0
             return "Profile";
 294  
           }
 295  
 
 296  
           protected int defaultDisplayOrder() {
 297  0
             return 3;
 298  
           }
 299  
 
 300  
           protected int defaultWidth() {
 301  0
             return 20;
 302  
           }
 303  
 
 304  
           protected int defaultHeight() {
 305  0
             return 5;
 306  
           }
 307  
 
 308  
           public Object getRaw_unsafe(Persistent g)
 309  
               throws AccessPoemException {
 310  0
             return ((Supplier)g).getProfile_unsafe();
 311  
           }
 312  
 
 313  
           public void setRaw_unsafe(Persistent g, Object raw)
 314  
               throws AccessPoemException {
 315  0
             ((Supplier)g).setProfile_unsafe((String)raw);
 316  0
           }
 317  
 
 318  
           public Object getRaw(Persistent g)
 319  
               throws AccessPoemException {
 320  0
             return ((Supplier)g).getProfile();
 321  
           }
 322  
 
 323  0
           public void setRaw(Persistent g, Object raw)
 324  
               throws AccessPoemException {
 325  0
             ((Supplier)g).setProfile((String)raw);
 326  0
           }
 327  
         });
 328  
 
 329  0
     defineColumn(col_contact =
 330  
         new Column(this, "contact",
 331  
                    new StringPoemType(true, -1),
 332  
                    DefinitionSource.dsd) { 
 333  
           public Object getCooked(Persistent g)
 334  
               throws AccessPoemException, PoemException {
 335  0
             return ((Supplier)g).getContact();
 336  
           }
 337  
 
 338  
           public void setCooked(Persistent g, Object cooked)
 339  
               throws AccessPoemException, ValidationPoemException {
 340  0
             ((Supplier)g).setContact((String)cooked);
 341  0
           }
 342  
 
 343  
           public Field asField(Persistent g) {
 344  0
             return ((Supplier)g).getContactField();
 345  
           }
 346  
 
 347  
           protected DisplayLevel defaultDisplayLevel() {
 348  0
             return DisplayLevel.summary;
 349  
           }
 350  
 
 351  
           protected Searchability defaultSearchability() {
 352  0
             return Searchability.yes;
 353  
           }
 354  
 
 355  
           protected String defaultDisplayName() {
 356  0
             return "Contact Name";
 357  
           }
 358  
 
 359  
           protected int defaultDisplayOrder() {
 360  0
             return 4;
 361  
           }
 362  
 
 363  
           protected int defaultWidth() {
 364  0
             return 20;
 365  
           }
 366  
 
 367  
           public Object getRaw_unsafe(Persistent g)
 368  
               throws AccessPoemException {
 369  0
             return ((Supplier)g).getContact_unsafe();
 370  
           }
 371  
 
 372  
           public void setRaw_unsafe(Persistent g, Object raw)
 373  
               throws AccessPoemException {
 374  0
             ((Supplier)g).setContact_unsafe((String)raw);
 375  0
           }
 376  
 
 377  
           public Object getRaw(Persistent g)
 378  
               throws AccessPoemException {
 379  0
             return ((Supplier)g).getContact();
 380  
           }
 381  
 
 382  0
           public void setRaw(Persistent g, Object raw)
 383  
               throws AccessPoemException {
 384  0
             ((Supplier)g).setContact((String)raw);
 385  0
           }
 386  
         });
 387  
 
 388  0
     defineColumn(col_email =
 389  
         new Column(this, "email",
 390  
                    new StringPoemType(false, -1),
 391  
                    DefinitionSource.dsd) { 
 392  
           public Object getCooked(Persistent g)
 393  
               throws AccessPoemException, PoemException {
 394  0
             return ((Supplier)g).getEmail();
 395  
           }
 396  
 
 397  
           public void setCooked(Persistent g, Object cooked)
 398  
               throws AccessPoemException, ValidationPoemException {
 399  0
             ((Supplier)g).setEmail((String)cooked);
 400  0
           }
 401  
 
 402  
           public Field asField(Persistent g) {
 403  0
             return ((Supplier)g).getEmailField();
 404  
           }
 405  
 
 406  
           protected DisplayLevel defaultDisplayLevel() {
 407  0
             return DisplayLevel.record;
 408  
           }
 409  
 
 410  
           protected Searchability defaultSearchability() {
 411  0
             return Searchability.no;
 412  
           }
 413  
 
 414  
           protected int defaultDisplayOrder() {
 415  0
             return 5;
 416  
           }
 417  
 
 418  
           protected String defaultDescription() {
 419  0
             return "email";
 420  
           }
 421  
 
 422  
           protected int defaultWidth() {
 423  0
             return 40;
 424  
           }
 425  
 
 426  
           public Object getRaw_unsafe(Persistent g)
 427  
               throws AccessPoemException {
 428  0
             return ((Supplier)g).getEmail_unsafe();
 429  
           }
 430  
 
 431  
           public void setRaw_unsafe(Persistent g, Object raw)
 432  
               throws AccessPoemException {
 433  0
             ((Supplier)g).setEmail_unsafe((String)raw);
 434  0
           }
 435  
 
 436  
           public Object getRaw(Persistent g)
 437  
               throws AccessPoemException {
 438  0
             return ((Supplier)g).getEmail();
 439  
           }
 440  
 
 441  0
           public void setRaw(Persistent g, Object raw)
 442  
               throws AccessPoemException {
 443  0
             ((Supplier)g).setEmail((String)raw);
 444  0
           }
 445  
         });
 446  
 
 447  0
     defineColumn(col_website =
 448  
         new Column(this, "website",
 449  
                    new StringPoemType(true, -1),
 450  
                    DefinitionSource.dsd) { 
 451  
           public Object getCooked(Persistent g)
 452  
               throws AccessPoemException, PoemException {
 453  0
             return ((Supplier)g).getWebsite();
 454  
           }
 455  
 
 456  
           public void setCooked(Persistent g, Object cooked)
 457  
               throws AccessPoemException, ValidationPoemException {
 458  0
             ((Supplier)g).setWebsite((String)cooked);
 459  0
           }
 460  
 
 461  
           public Field asField(Persistent g) {
 462  0
             return ((Supplier)g).getWebsiteField();
 463  
           }
 464  
 
 465  
           protected DisplayLevel defaultDisplayLevel() {
 466  0
             return DisplayLevel.record;
 467  
           }
 468  
 
 469  
           protected Searchability defaultSearchability() {
 470  0
             return Searchability.no;
 471  
           }
 472  
 
 473  
           protected int defaultDisplayOrder() {
 474  0
             return 6;
 475  
           }
 476  
 
 477  
           protected String defaultDescription() {
 478  0
             return "website";
 479  
           }
 480  
 
 481  
           protected int defaultWidth() {
 482  0
             return 40;
 483  
           }
 484  
 
 485  
           public Object getRaw_unsafe(Persistent g)
 486  
               throws AccessPoemException {
 487  0
             return ((Supplier)g).getWebsite_unsafe();
 488  
           }
 489  
 
 490  
           public void setRaw_unsafe(Persistent g, Object raw)
 491  
               throws AccessPoemException {
 492  0
             ((Supplier)g).setWebsite_unsafe((String)raw);
 493  0
           }
 494  
 
 495  
           public Object getRaw(Persistent g)
 496  
               throws AccessPoemException {
 497  0
             return ((Supplier)g).getWebsite();
 498  
           }
 499  
 
 500  0
           public void setRaw(Persistent g, Object raw)
 501  
               throws AccessPoemException {
 502  0
             ((Supplier)g).setWebsite((String)raw);
 503  0
           }
 504  
         });
 505  
 
 506  0
     defineColumn(col_comment =
 507  
         new Column(this, "comment",
 508  
                    new StringPoemType(true, -1),
 509  
                    DefinitionSource.dsd) { 
 510  
           public Object getCooked(Persistent g)
 511  
               throws AccessPoemException, PoemException {
 512  0
             return ((Supplier)g).getComment();
 513  
           }
 514  
 
 515  
           public void setCooked(Persistent g, Object cooked)
 516  
               throws AccessPoemException, ValidationPoemException {
 517  0
             ((Supplier)g).setComment((String)cooked);
 518  0
           }
 519  
 
 520  
           public Field asField(Persistent g) {
 521  0
             return ((Supplier)g).getCommentField();
 522  
           }
 523  
 
 524  
           protected DisplayLevel defaultDisplayLevel() {
 525  0
             return DisplayLevel.record;
 526  
           }
 527  
 
 528  
           protected Searchability defaultSearchability() {
 529  0
             return Searchability.no;
 530  
           }
 531  
 
 532  
           protected int defaultDisplayOrder() {
 533  0
             return 7;
 534  
           }
 535  
 
 536  
           protected String defaultDescription() {
 537  0
             return "Comments";
 538  
           }
 539  
 
 540  
           protected int defaultWidth() {
 541  0
             return 40;
 542  
           }
 543  
 
 544  
           protected int defaultHeight() {
 545  0
             return 10;
 546  
           }
 547  
 
 548  
           public Object getRaw_unsafe(Persistent g)
 549  
               throws AccessPoemException {
 550  0
             return ((Supplier)g).getComment_unsafe();
 551  
           }
 552  
 
 553  
           public void setRaw_unsafe(Persistent g, Object raw)
 554  
               throws AccessPoemException {
 555  0
             ((Supplier)g).setComment_unsafe((String)raw);
 556  0
           }
 557  
 
 558  
           public Object getRaw(Persistent g)
 559  
               throws AccessPoemException {
 560  0
             return ((Supplier)g).getComment();
 561  
           }
 562  
 
 563  0
           public void setRaw(Persistent g, Object raw)
 564  
               throws AccessPoemException {
 565  0
             ((Supplier)g).setComment((String)raw);
 566  0
           }
 567  
         });
 568  
 
 569  0
     defineColumn(col_minimumamount =
 570  
         new Column(this, "minimumamount",
 571  
                    new DoublePoemType(true),
 572  
                    DefinitionSource.dsd) { 
 573  
           public Object getCooked(Persistent g)
 574  
               throws AccessPoemException, PoemException {
 575  0
             return ((Supplier)g).getMinimumamount();
 576  
           }
 577  
 
 578  
           public void setCooked(Persistent g, Object cooked)
 579  
               throws AccessPoemException, ValidationPoemException {
 580  0
             ((Supplier)g).setMinimumamount((Double)cooked);
 581  0
           }
 582  
 
 583  
           public Field asField(Persistent g) {
 584  0
             return ((Supplier)g).getMinimumamountField();
 585  
           }
 586  
 
 587  
           protected DisplayLevel defaultDisplayLevel() {
 588  0
             return DisplayLevel.detail;
 589  
           }
 590  
 
 591  
           protected Searchability defaultSearchability() {
 592  0
             return Searchability.no;
 593  
           }
 594  
 
 595  
           protected String defaultDisplayName() {
 596  0
             return "The minimum order value for this supplier";
 597  
           }
 598  
 
 599  
           protected int defaultDisplayOrder() {
 600  0
             return 8;
 601  
           }
 602  
 
 603  
           public Object getRaw_unsafe(Persistent g)
 604  
               throws AccessPoemException {
 605  0
             return ((Supplier)g).getMinimumamount_unsafe();
 606  
           }
 607  
 
 608  
           public void setRaw_unsafe(Persistent g, Object raw)
 609  
               throws AccessPoemException {
 610  0
             ((Supplier)g).setMinimumamount_unsafe((Double)raw);
 611  0
           }
 612  
 
 613  
           public Object getRaw(Persistent g)
 614  
               throws AccessPoemException {
 615  0
             return ((Supplier)g).getMinimumamount();
 616  
           }
 617  
 
 618  0
           public void setRaw(Persistent g, Object raw)
 619  
               throws AccessPoemException {
 620  0
             ((Supplier)g).setMinimumamount((Double)raw);
 621  0
           }
 622  
         });
 623  
 
 624  0
     defineColumn(col_tel =
 625  
         new Column(this, "tel",
 626  
                    new StringPoemType(false, -1),
 627  
                    DefinitionSource.dsd) { 
 628  
           public Object getCooked(Persistent g)
 629  
               throws AccessPoemException, PoemException {
 630  0
             return ((Supplier)g).getTel();
 631  
           }
 632  
 
 633  
           public void setCooked(Persistent g, Object cooked)
 634  
               throws AccessPoemException, ValidationPoemException {
 635  0
             ((Supplier)g).setTel((String)cooked);
 636  0
           }
 637  
 
 638  
           public Field asField(Persistent g) {
 639  0
             return ((Supplier)g).getTelField();
 640  
           }
 641  
 
 642  
           protected DisplayLevel defaultDisplayLevel() {
 643  0
             return DisplayLevel.record;
 644  
           }
 645  
 
 646  
           protected String defaultDisplayName() {
 647  0
             return "Telephone";
 648  
           }
 649  
 
 650  
           protected int defaultDisplayOrder() {
 651  0
             return 9;
 652  
           }
 653  
 
 654  
           protected String defaultDescription() {
 655  0
             return "Telephone number";
 656  
           }
 657  
 
 658  
           public Object getRaw_unsafe(Persistent g)
 659  
               throws AccessPoemException {
 660  0
             return ((Supplier)g).getTel_unsafe();
 661  
           }
 662  
 
 663  
           public void setRaw_unsafe(Persistent g, Object raw)
 664  
               throws AccessPoemException {
 665  0
             ((Supplier)g).setTel_unsafe((String)raw);
 666  0
           }
 667  
 
 668  
           public Object getRaw(Persistent g)
 669  
               throws AccessPoemException {
 670  0
             return ((Supplier)g).getTel();
 671  
           }
 672  
 
 673  0
           public void setRaw(Persistent g, Object raw)
 674  
               throws AccessPoemException {
 675  0
             ((Supplier)g).setTel((String)raw);
 676  0
           }
 677  
         });
 678  
 
 679  0
     defineColumn(col_fax =
 680  
         new Column(this, "fax",
 681  
                    new StringPoemType(false, -1),
 682  
                    DefinitionSource.dsd) { 
 683  
           public Object getCooked(Persistent g)
 684  
               throws AccessPoemException, PoemException {
 685  0
             return ((Supplier)g).getFax();
 686  
           }
 687  
 
 688  
           public void setCooked(Persistent g, Object cooked)
 689  
               throws AccessPoemException, ValidationPoemException {
 690  0
             ((Supplier)g).setFax((String)cooked);
 691  0
           }
 692  
 
 693  
           public Field asField(Persistent g) {
 694  0
             return ((Supplier)g).getFaxField();
 695  
           }
 696  
 
 697  
           protected DisplayLevel defaultDisplayLevel() {
 698  0
             return DisplayLevel.detail;
 699  
           }
 700  
 
 701  
           protected String defaultDisplayName() {
 702  0
             return "Fax";
 703  
           }
 704  
 
 705  
           protected int defaultDisplayOrder() {
 706  0
             return 10;
 707  
           }
 708  
 
 709  
           protected String defaultDescription() {
 710  0
             return "Fax number";
 711  
           }
 712  
 
 713  
           public Object getRaw_unsafe(Persistent g)
 714  
               throws AccessPoemException {
 715  0
             return ((Supplier)g).getFax_unsafe();
 716  
           }
 717  
 
 718  
           public void setRaw_unsafe(Persistent g, Object raw)
 719  
               throws AccessPoemException {
 720  0
             ((Supplier)g).setFax_unsafe((String)raw);
 721  0
           }
 722  
 
 723  
           public Object getRaw(Persistent g)
 724  
               throws AccessPoemException {
 725  0
             return ((Supplier)g).getFax();
 726  
           }
 727  
 
 728  0
           public void setRaw(Persistent g, Object raw)
 729  
               throws AccessPoemException {
 730  0
             ((Supplier)g).setFax((String)raw);
 731  0
           }
 732  
         });
 733  
 
 734  0
     defineColumn(col_minimumorder =
 735  
         new Column(this, "minimumorder",
 736  
                    new DoublePoemType(true),
 737  
                    DefinitionSource.dsd) { 
 738  
           public Object getCooked(Persistent g)
 739  
               throws AccessPoemException, PoemException {
 740  0
             return ((Supplier)g).getMinimumorder();
 741  
           }
 742  
 
 743  
           public void setCooked(Persistent g, Object cooked)
 744  
               throws AccessPoemException, ValidationPoemException {
 745  0
             ((Supplier)g).setMinimumorder((Double)cooked);
 746  0
           }
 747  
 
 748  
           public Field asField(Persistent g) {
 749  0
             return ((Supplier)g).getMinimumorderField();
 750  
           }
 751  
 
 752  
           protected DisplayLevel defaultDisplayLevel() {
 753  0
             return DisplayLevel.record;
 754  
           }
 755  
 
 756  
           protected Searchability defaultSearchability() {
 757  0
             return Searchability.no;
 758  
           }
 759  
 
 760  
           protected String defaultDisplayName() {
 761  0
             return "Minimum Order Value";
 762  
           }
 763  
 
 764  
           protected int defaultDisplayOrder() {
 765  0
             return 11;
 766  
           }
 767  
 
 768  
           protected String defaultDescription() {
 769  0
             return "The minimum value that can be ordered";
 770  
           }
 771  
 
 772  
           public Object getRaw_unsafe(Persistent g)
 773  
               throws AccessPoemException {
 774  0
             return ((Supplier)g).getMinimumorder_unsafe();
 775  
           }
 776  
 
 777  
           public void setRaw_unsafe(Persistent g, Object raw)
 778  
               throws AccessPoemException {
 779  0
             ((Supplier)g).setMinimumorder_unsafe((Double)raw);
 780  0
           }
 781  
 
 782  
           public Object getRaw(Persistent g)
 783  
               throws AccessPoemException {
 784  0
             return ((Supplier)g).getMinimumorder();
 785  
           }
 786  
 
 787  0
           public void setRaw(Persistent g, Object raw)
 788  
               throws AccessPoemException {
 789  0
             ((Supplier)g).setMinimumorder((Double)raw);
 790  0
           }
 791  
         });
 792  
 
 793  0
     defineColumn(col_deleted =
 794  
         new Column(this, "deleted",
 795  
                    new BooleanPoemType(false),
 796  
                    DefinitionSource.dsd) { 
 797  
           public Object getCooked(Persistent g)
 798  
               throws AccessPoemException, PoemException {
 799  0
             return ((Supplier)g).getDeleted();
 800  
           }
 801  
 
 802  
           public void setCooked(Persistent g, Object cooked)
 803  
               throws AccessPoemException, ValidationPoemException {
 804  0
             ((Supplier)g).setDeleted((Boolean)cooked);
 805  0
           }
 806  
 
 807  
           public Field asField(Persistent g) {
 808  0
             return ((Supplier)g).getDeletedField();
 809  
           }
 810  
 
 811  
           protected DisplayLevel defaultDisplayLevel() {
 812  0
             return DisplayLevel.record;
 813  
           }
 814  
 
 815  
           protected Searchability defaultSearchability() {
 816  0
             return Searchability.no;
 817  
           }
 818  
 
 819  
           protected Integer defaultDisplayOrderPriority() {
 820  0
             return new Integer(0);
 821  
           }
 822  
 
 823  
           protected String defaultDisplayName() {
 824  0
             return "Deleted?";
 825  
           }
 826  
 
 827  
           protected int defaultDisplayOrder() {
 828  0
             return 12;
 829  
           }
 830  
 
 831  
           protected String defaultDescription() {
 832  0
             return "Check this box if you no longer deal with this supplier";
 833  
           }
 834  
 
 835  
           public Object getRaw_unsafe(Persistent g)
 836  
               throws AccessPoemException {
 837  0
             return ((Supplier)g).getDeleted_unsafe();
 838  
           }
 839  
 
 840  
           public void setRaw_unsafe(Persistent g, Object raw)
 841  
               throws AccessPoemException {
 842  0
             ((Supplier)g).setDeleted_unsafe((Boolean)raw);
 843  0
           }
 844  
 
 845  
           public Object getRaw(Persistent g)
 846  
               throws AccessPoemException {
 847  0
             return ((Supplier)g).getDeleted();
 848  
           }
 849  
 
 850  0
           public void setRaw(Persistent g, Object raw)
 851  
               throws AccessPoemException {
 852  0
             ((Supplier)g).setDeleted((Boolean)raw);
 853  0
           }
 854  
         });
 855  0
   }
 856  
 
 857  
 
 858  
  /**
 859  
   * Retrieves the <code>Id</code> <code>Column</code> for this 
 860  
   * <code>Supplier</code> <code>Table</code>.
 861  
   * 
 862  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 863  
   * @return the id <code>Column</code>
 864  
   */
 865  
   public final Column getIdColumn() {
 866  0
     return col_id;
 867  
   }
 868  
 
 869  
 
 870  
  /**
 871  
   * Retrieves the <code>Name</code> <code>Column</code> for this 
 872  
   * <code>Supplier</code> <code>Table</code>.
 873  
   * 
 874  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 875  
   * @return the name <code>Column</code>
 876  
   */
 877  
   public final Column getNameColumn() {
 878  0
     return col_name;
 879  
   }
 880  
 
 881  
 
 882  
  /**
 883  
   * Retrieves the <code>Address</code> <code>Column</code> for this 
 884  
   * <code>Supplier</code> <code>Table</code>.
 885  
   * 
 886  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 887  
   * @return the address <code>Column</code>
 888  
   */
 889  
   public final Column getAddressColumn() {
 890  0
     return col_address;
 891  
   }
 892  
 
 893  
 
 894  
  /**
 895  
   * Retrieves the <code>Profile</code> <code>Column</code> for this 
 896  
   * <code>Supplier</code> <code>Table</code>.
 897  
   * 
 898  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 899  
   * @return the profile <code>Column</code>
 900  
   */
 901  
   public final Column getProfileColumn() {
 902  0
     return col_profile;
 903  
   }
 904  
 
 905  
 
 906  
  /**
 907  
   * Retrieves the <code>Contact</code> <code>Column</code> for this 
 908  
   * <code>Supplier</code> <code>Table</code>.
 909  
   * 
 910  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 911  
   * @return the contact <code>Column</code>
 912  
   */
 913  
   public final Column getContactColumn() {
 914  0
     return col_contact;
 915  
   }
 916  
 
 917  
 
 918  
  /**
 919  
   * Retrieves the <code>Email</code> <code>Column</code> for this 
 920  
   * <code>Supplier</code> <code>Table</code>.
 921  
   * 
 922  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 923  
   * @return the email <code>Column</code>
 924  
   */
 925  
   public final Column getEmailColumn() {
 926  0
     return col_email;
 927  
   }
 928  
 
 929  
 
 930  
  /**
 931  
   * Retrieves the <code>Website</code> <code>Column</code> for this 
 932  
   * <code>Supplier</code> <code>Table</code>.
 933  
   * 
 934  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 935  
   * @return the website <code>Column</code>
 936  
   */
 937  
   public final Column getWebsiteColumn() {
 938  0
     return col_website;
 939  
   }
 940  
 
 941  
 
 942  
  /**
 943  
   * Retrieves the <code>Comment</code> <code>Column</code> for this 
 944  
   * <code>Supplier</code> <code>Table</code>.
 945  
   * 
 946  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 947  
   * @return the comment <code>Column</code>
 948  
   */
 949  
   public final Column getCommentColumn() {
 950  0
     return col_comment;
 951  
   }
 952  
 
 953  
 
 954  
  /**
 955  
   * Retrieves the <code>Minimumamount</code> <code>Column</code> for this 
 956  
   * <code>Supplier</code> <code>Table</code>.
 957  
   * 
 958  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 959  
   * @return the minimumamount <code>Column</code>
 960  
   */
 961  
   public final Column getMinimumamountColumn() {
 962  0
     return col_minimumamount;
 963  
   }
 964  
 
 965  
 
 966  
  /**
 967  
   * Retrieves the <code>Tel</code> <code>Column</code> for this 
 968  
   * <code>Supplier</code> <code>Table</code>.
 969  
   * 
 970  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 971  
   * @return the tel <code>Column</code>
 972  
   */
 973  
   public final Column getTelColumn() {
 974  0
     return col_tel;
 975  
   }
 976  
 
 977  
 
 978  
  /**
 979  
   * Retrieves the <code>Fax</code> <code>Column</code> for this 
 980  
   * <code>Supplier</code> <code>Table</code>.
 981  
   * 
 982  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 983  
   * @return the fax <code>Column</code>
 984  
   */
 985  
   public final Column getFaxColumn() {
 986  0
     return col_fax;
 987  
   }
 988  
 
 989  
 
 990  
  /**
 991  
   * Retrieves the <code>Minimumorder</code> <code>Column</code> for this 
 992  
   * <code>Supplier</code> <code>Table</code>.
 993  
   * 
 994  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 995  
   * @return the minimumorder <code>Column</code>
 996  
   */
 997  
   public final Column getMinimumorderColumn() {
 998  0
     return col_minimumorder;
 999  
   }
 1000  
 
 1001  
 
 1002  
  /**
 1003  
   * Retrieves the <code>Deleted</code> <code>Column</code> for this 
 1004  
   * <code>Supplier</code> <code>Table</code>.
 1005  
   * 
 1006  
   * @generator org.melati.poem.prepro.FieldDef#generateColAccessor 
 1007  
   * @return the deleted <code>Column</code>
 1008  
   */
 1009  
   public final Column getDeletedColumn() {
 1010  0
     return col_deleted;
 1011  
   }
 1012  
 
 1013  
 
 1014  
  /**
 1015  
   * Retrieve the <code>Supplier</code> as a <code>Supplier</code>.
 1016  
   *
 1017  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 1018  
   * @param troid a Table Row Oject ID
 1019  
   * @return the <code>Persistent</code> identified by the <code>troid</code>
 1020  
   */
 1021  
   public Supplier getSupplierObject(Integer troid) {
 1022  0
     return (Supplier)getObject(troid);
 1023  
   }
 1024  
 
 1025  
 
 1026  
  /**
 1027  
   * Retrieve the <code>Supplier</code> 
 1028  
   * as a <code>Supplier</code>.
 1029  
   *
 1030  
   * @generator org.melati.poem.prepro.TableDef#generateTableBaseJava 
 1031  
   * @param troid a Table Row Object ID
 1032  
   * @return the <code>Persistent</code> identified   */
 1033  
   public Supplier getSupplierObject(int troid) {
 1034  0
     return (Supplier)getObject(troid);
 1035  
   }
 1036  
 
 1037  
   protected JdbcPersistent _newPersistent() {
 1038  0
     return new Supplier();
 1039  
   }
 1040  
   protected String defaultDisplayName() {
 1041  0
     return "Supplier";
 1042  
   }
 1043  
 
 1044  
   protected String defaultDescription() {
 1045  0
     return "Supplier";
 1046  
   }
 1047  
 
 1048  
   protected boolean defaultRememberAllTroids() {
 1049  0
     return true;
 1050  
   }
 1051  
 
 1052  
   protected String defaultCategory() {
 1053  0
     return "Data";
 1054  
   }
 1055  
 
 1056  
   protected int defaultDisplayOrder() {
 1057  0
     return 20;
 1058  
   }
 1059  
 }
 1060