1 // Do not edit this file! It was generated by Melati POEM's DSD preprocessor.
2
3 package org.paneris.melati.site.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.melati.poem.SettingTable;
11 import org.paneris.melati.site.model.Setting;
12 import org.paneris.melati.site.model.SiteDatabaseTables;
13
14
15 /**
16 * Melati POEM generated base class for
17 <code>Table</code> <code>Setting</code>.
18 *
19 * @see org.melati.poem.prepro.TableDef#generateTableBaseJava
20 */
21
22 public class SettingTableBase extends SettingTable {
23
24
25 /**
26 * Constructor.
27 *
28 * @see 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 super(database, name, definitionSource);
39 }
40
41
42 /**
43 * Get the database tables.
44 *
45 * @see org.melati.poem.prepro.TableDef#generateTableBaseJava
46 * @return the database tables
47 */
48 public SiteDatabaseTables getSiteDatabaseTables() {
49 return (SiteDatabaseTables)getDatabase();
50 }
51
52 public void init() throws PoemException {
53 super.init();
54 }
55
56
57 /**
58 * Retrieve the <code>Setting</code> as a <code>org.melati.poem.Setting</code>.
59 *
60 * @see 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 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 * @see 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 return (org.melati.poem.Setting)getObject(troid);
78 }
79
80 protected JdbcPersistent _newPersistent() {
81 return new Setting();
82 }
83 protected int defaultDisplayOrder() {
84 return 3040;
85 }
86 }
87