first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / storage / DatabaseLanguage.java
1 package mircoders.storage;
2
3 /**
4  * Title: DatabaseLanguage
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 DatabaseLanguage extends Database implements StorageObject{
25
26         private static DatabaseLanguage instance;
27         private static SimpleList languagePopupData;
28
29         public static DatabaseLanguage getInstance() throws StorageObjectException
30         {
31                 if (instance == null) {
32                         instance = new DatabaseLanguage();
33                         instance.myselfDatabase = instance;
34                 }
35                 return instance;
36         }
37
38         private DatabaseLanguage() throws StorageObjectException
39         {
40                 super();
41                 this.hasTimestamp = false;
42                 this.theTable="language";
43         }
44
45         public SimpleList getPopupData() throws StorageObjectException { 
46       SimpleList pData = null;
47       try {
48       pData = getPopupData("name",false);
49       } catch (StorageObjectException e) {System.err.println("FF");}
50       return pData;
51     }
52
53
54 }