1 package mircoders.storage;
8 import freemarker.template.*;
15 * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
20 public class DatabaseBreaking extends Database implements StorageObject{
22 private static DatabaseBreaking 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 DatabaseBreaking getInstance()
28 throws StorageObjectException {
29 if (instance == null) {
30 instance = new DatabaseBreaking();
31 instance.myselfDatabase = instance;
36 private DatabaseBreaking() throws StorageObjectException
39 //this.cache = new DatabaseCache(4);
40 this.theTable="breaking";
42 this.theEntityClass = Class.forName("mircoders.entity.EntityBreaking");
44 catch (Exception e) { throw new StorageObjectException(e.toString()); }