mass update mir codeswitch
[mir.git] / source / mircoders / storage / DatabaseArticleType.java
1 package mircoders.storage;
2
3 /**
4  * Title:
5  * Description:
6  * Copyright:    Copyright (c) 2001
7  * Company:      Indymedia
8  * @author
9  * @version 1.0
10  */
11
12 import java.lang.*;
13 import java.sql.*;
14 import java.io.*;
15 import java.util.*;
16
17 import freemarker.template.*;
18
19 import mir.storage.*;
20 import mir.entity.*;
21 import mir.misc.*;
22
23
24 public class DatabaseArticleType extends Database implements StorageObject{
25
26         private static DatabaseArticleType instance;
27         private static SimpleList articletypePopupData;
28
29         public static DatabaseArticleType getInstance() throws StorageObjectException
30         {
31                 if (instance == null) {
32                         instance = new DatabaseArticleType();
33                         instance.myselfDatabase = instance;
34                 }
35                 return instance;
36         }
37
38         private DatabaseArticleType() throws StorageObjectException
39         {
40                 super();
41                 this.hasTimestamp = false;
42                 this.theTable="article_type";
43                 try { this.theEntityClass = Class.forName("mir.entity.EntityArticleType");      }
44                 catch (Exception e) { throw new StorageObjectException(e.toString());   }
45         }
46
47         public SimpleList getPopupData() { return getPopupData("name",false); }
48
49
50 }