Initial revision
[mir.git] / source / mircoders / storage / DatabaseImageLayout.java
1 package mircoders.storage;
2
3 import java.lang.*;
4 import java.sql.*;
5 import java.io.*;
6 import java.util.*;
7
8 import freemarker.template.*;
9
10 import webdb.storage.*;
11 import webdb.entity.*;
12 import webdb.misc.*;
13
14 /**
15  * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
16  *
17  *
18  */
19
20 public class DatabaseImageLayout extends Database implements StorageObject{
21
22         private static DatabaseImageLayout instance;
23         private static SimpleList publisherPopupData;
24
25         public static DatabaseImageLayout getInstance() throws StorageObjectException
26         {
27                 if (instance == null) {
28                         instance = new DatabaseImageLayout();
29                         instance.myselfDatabase = instance;
30                 }
31                 return instance;
32         }
33
34         private DatabaseImageLayout() throws StorageObjectException
35         {
36                 super();
37                 this.hasTimestamp = false;
38                 this.theTable="img_layout";
39                 try { this.theEntityClass = Class.forName("mir.entity.EntityImageLayout");      }
40                 catch (Exception e) { throw new StorageObjectException(e.toString());   }
41         }
42
43         public SimpleList getPopupData() { return getPopupData("name",true); }
44
45
46 }