commented out cache initialization until it works properly.
[mir.git] / source / mircoders / storage / DatabaseBreaking.java
index 888bc4e..20c8940 100755 (executable)
@@ -19,29 +19,26 @@ import mir.misc.*;
 
 public class DatabaseBreaking extends Database implements StorageObject{
 
-       private static DatabaseBreaking instance;
-
-       public static DatabaseBreaking getInstance() throws StorageObjectException {
-               if (instance == null) {
-                       instance = new DatabaseBreaking();
-                       instance.myselfDatabase = instance;
-               }
-               return instance;
-       }
-
-       private DatabaseBreaking() throws StorageObjectException
-       {
-               super();
-    theLog.printDebugInfo("-- outside database");
-               this.cache = new HashMap();
-               this.theTable="breaking";
-               try {
-                       this.theEntityClass = Class.forName("mir.entity.EntityBreaking");
-               }
-               catch (Exception e) { throw new StorageObjectException(e.toString());   }
-
-    theLog.printDebugInfo("-- leaving dbb");
-       }
+  private static DatabaseBreaking instance;
+
+  public static DatabaseBreaking getInstance() throws StorageObjectException {
+    if (instance == null) {
+      instance = new DatabaseBreaking();
+      instance.myselfDatabase = instance;
+    }
+    return instance;
+  }
+
+  private DatabaseBreaking() throws StorageObjectException
+  {
+    super();
+    //this.cache = new DatabaseCache(4);
+    this.theTable="breaking";
+    try {
+      this.theEntityClass = Class.forName("mircoders.entity.EntityBreaking");
+    }
+    catch (Exception e) { throw new StorageObjectException(e.toString()); }
+  }
 
 
 }