1 package mircoders.storage;
8 import freemarker.template.*;
15 * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
20 public class DatabaseImageColor extends Database implements StorageObject{
22 private static DatabaseImageColor instance;
23 private static SimpleList publisherPopupData;
25 // the following *has* to be sychronized cause this static method
26 // could get preemted and we could end up with 2 instances of DatabaseFoo..
27 // see the "Singletons with needles and thread" article at JavaWorld -mh
28 public synchronized static DatabaseImageColor getInstance()
29 throws StorageObjectException
31 if (instance == null) {
32 instance = new DatabaseImageColor();
33 instance.myselfDatabase = instance;
38 private DatabaseImageColor() throws StorageObjectException
41 this.hasTimestamp = false;
42 this.theTable="img_color";
45 public SimpleList getPopupData()
46 throws StorageObjectException { return getPopupData("name",true); }