Initial revision
[mir.git] / source / mircoders / storage / DatabaseArticleType.java
diff --git a/source/mircoders/storage/DatabaseArticleType.java b/source/mircoders/storage/DatabaseArticleType.java
new file mode 100755 (executable)
index 0000000..e7119e7
--- /dev/null
@@ -0,0 +1,50 @@
+package mircoders.storage;
+
+/**
+ * Title:
+ * Description:
+ * Copyright:    Copyright (c) 2001
+ * Company:      Indymedia
+ * @author
+ * @version 1.0
+ */
+
+import java.lang.*;
+import java.sql.*;
+import java.io.*;
+import java.util.*;
+
+import freemarker.template.*;
+
+import webdb.storage.*;
+import webdb.entity.*;
+import webdb.misc.*;
+
+
+public class DatabaseArticleType extends Database implements StorageObject{
+
+       private static DatabaseArticleType instance;
+       private static SimpleList articletypePopupData;
+
+       public static DatabaseArticleType getInstance() throws StorageObjectException
+       {
+               if (instance == null) {
+                       instance = new DatabaseArticleType();
+                       instance.myselfDatabase = instance;
+               }
+               return instance;
+       }
+
+       private DatabaseArticleType() throws StorageObjectException
+       {
+               super();
+               this.hasTimestamp = false;
+               this.theTable="article_type";
+               try { this.theEntityClass = Class.forName("mir.entity.EntityArticleType");      }
+               catch (Exception e) { throw new StorageObjectException(e.toString());   }
+       }
+
+       public SimpleList getPopupData() { return getPopupData("name",false); }
+
+
+}