Coverage Report - org.paneris.bibliomania.generated.BoardTypeTableBase
 
Classes in this File Line Coverage Branch Coverage Complexity
BoardTypeTableBase
44%
4/9
N/A
1
 
 1  
 // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
 2  
 
 3  
 package org.paneris.bibliomania.generated;
 4  
 
 5  
 
 6  
 import org.melati.poem.Database;
 7  
 import org.melati.poem.DefinitionSource;
 8  
 import org.melati.poem.JdbcPersistent;
 9  
 import org.melati.poem.Persistent;
 10  
 import org.melati.poem.PoemException;
 11  
 import org.paneris.bibliomania.BibliomaniaDatabaseTables;
 12  
 // FIXME extended table 
 13  
 import org.paneris.bibliomania.BoardType;
 14  
 // FIXME extended table 
 15  
 import org.paneris.melati.boards.model.BoardTypeTable;
 16  
 
 17  
 
 18  
 /**
 19  
  * Melati POEM generated base class for <code>Table</code> <code>BoardType</code>.
 20  
  *
 21  
  * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 22  
  */
 23  
 
 24  
 public class BoardTypeTableBase<T extends BoardType> extends BoardTypeTable<T> {
 25  
 
 26  
 
 27  
  /**
 28  
   * Constructor. 
 29  
   * 
 30  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 31  
   * @param database          the POEM database we are using
 32  
   * @param name              the name of this <code>Table</code>
 33  
   * @param definitionSource  which definition is being used
 34  
   * @throws PoemException    if anything goes wrong
 35  
   */
 36  
 
 37  
   public BoardTypeTableBase(
 38  
       Database database, String name,
 39  
       DefinitionSource definitionSource) throws PoemException {
 40  2
     super(database, name, definitionSource);
 41  2
   }
 42  
 
 43  
 
 44  
  /**
 45  
   * Get the database tables.
 46  
   *
 47  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 48  
   * @return the database tables
 49  
   */
 50  
   public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() {
 51  0
     return (BibliomaniaDatabaseTables)getDatabase();
 52  
   }
 53  
 
 54  
 
 55  
  /**
 56  
   * Initialise this table by defining its columns.
 57  
   *
 58  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 59  
   */
 60  
   public void init() throws PoemException {
 61  2
     super.init();
 62  2
   }
 63  
 
 64  
 
 65  
  /**
 66  
   * Retrieve the <code>BoardType</code> as a <code>org.paneris.melati.boards.model.BoardType</code>.
 67  
   *
 68  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 69  
   * @param troid a Table Row Oject ID
 70  
   * @return the <code>Persistent</code> identified by the <code>troid</code>
 71  
   */
 72  
   public org.paneris.melati.boards.model.BoardType getBoardTypeObject(Integer troid) {
 73  0
     return (org.paneris.melati.boards.model.BoardType)getObject(troid);
 74  
   }
 75  
 
 76  
 
 77  
  /**
 78  
   * Retrieve the <code>BoardType</code> 
 79  
   * as a <code>org.paneris.melati.boards.model.BoardType</code>.
 80  
   *
 81  
   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
 82  
   * @param troid a Table Row Object ID
 83  
   * @return the <code>Persistent</code> identified   */
 84  
   public org.paneris.melati.boards.model.BoardType getBoardTypeObject(int troid) {
 85  0
     return (org.paneris.melati.boards.model.BoardType)getObject(troid);
 86  
   }
 87  
 
 88  
   protected JdbcPersistent _newPersistent() {
 89  0
     return new org.paneris.bibliomania.BoardType();
 90  
   }
 91  
   public int defaultDisplayOrder() {
 92  0
     return 1010;
 93  
   }
 94  
 }
 95