initial commit
authorfh <fh>
Fri, 31 Aug 2001 09:50:16 +0000 (09:50 +0000)
committerfh <fh>
Fri, 31 Aug 2001 09:50:16 +0000 (09:50 +0000)
source/mircoders/module/ModuleImcs.java [new file with mode: 0755]
source/mircoders/storage/DatabaseImcs.java [new file with mode: 0755]

diff --git a/source/mircoders/module/ModuleImcs.java b/source/mircoders/module/ModuleImcs.java
new file mode 100755 (executable)
index 0000000..7019286
--- /dev/null
@@ -0,0 +1,42 @@
+package mircoders.module;
+
+import java.io.*;
+import java.lang.*;
+import java.util.*;
+import java.sql.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import freemarker.template.*;
+
+import mir.servlet.*;
+import mir.module.*;
+import mir.entity.*;
+import mir.misc.*;
+import mir.storage.*;
+
+import mircoders.storage.*;
+
+/*
+ *  ModuleImcs -
+ *
+ *
+ * @author RK
+ */
+
+public class ModuleImcs extends AbstractModule
+{
+
+    static Logfile theLog;
+
+    public ModuleImcs(StorageObject theStorage) {
+           this.theStorage = theStorage;
+           if (theLog == null)
+             theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Imcs.Logfile"));
+    }
+
+    public SimpleList getImcsAsSimpleList() {
+           return ((DatabaseImcs)theStorage).getPopupData();
+    }
+
+}
diff --git a/source/mircoders/storage/DatabaseImcs.java b/source/mircoders/storage/DatabaseImcs.java
new file mode 100755 (executable)
index 0000000..b986be0
--- /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 mir.storage.*;
+import mir.entity.*;
+import mir.misc.*;
+
+/**
+ * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
+ *
+ *
+ */
+
+public class DatabaseImcs extends Database implements StorageObject{
+
+       private static DatabaseImcs instance;
+
+       public static DatabaseImcs getInstance() throws StorageObjectException {
+                       if (instance == null) {
+               instance = new DatabaseImcs();
+               instance.myselfDatabase = instance;
+                       }
+               return instance;
+       }
+
+       private DatabaseImcs() throws StorageObjectException
+       {
+          super();
+                       this.cache = new HashMap();
+                       this.hasTimestamp = false;
+                       this.theTable="imc";
+                       try {
+               this.theEntityClass = Class.forName("mircoders.entity.EntityImcs");
+                       }
+                       catch (Exception e) {
+               throw new StorageObjectException(e.toString());
+                       }
+
+       }
+
+       public SimpleList getPopupData() {
+               return getPopupData("title",true);
+       }
+
+
+
+}