1 package mircoders.storage;
8 import freemarker.template.*;
15 * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
20 public class DatabaseTopics extends Database implements StorageObject{
22 private static DatabaseTopics 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 DatabaseTopics getInstance()
28 throws StorageObjectException {
29 if (instance == null) {
30 instance = new DatabaseTopics();
31 instance.myselfDatabase = instance;
36 private DatabaseTopics() throws StorageObjectException
39 //this.cache = new DatabaseCache(20);
40 this.hasTimestamp = false;
41 this.theTable="topic";
43 this.theEntityClass = Class.forName("mircoders.entity.EntityTopics");
46 throw new StorageObjectException(e.toString());
51 public SimpleList getPopupData() throws StorageObjectException {
52 return getPopupData("title",true);