1 package mircoders.storage;
8 import freemarker.template.*;
15 * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
20 public class DatabaseFeature extends Database implements StorageObject{
22 private static DatabaseFeature instance;
24 // the following *has* to be sychronized cause this static method
25 // could get preemted and we could end up with 2 instances of DatabaseFoo..
26 // see the "Singletons with needles and thread" article at JavaWorld -mh
27 public synchronized static DatabaseFeature getInstance()
28 throws StorageObjectException {
29 if (instance == null) {
30 instance = new DatabaseFeature();
31 instance.myselfDatabase = instance;
36 private DatabaseFeature() throws StorageObjectException
39 //this.cache = new DatabaseCache(10);
40 this.hasTimestamp = false;
41 this.theTable="feature";
44 this.theEntityClass = Class.forName("mircoders.entity.EntityFeature");
47 throw new StorageObjectException(e.toString());
51 public SimpleList getPopupData() throws StorageObjectException {
52 return getPopupData("title",true);