1 package mircoders.storage;
4 * Title: DatabaseLanguage
6 * Copyright: Copyright (c) 2001
17 import freemarker.template.*;
24 public class DatabaseLanguage extends Database implements StorageObject{
26 private static DatabaseLanguage instance;
27 private static SimpleList languagePopupData;
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 DatabaseLanguage getInstance()
33 throws StorageObjectException
35 if (instance == null) {
36 instance = new DatabaseLanguage();
37 instance.myselfDatabase = instance;
42 private DatabaseLanguage() throws StorageObjectException
45 this.hasTimestamp = false;
46 this.theTable="language";
49 public SimpleList getPopupData() throws StorageObjectException {
50 SimpleList pData = null;
52 pData = getPopupData("name",false);
53 } catch (StorageObjectException e) {System.err.println("FF");}