first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / storage / DatabaseBreaking.java
1 package mircoders.storage;
2
3 import java.lang.*;
4 import java.sql.*;
5 import java.io.*;
6 import java.util.*;
7
8 import freemarker.template.*;
9
10 import mir.storage.*;
11 import mir.entity.*;
12 import mir.misc.*;
13
14 /**
15  * <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
16  *
17  *
18  */
19
20 public class DatabaseBreaking extends Database implements StorageObject{
21
22   private static DatabaseBreaking instance;
23
24   public static DatabaseBreaking getInstance() throws StorageObjectException {
25     if (instance == null) {
26       instance = new DatabaseBreaking();
27       instance.myselfDatabase = instance;
28     }
29     return instance;
30   }
31
32   private DatabaseBreaking() throws StorageObjectException
33   {
34     super();
35     //this.cache = new DatabaseCache(4);
36     this.theTable="breaking";
37     try {
38       this.theEntityClass = Class.forName("mircoders.entity.EntityBreaking");
39     }
40     catch (Exception e) { throw new StorageObjectException(e.toString()); }
41   }
42
43
44 }