Initial revision
[mir.git] / source / mircoders / storage / DatabaseTopics.java
diff --git a/source/mircoders/storage/DatabaseTopics.java b/source/mircoders/storage/DatabaseTopics.java
new file mode 100755 (executable)
index 0000000..55731a5
--- /dev/null
@@ -0,0 +1,53 @@
+package mircoders.storage;
+
+import java.lang.*;
+import java.sql.*;
+import java.io.*;
+import java.util.*;
+
+import freemarker.template.*;
+
+import webdb.storage.*;
+import webdb.entity.*;
+import webdb.misc.*;
+
+/**
+ * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
+ *
+ *
+ */
+
+public class DatabaseTopics extends Database implements StorageObject{
+
+       private static DatabaseTopics instance;
+
+       public static DatabaseTopics getInstance() throws StorageObjectException {
+                       if (instance == null) {
+               instance = new DatabaseTopics();
+               instance.myselfDatabase = instance;
+                       }
+               return instance;
+       }
+
+       private DatabaseTopics() throws StorageObjectException
+       {
+          super();
+                       this.cache = new HashMap();
+                       this.hasTimestamp = false;
+                       this.theTable="topic";
+                       try {
+               this.theEntityClass = Class.forName("mir.entity.EntityTopics");
+                       }
+                       catch (Exception e) {
+               throw new StorageObjectException(e.toString());
+                       }
+
+       }
+
+       public SimpleList getPopupData() {
+               return getPopupData("title",true);
+       }
+
+
+
+}