View Javadoc
1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.melati.poem.test.generated;
4   
5   
6   import org.melati.poem.Database;
7   import org.melati.poem.DefinitionSource;
8   import org.melati.poem.PoemException;
9   import org.melati.poem.test.EmptyAbstractTable;
10  import org.melati.poem.test.EverythingDatabaseTables;
11  import org.melati.poem.test.EverythingTable;
12  
13  
14  /**
15   * Melati POEM generated base class for <code>Table</code> <code>EmptyAbstractTable</code>.
16   *
17   * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
18   */
19  
20  public class EmptyAbstractTableTableBase<T extends EmptyAbstractTable> extends EverythingTable<T> {
21  
22  
23   /**
24    * Constructor. 
25    * 
26    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
27    * @param database          the POEM database we are using
28    * @param name              the name of this <code>Table</code>
29    * @param definitionSource  which definition is being used
30    * @throws PoemException    if anything goes wrong
31    */
32  
33    public EmptyAbstractTableTableBase(
34        Database database, String name,
35        DefinitionSource definitionSource) throws PoemException {
36      super(database, name, definitionSource);
37    }
38  
39  
40   /**
41    * Get the database tables.
42    *
43    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
44    * @return the database tables
45    */
46    public EverythingDatabaseTables getEverythingDatabaseTables() {
47      return (EverythingDatabaseTables)getDatabase();
48    }
49  
50  
51   /**
52    * Initialise this table by defining its columns.
53    *
54    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
55    */
56    public void init() throws PoemException {
57      super.init();
58    }
59  
60  
61   /**
62    * Retrieve the <code>EmptyAbstractTable</code> as a <code>EmptyAbstractTable</code>.
63    *
64    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
65    * @param troid a Table Row Object ID
66    * @return the <code>Persistent</code> identified by the <code>troid</code>
67    */
68    public EmptyAbstractTable getEmptyAbstractTableObject(Integer troid) {
69      return (EmptyAbstractTable)getObject(troid);
70    }
71  
72  
73   /**
74    * Retrieve the <code>EmptyAbstractTable</code> 
75    * as a <code>EmptyAbstractTable</code>.
76    *
77    * See org.melati.poem.prepro.TableDef#generateTableBaseJava 
78    * @param troid a Table Row Object ID
79    * @return the <code>Persistent</code> identified   */
80    public EmptyAbstractTable getEmptyAbstractTableObject(int troid) {
81      return (EmptyAbstractTable)getObject(troid);
82    }
83    public String defaultDisplayName() {
84      return "Empty Abstract";
85    }
86  
87    public String defaultDescription() {
88      return "Empty abstract table to create a stub";
89    }
90  
91    public Integer defaultCacheLimit() {
92      return new Integer(100);
93    }
94  
95    public String defaultCategory() {
96      return "Normal";
97    }
98  
99    public int defaultDisplayOrder() {
100     return 50;
101   }
102 }
103