55731a5f9fdad28cad1fc019ea4a5bf4d2e98b79
[mir.git] / source / mircoders / storage / DatabaseTopics.java
1 package mircoders.storage;
2
3 import java.lang.*;
4 import java.sql.*;
5 import java.io.*;
6 import java.util.*;
7
8 import freemarker.template.*;
9
10 import webdb.storage.*;
11 import webdb.entity.*;
12 import webdb.misc.*;
13
14 /**
15  * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
16  *
17  *
18  */
19
20 public class DatabaseTopics extends Database implements StorageObject{
21
22         private static DatabaseTopics instance;
23
24         public static DatabaseTopics getInstance() throws StorageObjectException {
25                         if (instance == null) {
26                 instance = new DatabaseTopics();
27                 instance.myselfDatabase = instance;
28                         }
29                 return instance;
30         }
31
32         private DatabaseTopics() throws StorageObjectException
33         {
34           super();
35                         this.cache = new HashMap();
36                         this.hasTimestamp = false;
37                         this.theTable="topic";
38                         try {
39                 this.theEntityClass = Class.forName("mir.entity.EntityTopics");
40                         }
41                         catch (Exception e) {
42                 throw new StorageObjectException(e.toString());
43                         }
44
45         }
46
47         public SimpleList getPopupData() {
48                 return getPopupData("title",true);
49         }
50
51
52
53 }