1 package mircoders.storage;
6 * Copyright: Copyright (c) 2001
17 import freemarker.template.*;
24 public class DatabaseArticleType extends Database implements StorageObject{
26 private static DatabaseArticleType instance;
27 private static SimpleList articletypePopupData;
29 // the following *has* to be sychronized cause this static method
30 // could get preemted and we could end up with 2 instances of DatabaseFoo..
31 // see the "Singletons with needles and thread" article at JavaWorld -mh
32 public synchronized static DatabaseArticleType getInstance()
33 throws StorageObjectException
35 if (instance == null) {
36 instance = new DatabaseArticleType();
37 instance.myselfDatabase = instance;
42 private DatabaseArticleType() throws StorageObjectException
45 this.hasTimestamp = false;
46 this.theTable="article_type";
49 public SimpleList getPopupData()
50 throws StorageObjectException { return getPopupData("name",false); }