Initial revision
[mir.git] / source / mircoders / storage / DatabaseFeature.java
diff --git a/source/mircoders/storage/DatabaseFeature.java b/source/mircoders/storage/DatabaseFeature.java
new file mode 100755 (executable)
index 0000000..e51bbf7
--- /dev/null
@@ -0,0 +1,51 @@
+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 DatabaseFeature extends Database implements StorageObject{
+
+       private static DatabaseFeature instance;
+
+       public static DatabaseFeature getInstance() throws StorageObjectException {
+                       if (instance == null) {
+               instance = new DatabaseFeature();
+               instance.myselfDatabase = instance;
+                       }
+               return instance;
+       }
+
+       private DatabaseFeature() throws StorageObjectException
+       {
+               super();
+               this.cache = new HashMap();
+               this.hasTimestamp = false;
+               this.theTable="feature";
+
+               try {
+                               this.theEntityClass = Class.forName("mir.entity.EntityFeature");
+               }
+               catch (Exception e) {
+                               throw new StorageObjectException(e.toString());
+               }
+       }
+
+       public SimpleList getPopupData() {
+               return getPopupData("title",true);
+       }
+
+}