Coverage Report - org.melati.poem.generated.ValueInfoTableBase
 
Classes in this File Line Coverage Branch Coverage Complexity
ValueInfoTableBase
91%
44/48
N/A
1
ValueInfoTableBase$1
68%
11/16
N/A
1
ValueInfoTableBase$10
70%
12/17
N/A
1
ValueInfoTableBase$11
68%
11/16
N/A
1
ValueInfoTableBase$12
62%
10/16
N/A
1
ValueInfoTableBase$13
62%
10/16
N/A
1
ValueInfoTableBase$2
68%
11/16
N/A
1
ValueInfoTableBase$3
68%
11/16
N/A
1
ValueInfoTableBase$4
70%
12/17
N/A
1
ValueInfoTableBase$5
68%
11/16
N/A
1
ValueInfoTableBase$6
68%
11/16
N/A
1
ValueInfoTableBase$7
68%
11/16
N/A
1
ValueInfoTableBase$8
68%
11/16
N/A
1
ValueInfoTableBase$9
70%
12/17
N/A
1
 
 1  
 // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
 2  
 
 3  
 package org.melati.poem.generated;
 4  
 
 5  
 
 6  
 import org.melati.poem.AccessPoemException;
 7  
 import org.melati.poem.BooleanPoemType;
 8  
 import org.melati.poem.Column;
 9  
 import org.melati.poem.ColumnTypePoemType;
 10  
 import org.melati.poem.Database;
 11  
 import org.melati.poem.DefinitionSource;
 12  
 import org.melati.poem.DisplayLevel;
 13  
 import org.melati.poem.Field;
 14  
 import org.melati.poem.IntegerPoemType;
 15  
 import org.melati.poem.Persistent;
 16  
 import org.melati.poem.PoemDatabaseTables;
 17  
 import org.melati.poem.PoemException;
 18  
 import org.melati.poem.PoemTable;
 19  
 import org.melati.poem.PoemTypeFactory;
 20  
 import org.melati.poem.Searchability;
 21  
 import org.melati.poem.StringPoemType;
 22  
 import org.melati.poem.ValidationPoemException;
 23  
 import org.melati.poem.ValueInfo;
 24  
 
 25  
 
 26  
 /**
 27  
  * Melati POEM generated base class for <code>Table</code> <code>ValueInfo</code>.
 28  
  *
 29  
  * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 30  
  */
 31  
 
 32  
 public class ValueInfoTableBase<T extends ValueInfo> extends PoemTable<T> {
 33  
 
 34  128
   private Column<String> col_displayname = null;
 35  128
   private Column<String> col_description = null;
 36  128
   private Column<Boolean> col_usereditable = null;
 37  128
   private Column<Integer> col_typefactory = null;
 38  128
   private Column<Boolean> col_nullable = null;
 39  128
   private Column<Integer> col_size = null;
 40  128
   private Column<Integer> col_width = null;
 41  128
   private Column<Integer> col_height = null;
 42  128
   private Column<Integer> col_precision = null;
 43  128
   private Column<Integer> col_scale = null;
 44  128
   private Column<String> col_renderinfo = null;
 45  128
   private Column<String> col_rangelow_string = null;
 46  128
   private Column<String> col_rangelimit_string = null;
 47  
 
 48  
  /**
 49  
   * Constructor. 
 50  
   * 
 51  
   * See 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 ValueInfoTableBase(
 59  
       Database database, String name,
 60  
       DefinitionSource definitionSource) throws PoemException {
 61  128
     super(database, name, definitionSource);
 62  128
   }
 63  
 
 64  
 
 65  
  /**
 66  
   * Get the database tables.
 67  
   *
 68  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 69  
   * @return the database tables
 70  
   */
 71  
   public PoemDatabaseTables getPoemDatabaseTables() {
 72  0
     return (PoemDatabaseTables)getDatabase();
 73  
   }
 74  
 
 75  
 
 76  
  /**
 77  
   * Initialise this table by defining its columns.
 78  
   *
 79  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 80  
   */
 81  
   public void init() throws PoemException {
 82  82
     super.init();
 83  82
     defineColumn(col_displayname =
 84  
         new Column<String>(this, "displayname",
 85  
                    new StringPoemType(false, 60),
 86  82
                    DefinitionSource.dsd) { 
 87  
           public Object getCooked(Persistent g)
 88  
               throws AccessPoemException, PoemException {
 89  0
             return ((ValueInfo)g).getDisplayname();
 90  
           }
 91  
 
 92  
           public void setCooked(Persistent g, Object cooked)
 93  
               throws AccessPoemException, ValidationPoemException {
 94  0
             ((ValueInfo)g).setDisplayname((String)cooked);
 95  0
           }
 96  
 
 97  
           public Field<String> asField(Persistent g) {
 98  4
             return ((ValueInfo)g).getDisplaynameField();
 99  
           }
 100  
 
 101  
           public DisplayLevel defaultDisplayLevel() {
 102  160
             return DisplayLevel.primary;
 103  
           }
 104  
 
 105  
           public Integer defaultDisplayOrderPriority() {
 106  80
             return new Integer(2);
 107  
           }
 108  
 
 109  
           public String defaultDisplayName() {
 110  80
             return "Display name";
 111  
           }
 112  
 
 113  
           public int defaultDisplayOrder() {
 114  80
             return 100;
 115  
           }
 116  
 
 117  
           public String defaultDescription() {
 118  80
             return "A user-friendly name for the field";
 119  
           }
 120  
 
 121  
           public Object getRaw_unsafe(Persistent g)
 122  
               throws AccessPoemException {
 123  9674
             return ((ValueInfo)g).getDisplayname_unsafe();
 124  
           }
 125  
 
 126  
           public void setRaw_unsafe(Persistent g, Object raw)
 127  
               throws AccessPoemException {
 128  499
             ((ValueInfo)g).setDisplayname_unsafe((String)raw);
 129  499
           }
 130  
 
 131  
           public Object getRaw(Persistent g)
 132  
               throws AccessPoemException {
 133  4
             return ((ValueInfo)g).getDisplayname();
 134  
           }
 135  
 
 136  
           public void setRaw(Persistent g, Object raw)
 137  
               throws AccessPoemException {
 138  0
             ((ValueInfo)g).setDisplayname((String)raw);
 139  0
           }
 140  
         });
 141  
 
 142  82
     defineColumn(col_description =
 143  
         new Column<String>(this, "description",
 144  
                    new StringPoemType(true, -1),
 145  82
                    DefinitionSource.dsd) { 
 146  
           public Object getCooked(Persistent g)
 147  
               throws AccessPoemException, PoemException {
 148  0
             return ((ValueInfo)g).getDescription();
 149  
           }
 150  
 
 151  
           public void setCooked(Persistent g, Object cooked)
 152  
               throws AccessPoemException, ValidationPoemException {
 153  0
             ((ValueInfo)g).setDescription((String)cooked);
 154  0
           }
 155  
 
 156  
           public Field<String> asField(Persistent g) {
 157  4
             return ((ValueInfo)g).getDescriptionField();
 158  
           }
 159  
 
 160  
           public DisplayLevel defaultDisplayLevel() {
 161  160
             return DisplayLevel.record;
 162  
           }
 163  
 
 164  
           public Searchability defaultSearchability() {
 165  160
             return Searchability.no;
 166  
           }
 167  
 
 168  
           public int defaultDisplayOrder() {
 169  80
             return 101;
 170  
           }
 171  
 
 172  
           public String defaultDescription() {
 173  80
             return "A brief description of the field's function";
 174  
           }
 175  
 
 176  
           public int defaultWidth() {
 177  80
             return 50;
 178  
           }
 179  
 
 180  
           public Object getRaw_unsafe(Persistent g)
 181  
               throws AccessPoemException {
 182  9674
             return ((ValueInfo)g).getDescription_unsafe();
 183  
           }
 184  
 
 185  
           public void setRaw_unsafe(Persistent g, Object raw)
 186  
               throws AccessPoemException {
 187  499
             ((ValueInfo)g).setDescription_unsafe((String)raw);
 188  499
           }
 189  
 
 190  
           public Object getRaw(Persistent g)
 191  
               throws AccessPoemException {
 192  4
             return ((ValueInfo)g).getDescription();
 193  
           }
 194  
 
 195  
           public void setRaw(Persistent g, Object raw)
 196  
               throws AccessPoemException {
 197  0
             ((ValueInfo)g).setDescription((String)raw);
 198  0
           }
 199  
         });
 200  
 
 201  82
     defineColumn(col_usereditable =
 202  
         new Column<Boolean>(this, "usereditable",
 203  
                    new BooleanPoemType(false),
 204  82
                    DefinitionSource.dsd) { 
 205  
           public Object getCooked(Persistent g)
 206  
               throws AccessPoemException, PoemException {
 207  0
             return ((ValueInfo)g).getUsereditable();
 208  
           }
 209  
 
 210  
           public void setCooked(Persistent g, Object cooked)
 211  
               throws AccessPoemException, ValidationPoemException {
 212  0
             ((ValueInfo)g).setUsereditable((Boolean)cooked);
 213  0
           }
 214  
 
 215  
           public Field<Boolean> asField(Persistent g) {
 216  2
             return ((ValueInfo)g).getUsereditableField();
 217  
           }
 218  
 
 219  
           public DisplayLevel defaultDisplayLevel() {
 220  160
             return DisplayLevel.detail;
 221  
           }
 222  
 
 223  
           public Searchability defaultSearchability() {
 224  160
             return Searchability.no;
 225  
           }
 226  
 
 227  
           public String defaultDisplayName() {
 228  80
             return "User-editable";
 229  
           }
 230  
 
 231  
           public int defaultDisplayOrder() {
 232  80
             return 200;
 233  
           }
 234  
 
 235  
           public String defaultDescription() {
 236  80
             return "Whether it makes sense for the user to update the field's value";
 237  
           }
 238  
 
 239  
           public Object getRaw_unsafe(Persistent g)
 240  
               throws AccessPoemException {
 241  9674
             return ((ValueInfo)g).getUsereditable_unsafe();
 242  
           }
 243  
 
 244  
           public void setRaw_unsafe(Persistent g, Object raw)
 245  
               throws AccessPoemException {
 246  499
             ((ValueInfo)g).setUsereditable_unsafe((Boolean)raw);
 247  499
           }
 248  
 
 249  
           public Object getRaw(Persistent g)
 250  
               throws AccessPoemException {
 251  2
             return ((ValueInfo)g).getUsereditable();
 252  
           }
 253  
 
 254  
           public void setRaw(Persistent g, Object raw)
 255  
               throws AccessPoemException {
 256  0
             ((ValueInfo)g).setUsereditable((Boolean)raw);
 257  0
           }
 258  
         });
 259  
 
 260  164
     defineColumn(col_typefactory =
 261  
         new Column<Integer>(this, "typefactory",
 262  82
                    new ColumnTypePoemType(getDatabase()),
 263  82
                    DefinitionSource.dsd) { 
 264  
           public Object getCooked(Persistent g)
 265  
               throws AccessPoemException, PoemException {
 266  0
             return ((ValueInfo)g).getTypefactory();
 267  
           }
 268  
 
 269  
           public void setCooked(Persistent g, Object cooked)
 270  
               throws AccessPoemException, ValidationPoemException {
 271  0
             ((ValueInfo)g).setTypefactory((PoemTypeFactory)cooked);
 272  0
           }
 273  
 
 274  
           public Field<Integer> asField(Persistent g) {
 275  2
             return ((ValueInfo)g).getTypefactoryField();
 276  
           }
 277  
 
 278  
           public boolean defaultUserEditable() {
 279  80
             return false;
 280  
           }
 281  
 
 282  
           public DisplayLevel defaultDisplayLevel() {
 283  160
             return DisplayLevel.detail;
 284  
           }
 285  
 
 286  
           public Searchability defaultSearchability() {
 287  160
             return Searchability.no;
 288  
           }
 289  
 
 290  
           public String defaultDisplayName() {
 291  80
             return "Type";
 292  
           }
 293  
 
 294  
           public int defaultDisplayOrder() {
 295  80
             return 201;
 296  
           }
 297  
 
 298  
           public String defaultDescription() {
 299  80
             return "The field's POEM type";
 300  
           }
 301  
 
 302  
           public Object getRaw_unsafe(Persistent g)
 303  
               throws AccessPoemException {
 304  9674
             return ((ValueInfo)g).getTypefactory_unsafe();
 305  
           }
 306  
 
 307  
           public void setRaw_unsafe(Persistent g, Object raw)
 308  
               throws AccessPoemException {
 309  499
             ((ValueInfo)g).setTypefactory_unsafe((Integer)raw);
 310  499
           }
 311  
 
 312  
           public Object getRaw(Persistent g)
 313  
               throws AccessPoemException {
 314  2
             return ((ValueInfo)g).getTypefactoryCode();
 315  
           }
 316  
 
 317  
           public void setRaw(Persistent g, Object raw)
 318  
               throws AccessPoemException {
 319  0
             ((ValueInfo)g).setTypefactoryCode((Integer)raw);
 320  0
           }
 321  
         });
 322  
 
 323  82
     defineColumn(col_nullable =
 324  
         new Column<Boolean>(this, "nullable",
 325  
                    new BooleanPoemType(false),
 326  82
                    DefinitionSource.dsd) { 
 327  
           public Object getCooked(Persistent g)
 328  
               throws AccessPoemException, PoemException {
 329  0
             return ((ValueInfo)g).getNullable();
 330  
           }
 331  
 
 332  
           public void setCooked(Persistent g, Object cooked)
 333  
               throws AccessPoemException, ValidationPoemException {
 334  0
             ((ValueInfo)g).setNullable((Boolean)cooked);
 335  0
           }
 336  
 
 337  
           public Field<Boolean> asField(Persistent g) {
 338  2
             return ((ValueInfo)g).getNullableField();
 339  
           }
 340  
 
 341  
           public boolean defaultUserEditable() {
 342  80
             return false;
 343  
           }
 344  
 
 345  
           public DisplayLevel defaultDisplayLevel() {
 346  160
             return DisplayLevel.detail;
 347  
           }
 348  
 
 349  
           public Searchability defaultSearchability() {
 350  160
             return Searchability.no;
 351  
           }
 352  
 
 353  
           public int defaultDisplayOrder() {
 354  80
             return 202;
 355  
           }
 356  
 
 357  
           public String defaultDescription() {
 358  80
             return "Whether the field can be empty";
 359  
           }
 360  
 
 361  
           public Object getRaw_unsafe(Persistent g)
 362  
               throws AccessPoemException {
 363  9674
             return ((ValueInfo)g).getNullable_unsafe();
 364  
           }
 365  
 
 366  
           public void setRaw_unsafe(Persistent g, Object raw)
 367  
               throws AccessPoemException {
 368  499
             ((ValueInfo)g).setNullable_unsafe((Boolean)raw);
 369  499
           }
 370  
 
 371  
           public Object getRaw(Persistent g)
 372  
               throws AccessPoemException {
 373  2
             return ((ValueInfo)g).getNullable();
 374  
           }
 375  
 
 376  
           public void setRaw(Persistent g, Object raw)
 377  
               throws AccessPoemException {
 378  0
             ((ValueInfo)g).setNullable((Boolean)raw);
 379  0
           }
 380  
         });
 381  
 
 382  82
     defineColumn(col_size =
 383  
         new Column<Integer>(this, "size",
 384  
                    new IntegerPoemType(false),
 385  82
                    DefinitionSource.dsd) { 
 386  
           public Object getCooked(Persistent g)
 387  
               throws AccessPoemException, PoemException {
 388  0
             return ((ValueInfo)g).getSize();
 389  
           }
 390  
 
 391  
           public void setCooked(Persistent g, Object cooked)
 392  
               throws AccessPoemException, ValidationPoemException {
 393  0
             ((ValueInfo)g).setSize((Integer)cooked);
 394  0
           }
 395  
 
 396  
           public Field<Integer> asField(Persistent g) {
 397  4
             return ((ValueInfo)g).getSizeField();
 398  
           }
 399  
 
 400  
           public boolean defaultUserEditable() {
 401  80
             return false;
 402  
           }
 403  
 
 404  
           public DisplayLevel defaultDisplayLevel() {
 405  160
             return DisplayLevel.record;
 406  
           }
 407  
 
 408  
           public Searchability defaultSearchability() {
 409  160
             return Searchability.no;
 410  
           }
 411  
 
 412  
           public int defaultDisplayOrder() {
 413  80
             return 203;
 414  
           }
 415  
 
 416  
           public String defaultDescription() {
 417  80
             return "For character fields, the maximum number of characters that can be stored, (-1 for unlimited)";
 418  
           }
 419  
 
 420  
           public Object getRaw_unsafe(Persistent g)
 421  
               throws AccessPoemException {
 422  9674
             return ((ValueInfo)g).getSize_unsafe();
 423  
           }
 424  
 
 425  
           public void setRaw_unsafe(Persistent g, Object raw)
 426  
               throws AccessPoemException {
 427  499
             ((ValueInfo)g).setSize_unsafe((Integer)raw);
 428  499
           }
 429  
 
 430  
           public Object getRaw(Persistent g)
 431  
               throws AccessPoemException {
 432  4
             return ((ValueInfo)g).getSize();
 433  
           }
 434  
 
 435  
           public void setRaw(Persistent g, Object raw)
 436  
               throws AccessPoemException {
 437  0
             ((ValueInfo)g).setSize((Integer)raw);
 438  0
           }
 439  
         });
 440  
 
 441  82
     defineColumn(col_width =
 442  
         new Column<Integer>(this, "width",
 443  
                    new IntegerPoemType(false),
 444  82
                    DefinitionSource.dsd) { 
 445  
           public Object getCooked(Persistent g)
 446  
               throws AccessPoemException, PoemException {
 447  0
             return ((ValueInfo)g).getWidth();
 448  
           }
 449  
 
 450  
           public void setCooked(Persistent g, Object cooked)
 451  
               throws AccessPoemException, ValidationPoemException {
 452  0
             ((ValueInfo)g).setWidth((Integer)cooked);
 453  0
           }
 454  
 
 455  
           public Field<Integer> asField(Persistent g) {
 456  4
             return ((ValueInfo)g).getWidthField();
 457  
           }
 458  
 
 459  
           public DisplayLevel defaultDisplayLevel() {
 460  160
             return DisplayLevel.record;
 461  
           }
 462  
 
 463  
           public Searchability defaultSearchability() {
 464  160
             return Searchability.no;
 465  
           }
 466  
 
 467  
           public String defaultDisplayName() {
 468  80
             return "Input-box width";
 469  
           }
 470  
 
 471  
           public int defaultDisplayOrder() {
 472  80
             return 204;
 473  
           }
 474  
 
 475  
           public String defaultDescription() {
 476  80
             return "A sensible width for text boxes used for entering the field, where appropriate";
 477  
           }
 478  
 
 479  
           public Object getRaw_unsafe(Persistent g)
 480  
               throws AccessPoemException {
 481  9674
             return ((ValueInfo)g).getWidth_unsafe();
 482  
           }
 483  
 
 484  
           public void setRaw_unsafe(Persistent g, Object raw)
 485  
               throws AccessPoemException {
 486  499
             ((ValueInfo)g).setWidth_unsafe((Integer)raw);
 487  499
           }
 488  
 
 489  
           public Object getRaw(Persistent g)
 490  
               throws AccessPoemException {
 491  4
             return ((ValueInfo)g).getWidth();
 492  
           }
 493  
 
 494  
           public void setRaw(Persistent g, Object raw)
 495  
               throws AccessPoemException {
 496  0
             ((ValueInfo)g).setWidth((Integer)raw);
 497  0
           }
 498  
         });
 499  
 
 500  82
     defineColumn(col_height =
 501  
         new Column<Integer>(this, "height",
 502  
                    new IntegerPoemType(false),
 503  82
                    DefinitionSource.dsd) { 
 504  
           public Object getCooked(Persistent g)
 505  
               throws AccessPoemException, PoemException {
 506  0
             return ((ValueInfo)g).getHeight();
 507  
           }
 508  
 
 509  
           public void setCooked(Persistent g, Object cooked)
 510  
               throws AccessPoemException, ValidationPoemException {
 511  0
             ((ValueInfo)g).setHeight((Integer)cooked);
 512  0
           }
 513  
 
 514  
           public Field<Integer> asField(Persistent g) {
 515  4
             return ((ValueInfo)g).getHeightField();
 516  
           }
 517  
 
 518  
           public DisplayLevel defaultDisplayLevel() {
 519  160
             return DisplayLevel.record;
 520  
           }
 521  
 
 522  
           public Searchability defaultSearchability() {
 523  160
             return Searchability.no;
 524  
           }
 525  
 
 526  
           public String defaultDisplayName() {
 527  80
             return "Input-box height";
 528  
           }
 529  
 
 530  
           public int defaultDisplayOrder() {
 531  80
             return 205;
 532  
           }
 533  
 
 534  
           public String defaultDescription() {
 535  80
             return "A sensible height for text boxes used for entering the field, where appropriate";
 536  
           }
 537  
 
 538  
           public Object getRaw_unsafe(Persistent g)
 539  
               throws AccessPoemException {
 540  9674
             return ((ValueInfo)g).getHeight_unsafe();
 541  
           }
 542  
 
 543  
           public void setRaw_unsafe(Persistent g, Object raw)
 544  
               throws AccessPoemException {
 545  499
             ((ValueInfo)g).setHeight_unsafe((Integer)raw);
 546  499
           }
 547  
 
 548  
           public Object getRaw(Persistent g)
 549  
               throws AccessPoemException {
 550  4
             return ((ValueInfo)g).getHeight();
 551  
           }
 552  
 
 553  
           public void setRaw(Persistent g, Object raw)
 554  
               throws AccessPoemException {
 555  0
             ((ValueInfo)g).setHeight((Integer)raw);
 556  0
           }
 557  
         });
 558  
 
 559  82
     defineColumn(col_precision =
 560  
         new Column<Integer>(this, "precision",
 561  
                    new IntegerPoemType(false),
 562  82
                    DefinitionSource.dsd) { 
 563  
           public Object getCooked(Persistent g)
 564  
               throws AccessPoemException, PoemException {
 565  0
             return ((ValueInfo)g).getPrecision();
 566  
           }
 567  
 
 568  
           public void setCooked(Persistent g, Object cooked)
 569  
               throws AccessPoemException, ValidationPoemException {
 570  0
             ((ValueInfo)g).setPrecision((Integer)cooked);
 571  0
           }
 572  
 
 573  
           public Field<Integer> asField(Persistent g) {
 574  4
             return ((ValueInfo)g).getPrecisionField();
 575  
           }
 576  
 
 577  
           public boolean defaultUserEditable() {
 578  80
             return false;
 579  
           }
 580  
 
 581  
           public DisplayLevel defaultDisplayLevel() {
 582  160
             return DisplayLevel.record;
 583  
           }
 584  
 
 585  
           public Searchability defaultSearchability() {
 586  160
             return Searchability.no;
 587  
           }
 588  
 
 589  
           public String defaultDisplayName() {
 590  80
             return "Precision";
 591  
           }
 592  
 
 593  
           public int defaultDisplayOrder() {
 594  80
             return 206;
 595  
           }
 596  
 
 597  
           public String defaultDescription() {
 598  80
             return "Precision (total number of digits) for fixed-point numbers";
 599  
           }
 600  
 
 601  
           public Object getRaw_unsafe(Persistent g)
 602  
               throws AccessPoemException {
 603  9674
             return ((ValueInfo)g).getPrecision_unsafe();
 604  
           }
 605  
 
 606  
           public void setRaw_unsafe(Persistent g, Object raw)
 607  
               throws AccessPoemException {
 608  499
             ((ValueInfo)g).setPrecision_unsafe((Integer)raw);
 609  499
           }
 610  
 
 611  
           public Object getRaw(Persistent g)
 612  
               throws AccessPoemException {
 613  4
             return ((ValueInfo)g).getPrecision();
 614  
           }
 615  
 
 616  
           public void setRaw(Persistent g, Object raw)
 617  
               throws AccessPoemException {
 618  0
             ((ValueInfo)g).setPrecision((Integer)raw);
 619  0
           }
 620  
         });
 621  
 
 622  82
     defineColumn(col_scale =
 623  
         new Column<Integer>(this, "scale",
 624  
                    new IntegerPoemType(false),
 625  82
                    DefinitionSource.dsd) { 
 626  
           public Object getCooked(Persistent g)
 627  
               throws AccessPoemException, PoemException {
 628  0
             return ((ValueInfo)g).getScale();
 629  
           }
 630  
 
 631  
           public void setCooked(Persistent g, Object cooked)
 632  
               throws AccessPoemException, ValidationPoemException {
 633  0
             ((ValueInfo)g).setScale((Integer)cooked);
 634  0
           }
 635  
 
 636  
           public Field<Integer> asField(Persistent g) {
 637  4
             return ((ValueInfo)g).getScaleField();
 638  
           }
 639  
 
 640  
           public boolean defaultUserEditable() {
 641  80
             return false;
 642  
           }
 643  
 
 644  
           public DisplayLevel defaultDisplayLevel() {
 645  160
             return DisplayLevel.record;
 646  
           }
 647  
 
 648  
           public Searchability defaultSearchability() {
 649  160
             return Searchability.no;
 650  
           }
 651  
 
 652  
           public String defaultDisplayName() {
 653  80
             return "Scale";
 654  
           }
 655  
 
 656  
           public int defaultDisplayOrder() {
 657  80
             return 207;
 658  
           }
 659  
 
 660  
           public String defaultDescription() {
 661  80
             return "Scale (number of digits after the decimal) for fixed-point numbers";
 662  
           }
 663  
 
 664  
           public Object getRaw_unsafe(Persistent g)
 665  
               throws AccessPoemException {
 666  9674
             return ((ValueInfo)g).getScale_unsafe();
 667  
           }
 668  
 
 669  
           public void setRaw_unsafe(Persistent g, Object raw)
 670  
               throws AccessPoemException {
 671  499
             ((ValueInfo)g).setScale_unsafe((Integer)raw);
 672  499
           }
 673  
 
 674  
           public Object getRaw(Persistent g)
 675  
               throws AccessPoemException {
 676  4
             return ((ValueInfo)g).getScale();
 677  
           }
 678  
 
 679  
           public void setRaw(Persistent g, Object raw)
 680  
               throws AccessPoemException {
 681  0
             ((ValueInfo)g).setScale((Integer)raw);
 682  0
           }
 683  
         });
 684  
 
 685  82
     defineColumn(col_renderinfo =
 686  
         new Column<String>(this, "renderinfo",
 687  
                    new StringPoemType(true, -1),
 688  82
                    DefinitionSource.dsd) { 
 689  
           public Object getCooked(Persistent g)
 690  
               throws AccessPoemException, PoemException {
 691  0
             return ((ValueInfo)g).getRenderinfo();
 692  
           }
 693  
 
 694  
           public void setCooked(Persistent g, Object cooked)
 695  
               throws AccessPoemException, ValidationPoemException {
 696  0
             ((ValueInfo)g).setRenderinfo((String)cooked);
 697  0
           }
 698  
 
 699  
           public Field<String> asField(Persistent g) {
 700  4
             return ((ValueInfo)g).getRenderinfoField();
 701  
           }
 702  
 
 703  
           public DisplayLevel defaultDisplayLevel() {
 704  160
             return DisplayLevel.record;
 705  
           }
 706  
 
 707  
           public Searchability defaultSearchability() {
 708  160
             return Searchability.no;
 709  
           }
 710  
 
 711  
           public String defaultDisplayName() {
 712  80
             return "Rendering information";
 713  
           }
 714  
 
 715  
           public int defaultDisplayOrder() {
 716  80
             return 208;
 717  
           }
 718  
 
 719  
           public String defaultDescription() {
 720  80
             return "The name of the Melati templet (if not the default) to use for input controls for the field";
 721  
           }
 722  
 
 723  
           public Object getRaw_unsafe(Persistent g)
 724  
               throws AccessPoemException {
 725  9674
             return ((ValueInfo)g).getRenderinfo_unsafe();
 726  
           }
 727  
 
 728  
           public void setRaw_unsafe(Persistent g, Object raw)
 729  
               throws AccessPoemException {
 730  499
             ((ValueInfo)g).setRenderinfo_unsafe((String)raw);
 731  499
           }
 732  
 
 733  
           public Object getRaw(Persistent g)
 734  
               throws AccessPoemException {
 735  4
             return ((ValueInfo)g).getRenderinfo();
 736  
           }
 737  
 
 738  
           public void setRaw(Persistent g, Object raw)
 739  
               throws AccessPoemException {
 740  0
             ((ValueInfo)g).setRenderinfo((String)raw);
 741  0
           }
 742  
         });
 743  
 
 744  82
     defineColumn(col_rangelow_string =
 745  
         new Column<String>(this, "rangelow_string",
 746  
                    new StringPoemType(true, -1),
 747  82
                    DefinitionSource.dsd) { 
 748  
           public Object getCooked(Persistent g)
 749  
               throws AccessPoemException, PoemException {
 750  0
             return ((ValueInfo)g).getRangelow_string();
 751  
           }
 752  
 
 753  
           public void setCooked(Persistent g, Object cooked)
 754  
               throws AccessPoemException, ValidationPoemException {
 755  0
             ((ValueInfo)g).setRangelow_string((String)cooked);
 756  0
           }
 757  
 
 758  
           public Field<String> asField(Persistent g) {
 759  2
             return ((ValueInfo)g).getRangelow_stringField();
 760  
           }
 761  
 
 762  
           public DisplayLevel defaultDisplayLevel() {
 763  160
             return DisplayLevel.detail;
 764  
           }
 765  
 
 766  
           public Searchability defaultSearchability() {
 767  160
             return Searchability.no;
 768  
           }
 769  
 
 770  
           public String defaultDisplayName() {
 771  80
             return "Range: low";
 772  
           }
 773  
 
 774  
           public int defaultDisplayOrder() {
 775  80
             return 209;
 776  
           }
 777  
 
 778  
           public String defaultDescription() {
 779  80
             return "The low end of the range of permissible values for the field";
 780  
           }
 781  
 
 782  
           public Object getRaw_unsafe(Persistent g)
 783  
               throws AccessPoemException {
 784  9676
             return ((ValueInfo)g).getRangelow_string_unsafe();
 785  
           }
 786  
 
 787  
           public void setRaw_unsafe(Persistent g, Object raw)
 788  
               throws AccessPoemException {
 789  499
             ((ValueInfo)g).setRangelow_string_unsafe((String)raw);
 790  499
           }
 791  
 
 792  
           public Object getRaw(Persistent g)
 793  
               throws AccessPoemException {
 794  0
             return ((ValueInfo)g).getRangelow_string();
 795  
           }
 796  
 
 797  
           public void setRaw(Persistent g, Object raw)
 798  
               throws AccessPoemException {
 799  0
             ((ValueInfo)g).setRangelow_string((String)raw);
 800  0
           }
 801  
         });
 802  
 
 803  82
     defineColumn(col_rangelimit_string =
 804  
         new Column<String>(this, "rangelimit_string",
 805  
                    new StringPoemType(true, -1),
 806  82
                    DefinitionSource.dsd) { 
 807  
           public Object getCooked(Persistent g)
 808  
               throws AccessPoemException, PoemException {
 809  0
             return ((ValueInfo)g).getRangelimit_string();
 810  
           }
 811  
 
 812  
           public void setCooked(Persistent g, Object cooked)
 813  
               throws AccessPoemException, ValidationPoemException {
 814  0
             ((ValueInfo)g).setRangelimit_string((String)cooked);
 815  0
           }
 816  
 
 817  
           public Field<String> asField(Persistent g) {
 818  2
             return ((ValueInfo)g).getRangelimit_stringField();
 819  
           }
 820  
 
 821  
           public DisplayLevel defaultDisplayLevel() {
 822  160
             return DisplayLevel.detail;
 823  
           }
 824  
 
 825  
           public Searchability defaultSearchability() {
 826  160
             return Searchability.no;
 827  
           }
 828  
 
 829  
           public String defaultDisplayName() {
 830  80
             return "Range: limit";
 831  
           }
 832  
 
 833  
           public int defaultDisplayOrder() {
 834  80
             return 210;
 835  
           }
 836  
 
 837  
           public String defaultDescription() {
 838  80
             return "The (exclusive) limit of the range of permissible values for the field";
 839  
           }
 840  
 
 841  
           public Object getRaw_unsafe(Persistent g)
 842  
               throws AccessPoemException {
 843  9676
             return ((ValueInfo)g).getRangelimit_string_unsafe();
 844  
           }
 845  
 
 846  
           public void setRaw_unsafe(Persistent g, Object raw)
 847  
               throws AccessPoemException {
 848  499
             ((ValueInfo)g).setRangelimit_string_unsafe((String)raw);
 849  499
           }
 850  
 
 851  
           public Object getRaw(Persistent g)
 852  
               throws AccessPoemException {
 853  0
             return ((ValueInfo)g).getRangelimit_string();
 854  
           }
 855  
 
 856  
           public void setRaw(Persistent g, Object raw)
 857  
               throws AccessPoemException {
 858  0
             ((ValueInfo)g).setRangelimit_string((String)raw);
 859  0
           }
 860  
         });
 861  82
   }
 862  
 
 863  
 
 864  
  /**
 865  
   * Retrieves the <code>Displayname</code> <code>Column</code> for this 
 866  
   * <code>ValueInfo</code> <code>Table</code>.
 867  
   * 
 868  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 869  
   * @return the displayname <code>Column</code>
 870  
   */
 871  
   public final Column<String> getDisplaynameColumn() {
 872  4830
     return col_displayname;
 873  
   }
 874  
 
 875  
 
 876  
  /**
 877  
   * Retrieves the <code>Description</code> <code>Column</code> for this 
 878  
   * <code>ValueInfo</code> <code>Table</code>.
 879  
   * 
 880  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 881  
   * @return the description <code>Column</code>
 882  
   */
 883  
   public final Column<String> getDescriptionColumn() {
 884  4829
     return col_description;
 885  
   }
 886  
 
 887  
 
 888  
  /**
 889  
   * Retrieves the <code>Usereditable</code> <code>Column</code> for this 
 890  
   * <code>ValueInfo</code> <code>Table</code>.
 891  
   * 
 892  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 893  
   * @return the usereditable <code>Column</code>
 894  
   */
 895  
   public final Column<Boolean> getUsereditableColumn() {
 896  4828
     return col_usereditable;
 897  
   }
 898  
 
 899  
 
 900  
  /**
 901  
   * Retrieves the <code>Typefactory</code> <code>Column</code> for this 
 902  
   * <code>ValueInfo</code> <code>Table</code>.
 903  
   * 
 904  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 905  
   * @return the typefactory <code>Column</code>
 906  
   */
 907  
   public final Column<Integer> getTypefactoryColumn() {
 908  4828
     return col_typefactory;
 909  
   }
 910  
 
 911  
 
 912  
  /**
 913  
   * Retrieves the <code>Nullable</code> <code>Column</code> for this 
 914  
   * <code>ValueInfo</code> <code>Table</code>.
 915  
   * 
 916  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 917  
   * @return the nullable <code>Column</code>
 918  
   */
 919  
   public final Column<Boolean> getNullableColumn() {
 920  4842
     return col_nullable;
 921  
   }
 922  
 
 923  
 
 924  
  /**
 925  
   * Retrieves the <code>Size</code> <code>Column</code> for this 
 926  
   * <code>ValueInfo</code> <code>Table</code>.
 927  
   * 
 928  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 929  
   * @return the size <code>Column</code>
 930  
   */
 931  
   public final Column<Integer> getSizeColumn() {
 932  6259
     return col_size;
 933  
   }
 934  
 
 935  
 
 936  
  /**
 937  
   * Retrieves the <code>Width</code> <code>Column</code> for this 
 938  
   * <code>ValueInfo</code> <code>Table</code>.
 939  
   * 
 940  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 941  
   * @return the width <code>Column</code>
 942  
   */
 943  
   public final Column<Integer> getWidthColumn() {
 944  4838
     return col_width;
 945  
   }
 946  
 
 947  
 
 948  
  /**
 949  
   * Retrieves the <code>Height</code> <code>Column</code> for this 
 950  
   * <code>ValueInfo</code> <code>Table</code>.
 951  
   * 
 952  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 953  
   * @return the height <code>Column</code>
 954  
   */
 955  
   public final Column<Integer> getHeightColumn() {
 956  4836
     return col_height;
 957  
   }
 958  
 
 959  
 
 960  
  /**
 961  
   * Retrieves the <code>Precision</code> <code>Column</code> for this 
 962  
   * <code>ValueInfo</code> <code>Table</code>.
 963  
   * 
 964  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 965  
   * @return the precision <code>Column</code>
 966  
   */
 967  
   public final Column<Integer> getPrecisionColumn() {
 968  4960
     return col_precision;
 969  
   }
 970  
 
 971  
 
 972  
  /**
 973  
   * Retrieves the <code>Scale</code> <code>Column</code> for this 
 974  
   * <code>ValueInfo</code> <code>Table</code>.
 975  
   * 
 976  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 977  
   * @return the scale <code>Column</code>
 978  
   */
 979  
   public final Column<Integer> getScaleColumn() {
 980  4960
     return col_scale;
 981  
   }
 982  
 
 983  
 
 984  
  /**
 985  
   * Retrieves the <code>Renderinfo</code> <code>Column</code> for this 
 986  
   * <code>ValueInfo</code> <code>Table</code>.
 987  
   * 
 988  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 989  
   * @return the renderinfo <code>Column</code>
 990  
   */
 991  
   public final Column<String> getRenderinfoColumn() {
 992  4727
     return col_renderinfo;
 993  
   }
 994  
 
 995  
 
 996  
  /**
 997  
   * Retrieves the <code>Rangelow_string</code> <code>Column</code> for this 
 998  
   * <code>ValueInfo</code> <code>Table</code>.
 999  
   * 
 1000  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 1001  
   * @return the rangelow_string <code>Column</code>
 1002  
   */
 1003  
   public final Column<String> getRangelow_stringColumn() {
 1004  9448
     return col_rangelow_string;
 1005  
   }
 1006  
 
 1007  
 
 1008  
  /**
 1009  
   * Retrieves the <code>Rangelimit_string</code> <code>Column</code> for this 
 1010  
   * <code>ValueInfo</code> <code>Table</code>.
 1011  
   * 
 1012  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 1013  
   * @return the rangelimit_string <code>Column</code>
 1014  
   */
 1015  
   public final Column<String> getRangelimit_stringColumn() {
 1016  9448
     return col_rangelimit_string;
 1017  
   }
 1018  
 
 1019  
 
 1020  
  /**
 1021  
   * Retrieve the <code>ValueInfo</code> as a <code>ValueInfo</code>.
 1022  
   *
 1023  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 1024  
   * @param troid a Table Row Object ID
 1025  
   * @return the <code>Persistent</code> identified by the <code>troid</code>
 1026  
   */
 1027  
   public ValueInfo getValueInfoObject(Integer troid) {
 1028  0
     return (ValueInfo)getObject(troid);
 1029  
   }
 1030  
 
 1031  
 
 1032  
  /**
 1033  
   * Retrieve the <code>ValueInfo</code> 
 1034  
   * as a <code>ValueInfo</code>.
 1035  
   *
 1036  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 1037  
   * @param troid a Table Row Object ID
 1038  
   * @return the <code>Persistent</code> identified   */
 1039  
   public ValueInfo getValueInfoObject(int troid) {
 1040  0
     return (ValueInfo)getObject(troid);
 1041  
   }
 1042  
   public int defaultDisplayOrder() {
 1043  0
     return 7;
 1044  
   }
 1045  
 }
 1046