Coverage Report - org.melati.poem.generated.ColumnInfoTableBase
 
Classes in this File Line Coverage Branch Coverage Complexity
ColumnInfoTableBase
96%
50/52
N/A
1
ColumnInfoTableBase$1
64%
9/14
N/A
1
ColumnInfoTableBase$10
68%
11/16
N/A
1
ColumnInfoTableBase$11
68%
11/16
N/A
1
ColumnInfoTableBase$12
68%
11/16
N/A
1
ColumnInfoTableBase$2
72%
13/18
N/A
1
ColumnInfoTableBase$3
70%
12/17
N/A
1
ColumnInfoTableBase$4
70%
12/17
N/A
1
ColumnInfoTableBase$5
68%
11/16
N/A
1
ColumnInfoTableBase$6
68%
11/16
N/A
1
ColumnInfoTableBase$7
66%
10/15
N/A
1
ColumnInfoTableBase$8
66%
10/15
N/A
1
ColumnInfoTableBase$9
68%
11/16
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.ColumnInfo;
 10  
 import org.melati.poem.Database;
 11  
 import org.melati.poem.DefinitionSource;
 12  
 import org.melati.poem.DisplayLevel;
 13  
 import org.melati.poem.DisplayLevelPoemType;
 14  
 import org.melati.poem.Field;
 15  
 import org.melati.poem.IntegerPoemType;
 16  
 import org.melati.poem.IntegrityFixPoemType;
 17  
 import org.melati.poem.JdbcPersistent;
 18  
 import org.melati.poem.Persistent;
 19  
 import org.melati.poem.PoemDatabaseTables;
 20  
 import org.melati.poem.PoemException;
 21  
 import org.melati.poem.ReferencePoemType;
 22  
 import org.melati.poem.Searchability;
 23  
 import org.melati.poem.SearchabilityPoemType;
 24  
 import org.melati.poem.StandardIntegrityFix;
 25  
 import org.melati.poem.StringPoemType;
 26  
 import org.melati.poem.TableInfo;
 27  
 import org.melati.poem.TroidPoemType;
 28  
 import org.melati.poem.ValidationPoemException;
 29  
 import org.melati.poem.ValueInfoTable;
 30  
 
 31  
 
 32  
 /**
 33  
  * Melati POEM generated base class for <code>Table</code> <code>columnInfo</code>.
 34  
  *
 35  
  * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 36  
  */
 37  
 
 38  
 public class ColumnInfoTableBase<T extends ColumnInfo> extends ValueInfoTable<T> {
 39  
 
 40  64
   private Column<Integer> col_id = null;
 41  64
   private Column<Integer> col_tableinfo = null;
 42  64
   private Column<String> col_name = null;
 43  64
   private Column<Integer> col_displayorder = null;
 44  64
   private Column<Boolean> col_usercreateable = null;
 45  64
   private Column<Integer> col_displaylevel = null;
 46  64
   private Column<Integer> col_searchability = null;
 47  64
   private Column<Integer> col_displayorderpriority = null;
 48  64
   private Column<Boolean> col_sortdescending = null;
 49  64
   private Column<Boolean> col_indexed = null;
 50  64
   private Column<Boolean> col_unique = null;
 51  64
   private Column<Integer> col_integrityfix = null;
 52  
 
 53  
  /**
 54  
   * Constructor. 
 55  
   * 
 56  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 57  
   * @param database          the POEM database we are using
 58  
   * @param name              the name of this <code>Table</code>
 59  
   * @param definitionSource  which definition is being used
 60  
   * @throws PoemException    if anything goes wrong
 61  
   */
 62  
 
 63  
   public ColumnInfoTableBase(
 64  
       Database database, String name,
 65  
       DefinitionSource definitionSource) throws PoemException {
 66  64
     super(database, name, definitionSource);
 67  64
   }
 68  
 
 69  
 
 70  
  /**
 71  
   * Get the database tables.
 72  
   *
 73  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 74  
   * @return the database tables
 75  
   */
 76  
   public PoemDatabaseTables getPoemDatabaseTables() {
 77  41
     return (PoemDatabaseTables)getDatabase();
 78  
   }
 79  
 
 80  
 
 81  
  /**
 82  
   * Initialise this table by defining its columns.
 83  
   *
 84  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 85  
   */
 86  
   public void init() throws PoemException {
 87  41
     super.init();
 88  41
     defineColumn(col_id =
 89  
         new Column<Integer>(this, "id",
 90  
                    new TroidPoemType(),
 91  41
                    DefinitionSource.dsd) { 
 92  
           public Object getCooked(Persistent g)
 93  
               throws AccessPoemException, PoemException {
 94  0
             return ((ColumnInfo)g).getId();
 95  
           }
 96  
 
 97  
           public void setCooked(Persistent g, Object cooked)
 98  
               throws AccessPoemException, ValidationPoemException {
 99  0
             ((ColumnInfo)g).setId((Integer)cooked);
 100  0
           }
 101  
 
 102  
           public Field<Integer> asField(Persistent g) {
 103  2
             return ((ColumnInfo)g).getIdField();
 104  
           }
 105  
 
 106  
           public boolean defaultUserEditable() {
 107  40
             return false;
 108  
           }
 109  
 
 110  
           public boolean defaultUserCreateable() {
 111  40
             return false;
 112  
           }
 113  
 
 114  
           public int defaultDisplayOrder() {
 115  40
             return 0;
 116  
           }
 117  
 
 118  
           public Object getRaw_unsafe(Persistent g)
 119  
               throws AccessPoemException {
 120  9626
             return ((ColumnInfo)g).getId_unsafe();
 121  
           }
 122  
 
 123  
           public void setRaw_unsafe(Persistent g, Object raw)
 124  
               throws AccessPoemException {
 125  11496
             ((ColumnInfo)g).setId_unsafe((Integer)raw);
 126  11496
           }
 127  
 
 128  
           public Object getRaw(Persistent g)
 129  
               throws AccessPoemException {
 130  2
             return ((ColumnInfo)g).getId();
 131  
           }
 132  
 
 133  
           public void setRaw(Persistent g, Object raw)
 134  
               throws AccessPoemException {
 135  0
             ((ColumnInfo)g).setId((Integer)raw);
 136  0
           }
 137  
         });
 138  
 
 139  82
     defineColumn(col_tableinfo =
 140  
         new Column<Integer>(this, "tableinfo",
 141  41
                    new ReferencePoemType(getPoemDatabaseTables().
 142  41
                                              getTableInfoTable(), false),
 143  41
                    DefinitionSource.dsd) { 
 144  
           public Object getCooked(Persistent g)
 145  
               throws AccessPoemException, PoemException {
 146  0
             return ((ColumnInfo)g).getTableinfo();
 147  
           }
 148  
 
 149  
           public void setCooked(Persistent g, Object cooked)
 150  
               throws AccessPoemException, ValidationPoemException {
 151  0
             ((ColumnInfo)g).setTableinfo((TableInfo)cooked);
 152  0
           }
 153  
 
 154  
           public Field<Integer> asField(Persistent g) {
 155  2
             return ((ColumnInfo)g).getTableinfoField();
 156  
           }
 157  
 
 158  
           public boolean defaultUserEditable() {
 159  40
             return false;
 160  
           }
 161  
 
 162  
           public Searchability defaultSearchability() {
 163  80
             return Searchability.primary;
 164  
           }
 165  
 
 166  
           public Integer defaultDisplayOrderPriority() {
 167  40
             return new Integer(0);
 168  
           }
 169  
 
 170  
           public String defaultDisplayName() {
 171  40
             return "Owning table";
 172  
           }
 173  
 
 174  
           public int defaultDisplayOrder() {
 175  40
             return 1;
 176  
           }
 177  
 
 178  
           public String defaultDescription() {
 179  40
             return "The table to which the field belongs";
 180  
           }
 181  
 
 182  
           public String defaultRenderinfo() {
 183  40
             return "SelectionWindow";
 184  
           }
 185  
 
 186  
           public Object getRaw_unsafe(Persistent g)
 187  
               throws AccessPoemException {
 188  9626
             return ((ColumnInfo)g).getTableinfo_unsafe();
 189  
           }
 190  
 
 191  
           public void setRaw_unsafe(Persistent g, Object raw)
 192  
               throws AccessPoemException {
 193  499
             ((ColumnInfo)g).setTableinfo_unsafe((Integer)raw);
 194  499
           }
 195  
 
 196  
           public Object getRaw(Persistent g)
 197  
               throws AccessPoemException {
 198  2
             return ((ColumnInfo)g).getTableinfoTroid();
 199  
           }
 200  
 
 201  
           public void setRaw(Persistent g, Object raw)
 202  
               throws AccessPoemException {
 203  0
             ((ColumnInfo)g).setTableinfoTroid((Integer)raw);
 204  0
           }
 205  
         });
 206  
 
 207  41
     defineColumn(col_name =
 208  
         new Column<String>(this, "name",
 209  
                    new StringPoemType(false, 50),
 210  41
                    DefinitionSource.dsd) { 
 211  
           public Object getCooked(Persistent g)
 212  
               throws AccessPoemException, PoemException {
 213  0
             return ((ColumnInfo)g).getName();
 214  
           }
 215  
 
 216  
           public void setCooked(Persistent g, Object cooked)
 217  
               throws AccessPoemException, ValidationPoemException {
 218  0
             ((ColumnInfo)g).setName((String)cooked);
 219  0
           }
 220  
 
 221  
           public Field<String> asField(Persistent g) {
 222  2
             return ((ColumnInfo)g).getNameField();
 223  
           }
 224  
 
 225  
           public boolean defaultUserEditable() {
 226  40
             return false;
 227  
           }
 228  
 
 229  
           public DisplayLevel defaultDisplayLevel() {
 230  80
             return DisplayLevel.record;
 231  
           }
 232  
 
 233  
           public Searchability defaultSearchability() {
 234  80
             return Searchability.no;
 235  
           }
 236  
 
 237  
           public int defaultDisplayOrder() {
 238  40
             return 50;
 239  
           }
 240  
 
 241  
           public String defaultDescription() {
 242  40
             return "A code-name for the field";
 243  
           }
 244  
 
 245  
           public boolean defaultIndexed() {
 246  40
             return true;
 247  
           }
 248  
 
 249  
           public Object getRaw_unsafe(Persistent g)
 250  
               throws AccessPoemException {
 251  9626
             return ((ColumnInfo)g).getName_unsafe();
 252  
           }
 253  
 
 254  
           public void setRaw_unsafe(Persistent g, Object raw)
 255  
               throws AccessPoemException {
 256  499
             ((ColumnInfo)g).setName_unsafe((String)raw);
 257  499
           }
 258  
 
 259  
           public Object getRaw(Persistent g)
 260  
               throws AccessPoemException {
 261  2
             return ((ColumnInfo)g).getName();
 262  
           }
 263  
 
 264  
           public void setRaw(Persistent g, Object raw)
 265  
               throws AccessPoemException {
 266  0
             ((ColumnInfo)g).setName((String)raw);
 267  0
           }
 268  
         });
 269  
 
 270  41
     defineColumn(col_displayorder =
 271  
         new Column<Integer>(this, "displayorder",
 272  
                    new IntegerPoemType(false),
 273  41
                    DefinitionSource.dsd) { 
 274  
           public Object getCooked(Persistent g)
 275  
               throws AccessPoemException, PoemException {
 276  0
             return ((ColumnInfo)g).getDisplayorder();
 277  
           }
 278  
 
 279  
           public void setCooked(Persistent g, Object cooked)
 280  
               throws AccessPoemException, ValidationPoemException {
 281  0
             ((ColumnInfo)g).setDisplayorder((Integer)cooked);
 282  0
           }
 283  
 
 284  
           public Field<Integer> asField(Persistent g) {
 285  2
             return ((ColumnInfo)g).getDisplayorderField();
 286  
           }
 287  
 
 288  
           public DisplayLevel defaultDisplayLevel() {
 289  80
             return DisplayLevel.record;
 290  
           }
 291  
 
 292  
           public Searchability defaultSearchability() {
 293  80
             return Searchability.no;
 294  
           }
 295  
 
 296  
           public Integer defaultDisplayOrderPriority() {
 297  40
             return new Integer(1);
 298  
           }
 299  
 
 300  
           public String defaultDisplayName() {
 301  40
             return "Display order";
 302  
           }
 303  
 
 304  
           public int defaultDisplayOrder() {
 305  40
             return 51;
 306  
           }
 307  
 
 308  
           public String defaultDescription() {
 309  40
             return "A rank determining where the field appears in lists";
 310  
           }
 311  
 
 312  
           public Object getRaw_unsafe(Persistent g)
 313  
               throws AccessPoemException {
 314  9626
             return ((ColumnInfo)g).getDisplayorder_unsafe();
 315  
           }
 316  
 
 317  
           public void setRaw_unsafe(Persistent g, Object raw)
 318  
               throws AccessPoemException {
 319  499
             ((ColumnInfo)g).setDisplayorder_unsafe((Integer)raw);
 320  499
           }
 321  
 
 322  
           public Object getRaw(Persistent g)
 323  
               throws AccessPoemException {
 324  2
             return ((ColumnInfo)g).getDisplayorder();
 325  
           }
 326  
 
 327  
           public void setRaw(Persistent g, Object raw)
 328  
               throws AccessPoemException {
 329  0
             ((ColumnInfo)g).setDisplayorder((Integer)raw);
 330  0
           }
 331  
         });
 332  
 
 333  41
     defineColumn(col_usercreateable =
 334  
         new Column<Boolean>(this, "usercreateable",
 335  
                    new BooleanPoemType(false),
 336  41
                    DefinitionSource.dsd) { 
 337  
           public Object getCooked(Persistent g)
 338  
               throws AccessPoemException, PoemException {
 339  0
             return ((ColumnInfo)g).getUsercreateable();
 340  
           }
 341  
 
 342  
           public void setCooked(Persistent g, Object cooked)
 343  
               throws AccessPoemException, ValidationPoemException {
 344  0
             ((ColumnInfo)g).setUsercreateable((Boolean)cooked);
 345  0
           }
 346  
 
 347  
           public Field<Boolean> asField(Persistent g) {
 348  2
             return ((ColumnInfo)g).getUsercreateableField();
 349  
           }
 350  
 
 351  
           public DisplayLevel defaultDisplayLevel() {
 352  80
             return DisplayLevel.detail;
 353  
           }
 354  
 
 355  
           public Searchability defaultSearchability() {
 356  80
             return Searchability.no;
 357  
           }
 358  
 
 359  
           public String defaultDisplayName() {
 360  40
             return "User-createable";
 361  
           }
 362  
 
 363  
           public int defaultDisplayOrder() {
 364  40
             return 52;
 365  
           }
 366  
 
 367  
           public String defaultDescription() {
 368  40
             return "Whether it makes sense for the user to initialise the field's value";
 369  
           }
 370  
 
 371  
           public Object getRaw_unsafe(Persistent g)
 372  
               throws AccessPoemException {
 373  9626
             return ((ColumnInfo)g).getUsercreateable_unsafe();
 374  
           }
 375  
 
 376  
           public void setRaw_unsafe(Persistent g, Object raw)
 377  
               throws AccessPoemException {
 378  499
             ((ColumnInfo)g).setUsercreateable_unsafe((Boolean)raw);
 379  499
           }
 380  
 
 381  
           public Object getRaw(Persistent g)
 382  
               throws AccessPoemException {
 383  2
             return ((ColumnInfo)g).getUsercreateable();
 384  
           }
 385  
 
 386  
           public void setRaw(Persistent g, Object raw)
 387  
               throws AccessPoemException {
 388  0
             ((ColumnInfo)g).setUsercreateable((Boolean)raw);
 389  0
           }
 390  
         });
 391  
 
 392  41
     defineColumn(col_displaylevel =
 393  
         new Column<Integer>(this, "displaylevel",
 394  
                    new DisplayLevelPoemType(),
 395  41
                    DefinitionSource.dsd) { 
 396  
           public Object getCooked(Persistent g)
 397  
               throws AccessPoemException, PoemException {
 398  0
             return ((ColumnInfo)g).getDisplaylevel();
 399  
           }
 400  
 
 401  
           public void setCooked(Persistent g, Object cooked)
 402  
               throws AccessPoemException, ValidationPoemException {
 403  0
             ((ColumnInfo)g).setDisplaylevel((DisplayLevel)cooked);
 404  0
           }
 405  
 
 406  
           public Field<Integer> asField(Persistent g) {
 407  2
             return ((ColumnInfo)g).getDisplaylevelField();
 408  
           }
 409  
 
 410  
           public DisplayLevel defaultDisplayLevel() {
 411  80
             return DisplayLevel.record;
 412  
           }
 413  
 
 414  
           public Searchability defaultSearchability() {
 415  80
             return Searchability.no;
 416  
           }
 417  
 
 418  
           public String defaultDisplayName() {
 419  40
             return "Display level";
 420  
           }
 421  
 
 422  
           public int defaultDisplayOrder() {
 423  40
             return 53;
 424  
           }
 425  
 
 426  
           public String defaultDescription() {
 427  40
             return "A category determining what granularity of report the field appears in";
 428  
           }
 429  
 
 430  
           public Object getRaw_unsafe(Persistent g)
 431  
               throws AccessPoemException {
 432  9626
             return ((ColumnInfo)g).getDisplaylevel_unsafe();
 433  
           }
 434  
 
 435  
           public void setRaw_unsafe(Persistent g, Object raw)
 436  
               throws AccessPoemException {
 437  499
             ((ColumnInfo)g).setDisplaylevel_unsafe((Integer)raw);
 438  499
           }
 439  
 
 440  
           public Object getRaw(Persistent g)
 441  
               throws AccessPoemException {
 442  2
             return ((ColumnInfo)g).getDisplaylevelIndex();
 443  
           }
 444  
 
 445  
           public void setRaw(Persistent g, Object raw)
 446  
               throws AccessPoemException {
 447  0
             ((ColumnInfo)g).setDisplaylevelIndex((Integer)raw);
 448  0
           }
 449  
         });
 450  
 
 451  41
     defineColumn(col_searchability =
 452  
         new Column<Integer>(this, "searchability",
 453  
                    new SearchabilityPoemType(),
 454  41
                    DefinitionSource.dsd) { 
 455  
           public Object getCooked(Persistent g)
 456  
               throws AccessPoemException, PoemException {
 457  0
             return ((ColumnInfo)g).getSearchability();
 458  
           }
 459  
 
 460  
           public void setCooked(Persistent g, Object cooked)
 461  
               throws AccessPoemException, ValidationPoemException {
 462  0
             ((ColumnInfo)g).setSearchability((Searchability)cooked);
 463  0
           }
 464  
 
 465  
           public Field<Integer> asField(Persistent g) {
 466  2
             return ((ColumnInfo)g).getSearchabilityField();
 467  
           }
 468  
 
 469  
           public DisplayLevel defaultDisplayLevel() {
 470  80
             return DisplayLevel.record;
 471  
           }
 472  
 
 473  
           public Searchability defaultSearchability() {
 474  80
             return Searchability.no;
 475  
           }
 476  
 
 477  
           public int defaultDisplayOrder() {
 478  40
             return 54;
 479  
           }
 480  
 
 481  
           public String defaultDescription() {
 482  40
             return "A category determining what level of searching this field supports";
 483  
           }
 484  
 
 485  
           public Object getRaw_unsafe(Persistent g)
 486  
               throws AccessPoemException {
 487  9626
             return ((ColumnInfo)g).getSearchability_unsafe();
 488  
           }
 489  
 
 490  
           public void setRaw_unsafe(Persistent g, Object raw)
 491  
               throws AccessPoemException {
 492  499
             ((ColumnInfo)g).setSearchability_unsafe((Integer)raw);
 493  499
           }
 494  
 
 495  
           public Object getRaw(Persistent g)
 496  
               throws AccessPoemException {
 497  2
             return ((ColumnInfo)g).getSearchabilityIndex();
 498  
           }
 499  
 
 500  
           public void setRaw(Persistent g, Object raw)
 501  
               throws AccessPoemException {
 502  0
             ((ColumnInfo)g).setSearchabilityIndex((Integer)raw);
 503  0
           }
 504  
         });
 505  
 
 506  41
     defineColumn(col_displayorderpriority =
 507  
         new Column<Integer>(this, "displayorderpriority",
 508  
                    new IntegerPoemType(true),
 509  41
                    DefinitionSource.dsd) { 
 510  
           public Object getCooked(Persistent g)
 511  
               throws AccessPoemException, PoemException {
 512  0
             return ((ColumnInfo)g).getDisplayorderpriority();
 513  
           }
 514  
 
 515  
           public void setCooked(Persistent g, Object cooked)
 516  
               throws AccessPoemException, ValidationPoemException {
 517  0
             ((ColumnInfo)g).setDisplayorderpriority((Integer)cooked);
 518  0
           }
 519  
 
 520  
           public Field<Integer> asField(Persistent g) {
 521  2
             return ((ColumnInfo)g).getDisplayorderpriorityField();
 522  
           }
 523  
 
 524  
           public Searchability defaultSearchability() {
 525  80
             return Searchability.no;
 526  
           }
 527  
 
 528  
           public String defaultDisplayName() {
 529  40
             return "Display order priority";
 530  
           }
 531  
 
 532  
           public int defaultDisplayOrder() {
 533  40
             return 55;
 534  
           }
 535  
 
 536  
           public String defaultDescription() {
 537  40
             return "If present, the level at which lists of records are sorted by the field";
 538  
           }
 539  
 
 540  
           public Object getRaw_unsafe(Persistent g)
 541  
               throws AccessPoemException {
 542  9626
             return ((ColumnInfo)g).getDisplayorderpriority_unsafe();
 543  
           }
 544  
 
 545  
           public void setRaw_unsafe(Persistent g, Object raw)
 546  
               throws AccessPoemException {
 547  499
             ((ColumnInfo)g).setDisplayorderpriority_unsafe((Integer)raw);
 548  499
           }
 549  
 
 550  
           public Object getRaw(Persistent g)
 551  
               throws AccessPoemException {
 552  2
             return ((ColumnInfo)g).getDisplayorderpriority();
 553  
           }
 554  
 
 555  
           public void setRaw(Persistent g, Object raw)
 556  
               throws AccessPoemException {
 557  0
             ((ColumnInfo)g).setDisplayorderpriority((Integer)raw);
 558  0
           }
 559  
         });
 560  
 
 561  41
     defineColumn(col_sortdescending =
 562  
         new Column<Boolean>(this, "sortdescending",
 563  
                    new BooleanPoemType(true),
 564  41
                    DefinitionSource.dsd) { 
 565  
           public Object getCooked(Persistent g)
 566  
               throws AccessPoemException, PoemException {
 567  0
             return ((ColumnInfo)g).getSortdescending();
 568  
           }
 569  
 
 570  
           public void setCooked(Persistent g, Object cooked)
 571  
               throws AccessPoemException, ValidationPoemException {
 572  0
             ((ColumnInfo)g).setSortdescending((Boolean)cooked);
 573  0
           }
 574  
 
 575  
           public Field<Boolean> asField(Persistent g) {
 576  2
             return ((ColumnInfo)g).getSortdescendingField();
 577  
           }
 578  
 
 579  
           public DisplayLevel defaultDisplayLevel() {
 580  80
             return DisplayLevel.record;
 581  
           }
 582  
 
 583  
           public Searchability defaultSearchability() {
 584  80
             return Searchability.no;
 585  
           }
 586  
 
 587  
           public String defaultDisplayName() {
 588  40
             return "Sort Descending";
 589  
           }
 590  
 
 591  
           public int defaultDisplayOrder() {
 592  40
             return 56;
 593  
           }
 594  
 
 595  
           public String defaultDescription() {
 596  40
             return "Whether when sorting by this column, the sort order should be reversed";
 597  
           }
 598  
 
 599  
           public Object getRaw_unsafe(Persistent g)
 600  
               throws AccessPoemException {
 601  9626
             return ((ColumnInfo)g).getSortdescending_unsafe();
 602  
           }
 603  
 
 604  
           public void setRaw_unsafe(Persistent g, Object raw)
 605  
               throws AccessPoemException {
 606  499
             ((ColumnInfo)g).setSortdescending_unsafe((Boolean)raw);
 607  499
           }
 608  
 
 609  
           public Object getRaw(Persistent g)
 610  
               throws AccessPoemException {
 611  2
             return ((ColumnInfo)g).getSortdescending();
 612  
           }
 613  
 
 614  
           public void setRaw(Persistent g, Object raw)
 615  
               throws AccessPoemException {
 616  0
             ((ColumnInfo)g).setSortdescending((Boolean)raw);
 617  0
           }
 618  
         });
 619  
 
 620  41
     defineColumn(col_indexed =
 621  
         new Column<Boolean>(this, "indexed",
 622  
                    new BooleanPoemType(false),
 623  41
                    DefinitionSource.dsd) { 
 624  
           public Object getCooked(Persistent g)
 625  
               throws AccessPoemException, PoemException {
 626  0
             return ((ColumnInfo)g).getIndexed();
 627  
           }
 628  
 
 629  
           public void setCooked(Persistent g, Object cooked)
 630  
               throws AccessPoemException, ValidationPoemException {
 631  0
             ((ColumnInfo)g).setIndexed((Boolean)cooked);
 632  0
           }
 633  
 
 634  
           public Field<Boolean> asField(Persistent g) {
 635  2
             return ((ColumnInfo)g).getIndexedField();
 636  
           }
 637  
 
 638  
           public boolean defaultUserEditable() {
 639  40
             return false;
 640  
           }
 641  
 
 642  
           public DisplayLevel defaultDisplayLevel() {
 643  80
             return DisplayLevel.record;
 644  
           }
 645  
 
 646  
           public Searchability defaultSearchability() {
 647  80
             return Searchability.no;
 648  
           }
 649  
 
 650  
           public int defaultDisplayOrder() {
 651  40
             return 57;
 652  
           }
 653  
 
 654  
           public String defaultDescription() {
 655  40
             return "Whether the field is indexed (ignored if the field is marked `unique')";
 656  
           }
 657  
 
 658  
           public Object getRaw_unsafe(Persistent g)
 659  
               throws AccessPoemException {
 660  9626
             return ((ColumnInfo)g).getIndexed_unsafe();
 661  
           }
 662  
 
 663  
           public void setRaw_unsafe(Persistent g, Object raw)
 664  
               throws AccessPoemException {
 665  499
             ((ColumnInfo)g).setIndexed_unsafe((Boolean)raw);
 666  499
           }
 667  
 
 668  
           public Object getRaw(Persistent g)
 669  
               throws AccessPoemException {
 670  2
             return ((ColumnInfo)g).getIndexed();
 671  
           }
 672  
 
 673  
           public void setRaw(Persistent g, Object raw)
 674  
               throws AccessPoemException {
 675  0
             ((ColumnInfo)g).setIndexed((Boolean)raw);
 676  0
           }
 677  
         });
 678  
 
 679  41
     defineColumn(col_unique =
 680  
         new Column<Boolean>(this, "unique",
 681  
                    new BooleanPoemType(false),
 682  41
                    DefinitionSource.dsd) { 
 683  
           public Object getCooked(Persistent g)
 684  
               throws AccessPoemException, PoemException {
 685  0
             return ((ColumnInfo)g).getUnique();
 686  
           }
 687  
 
 688  
           public void setCooked(Persistent g, Object cooked)
 689  
               throws AccessPoemException, ValidationPoemException {
 690  0
             ((ColumnInfo)g).setUnique((Boolean)cooked);
 691  0
           }
 692  
 
 693  
           public Field<Boolean> asField(Persistent g) {
 694  2
             return ((ColumnInfo)g).getUniqueField();
 695  
           }
 696  
 
 697  
           public boolean defaultUserEditable() {
 698  40
             return false;
 699  
           }
 700  
 
 701  
           public DisplayLevel defaultDisplayLevel() {
 702  80
             return DisplayLevel.record;
 703  
           }
 704  
 
 705  
           public Searchability defaultSearchability() {
 706  80
             return Searchability.no;
 707  
           }
 708  
 
 709  
           public int defaultDisplayOrder() {
 710  40
             return 58;
 711  
           }
 712  
 
 713  
           public String defaultDescription() {
 714  40
             return "Whether the field is unique (implies that it's `indexed')";
 715  
           }
 716  
 
 717  
           public Object getRaw_unsafe(Persistent g)
 718  
               throws AccessPoemException {
 719  9626
             return ((ColumnInfo)g).getUnique_unsafe();
 720  
           }
 721  
 
 722  
           public void setRaw_unsafe(Persistent g, Object raw)
 723  
               throws AccessPoemException {
 724  499
             ((ColumnInfo)g).setUnique_unsafe((Boolean)raw);
 725  499
           }
 726  
 
 727  
           public Object getRaw(Persistent g)
 728  
               throws AccessPoemException {
 729  2
             return ((ColumnInfo)g).getUnique();
 730  
           }
 731  
 
 732  
           public void setRaw(Persistent g, Object raw)
 733  
               throws AccessPoemException {
 734  0
             ((ColumnInfo)g).setUnique((Boolean)raw);
 735  0
           }
 736  
         });
 737  
 
 738  41
     defineColumn(col_integrityfix =
 739  
         new Column<Integer>(this, "integrityfix",
 740  
                    new IntegrityFixPoemType(true),
 741  41
                    DefinitionSource.dsd) { 
 742  
           public Object getCooked(Persistent g)
 743  
               throws AccessPoemException, PoemException {
 744  0
             return ((ColumnInfo)g).getIntegrityfix();
 745  
           }
 746  
 
 747  
           public void setCooked(Persistent g, Object cooked)
 748  
               throws AccessPoemException, ValidationPoemException {
 749  0
             ((ColumnInfo)g).setIntegrityfix((StandardIntegrityFix)cooked);
 750  0
           }
 751  
 
 752  
           public Field<Integer> asField(Persistent g) {
 753  2
             return ((ColumnInfo)g).getIntegrityfixField();
 754  
           }
 755  
 
 756  
           public DisplayLevel defaultDisplayLevel() {
 757  80
             return DisplayLevel.record;
 758  
           }
 759  
 
 760  
           public Searchability defaultSearchability() {
 761  80
             return Searchability.no;
 762  
           }
 763  
 
 764  
           public String defaultDisplayName() {
 765  40
             return "Integrity fix";
 766  
           }
 767  
 
 768  
           public int defaultDisplayOrder() {
 769  40
             return 59;
 770  
           }
 771  
 
 772  
           public String defaultDescription() {
 773  40
             return "How referential integrity is maintained, what to do when the object referred to is deleted";
 774  
           }
 775  
 
 776  
           public Object getRaw_unsafe(Persistent g)
 777  
               throws AccessPoemException {
 778  9626
             return ((ColumnInfo)g).getIntegrityfix_unsafe();
 779  
           }
 780  
 
 781  
           public void setRaw_unsafe(Persistent g, Object raw)
 782  
               throws AccessPoemException {
 783  499
             ((ColumnInfo)g).setIntegrityfix_unsafe((Integer)raw);
 784  499
           }
 785  
 
 786  
           public Object getRaw(Persistent g)
 787  
               throws AccessPoemException {
 788  2
             return ((ColumnInfo)g).getIntegrityfixIndex();
 789  
           }
 790  
 
 791  
           public void setRaw(Persistent g, Object raw)
 792  
               throws AccessPoemException {
 793  0
             ((ColumnInfo)g).setIntegrityfixIndex((Integer)raw);
 794  0
           }
 795  
         });
 796  41
   }
 797  
 
 798  
 
 799  
  /**
 800  
   * Retrieves the <code>Id</code> <code>Column</code> for this 
 801  
   * <code>columnInfo</code> <code>Table</code>.
 802  
   * 
 803  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 804  
   * @return the id <code>Column</code>
 805  
   */
 806  
   public final Column<Integer> getIdColumn() {
 807  2
     return col_id;
 808  
   }
 809  
 
 810  
 
 811  
  /**
 812  
   * Retrieves the <code>Tableinfo</code> <code>Column</code> for this 
 813  
   * <code>columnInfo</code> <code>Table</code>.
 814  
   * 
 815  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 816  
   * @return the tableinfo <code>Column</code>
 817  
   */
 818  
   public final Column<Integer> getTableinfoColumn() {
 819  5536
     return col_tableinfo;
 820  
   }
 821  
 
 822  
 
 823  
  /**
 824  
   * Retrieves the <code>Name</code> <code>Column</code> for this 
 825  
   * <code>columnInfo</code> <code>Table</code>.
 826  
   * 
 827  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 828  
   * @return the name <code>Column</code>
 829  
   */
 830  
   public final Column<String> getNameColumn() {
 831  4810
     return col_name;
 832  
   }
 833  
 
 834  
 
 835  
  /**
 836  
   * Retrieves the <code>Displayorder</code> <code>Column</code> for this 
 837  
   * <code>columnInfo</code> <code>Table</code>.
 838  
   * 
 839  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 840  
   * @return the displayorder <code>Column</code>
 841  
   */
 842  
   public final Column<Integer> getDisplayorderColumn() {
 843  4810
     return col_displayorder;
 844  
   }
 845  
 
 846  
 
 847  
  /**
 848  
   * Retrieves the <code>Usercreateable</code> <code>Column</code> for this 
 849  
   * <code>columnInfo</code> <code>Table</code>.
 850  
   * 
 851  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 852  
   * @return the usercreateable <code>Column</code>
 853  
   */
 854  
   public final Column<Boolean> getUsercreateableColumn() {
 855  4810
     return col_usercreateable;
 856  
   }
 857  
 
 858  
 
 859  
  /**
 860  
   * Retrieves the <code>Displaylevel</code> <code>Column</code> for this 
 861  
   * <code>columnInfo</code> <code>Table</code>.
 862  
   * 
 863  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 864  
   * @return the displaylevel <code>Column</code>
 865  
   */
 866  
   public final Column<Integer> getDisplaylevelColumn() {
 867  4818
     return col_displaylevel;
 868  
   }
 869  
 
 870  
 
 871  
  /**
 872  
   * Retrieves the <code>Searchability</code> <code>Column</code> for this 
 873  
   * <code>columnInfo</code> <code>Table</code>.
 874  
   * 
 875  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 876  
   * @return the searchability <code>Column</code>
 877  
   */
 878  
   public final Column<Integer> getSearchabilityColumn() {
 879  4812
     return col_searchability;
 880  
   }
 881  
 
 882  
 
 883  
  /**
 884  
   * Retrieves the <code>Displayorderpriority</code> <code>Column</code> for this 
 885  
   * <code>columnInfo</code> <code>Table</code>.
 886  
   * 
 887  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 888  
   * @return the displayorderpriority <code>Column</code>
 889  
   */
 890  
   public final Column<Integer> getDisplayorderpriorityColumn() {
 891  4725
     return col_displayorderpriority;
 892  
   }
 893  
 
 894  
 
 895  
  /**
 896  
   * Retrieves the <code>Sortdescending</code> <code>Column</code> for this 
 897  
   * <code>columnInfo</code> <code>Table</code>.
 898  
   * 
 899  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 900  
   * @return the sortdescending <code>Column</code>
 901  
   */
 902  
   public final Column<Boolean> getSortdescendingColumn() {
 903  4725
     return col_sortdescending;
 904  
   }
 905  
 
 906  
 
 907  
  /**
 908  
   * Retrieves the <code>Indexed</code> <code>Column</code> for this 
 909  
   * <code>columnInfo</code> <code>Table</code>.
 910  
   * 
 911  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 912  
   * @return the indexed <code>Column</code>
 913  
   */
 914  
   public final Column<Boolean> getIndexedColumn() {
 915  4812
     return col_indexed;
 916  
   }
 917  
 
 918  
 
 919  
  /**
 920  
   * Retrieves the <code>Unique</code> <code>Column</code> for this 
 921  
   * <code>columnInfo</code> <code>Table</code>.
 922  
   * 
 923  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 924  
   * @return the unique <code>Column</code>
 925  
   */
 926  
   public final Column<Boolean> getUniqueColumn() {
 927  4812
     return col_unique;
 928  
   }
 929  
 
 930  
 
 931  
  /**
 932  
   * Retrieves the <code>Integrityfix</code> <code>Column</code> for this 
 933  
   * <code>columnInfo</code> <code>Table</code>.
 934  
   * 
 935  
   * see org.melati.poem.prepro.FieldDef#generateColAccessor 
 936  
   * @return the integrityfix <code>Column</code>
 937  
   */
 938  
   public final Column<Integer> getIntegrityfixColumn() {
 939  4727
     return col_integrityfix;
 940  
   }
 941  
 
 942  
 
 943  
  /**
 944  
   * Retrieve the <code>ColumnInfo</code> as a <code>ColumnInfo</code>.
 945  
   *
 946  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 947  
   * @param troid a Table Row Object ID
 948  
   * @return the <code>Persistent</code> identified by the <code>troid</code>
 949  
   */
 950  
   public ColumnInfo getColumnInfoObject(Integer troid) {
 951  0
     return (ColumnInfo)getObject(troid);
 952  
   }
 953  
 
 954  
 
 955  
  /**
 956  
   * Retrieve the <code>ColumnInfo</code> 
 957  
   * as a <code>ColumnInfo</code>.
 958  
   *
 959  
   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
 960  
   * @param troid a Table Row Object ID
 961  
   * @return the <code>Persistent</code> identified   */
 962  
   public ColumnInfo getColumnInfoObject(int troid) {
 963  0
     return (ColumnInfo)getObject(troid);
 964  
   }
 965  
 
 966  
   protected JdbcPersistent _newPersistent() {
 967  6179
     return new ColumnInfo();
 968  
   }
 969  
   public String defaultDisplayName() {
 970  40
     return "Column";
 971  
   }
 972  
 
 973  
   public String defaultDescription() {
 974  40
     return "Configuration information about a column in the database";
 975  
   }
 976  
 
 977  
   public boolean defaultRememberAllTroids() {
 978  40
     return true;
 979  
   }
 980  
 
 981  
   public Integer defaultCacheLimit() {
 982  40
     return new Integer(999999999);
 983  
   }
 984  
 
 985  
   public String defaultCategory() {
 986  40
     return "System";
 987  
   }
 988  
 
 989  
   public int defaultDisplayOrder() {
 990  40
     return 3020;
 991  
   }
 992  
 }
 993