-/**
- * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
- *
- *
- */
-
-public class DatabaseImageColor extends Database implements StorageObject{
-
- private static DatabaseImageColor instance;
- private static SimpleList publisherPopupData;
-
- // the following *has* to be sychronized cause this static method
- // could get preemted and we could end up with 2 instances of DatabaseFoo..
- // see the "Singletons with needles and thread" article at JavaWorld -mh
- public synchronized static DatabaseImageColor getInstance()
- throws StorageObjectException
- {
- if (instance == null) {
- instance = new DatabaseImageColor();
- instance.myselfDatabase = instance;
- }
- return instance;
- }
-
- private DatabaseImageColor() throws StorageObjectException
- {
- super();
- this.hasTimestamp = false;
- this.theTable="img_color";
- }
+ // the following *has* to be sychronized cause this static method
+ // could get preemted and we could end up with 2 instances of DatabaseFoo..
+ // see the "Singletons with needles and thread" article at JavaWorld -mh
+ public synchronized static DatabaseImageColor getInstance() {
+ if (instance == null) {
+ instance = new DatabaseImageColor();
+ }
+ return instance;
+ }