1 package mircoders.storage;
8 import freemarker.template.*;
18 * Copyright: Copyright (c) 2001
25 public class DatabaseMessages extends Database implements StorageObject{
27 private static DatabaseMessages instance;
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 DatabaseMessages getInstance()
33 throws StorageObjectException {
34 if (instance == null) {
35 instance = new DatabaseMessages();
36 instance.myselfDatabase = instance;
41 private DatabaseMessages() throws StorageObjectException
44 //this.cache = new DatabaseCache(10);
45 this.theTable="messages";