e6377ea5178fec701e991545a6299e43c3ba66f7
[mir.git] / source / mircoders / storage / DatabaseMediafolder.java
1 package mircoders.storage;
2
3 /**
4  * Title:        Mir
5  * Description:  Ihre Beschreibung
6  * Copyright:    Copyright (c) 1999
7  * Company:
8  * @author
9  * @version
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 webdb.storage.*;
20 import webdb.entity.*;
21 import webdb.misc.*;
22
23
24
25 public class DatabaseMediafolder extends Database implements StorageObject{
26
27         private static DatabaseMediafolder instance;
28
29         public static DatabaseMediafolder getInstance() throws StorageObjectException {
30                 if (instance == null) {
31                         instance = new DatabaseMediafolder();
32                         instance.myselfDatabase = instance;
33                 }
34                 return instance;
35         }
36
37         private DatabaseMediafolder() throws StorageObjectException
38         {
39                 super();
40                 this.hasTimestamp = false;
41                 this.cache = new HashMap();
42                 this.theTable="media_folder";
43                 try {
44                         this.theEntityClass = Class.forName("mir.entity.EntityMediafolder");
45                 }
46                 catch (Exception e) {   throw new StorageObjectException(e.toString());
47                 }
48         }
49
50         public SimpleList getPopupData() {
51                 return getPopupData("name",true);
52         }
53
54 }