View Javadoc

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.Board;
14  // FIXME extended table 
15  import org.paneris.melati.boards.model.BoardTable;
16  
17  
18  /**
19   * Melati POEM generated base class for <code>Table</code> <code>Board</code>.
20   *
21   * see org.melati.poem.prepro.TableDef#generateTableBaseJava 
22   */
23  
24  public class BoardTableBase<T extends Board> extends BoardTable<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 BoardTableBase(
38        Database database, String name,
39        DefinitionSource definitionSource) throws PoemException {
40      super(database, name, definitionSource);
41    }
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      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      super.init();
62    }
63  
64  
65   /**
66    * Retrieve the <code>Board</code> as a <code>org.paneris.melati.boards.model.Board</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.Board getBoardObject(Integer troid) {
73      return (org.paneris.melati.boards.model.Board)getObject(troid);
74    }
75  
76  
77   /**
78    * Retrieve the <code>Board</code> 
79    * as a <code>org.paneris.melati.boards.model.Board</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.Board getBoardObject(int troid) {
85      return (org.paneris.melati.boards.model.Board)getObject(troid);
86    }
87  
88    protected JdbcPersistent _newPersistent() {
89      return new org.paneris.bibliomania.Board();
90    }
91    public int defaultDisplayOrder() {
92      return 1020;
93    }
94  }
95