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