first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / storage / DatabaseMediaType.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>This class implements the access to the media_type-table for the
16  *    media table.
17  *
18  *
19  */
20
21 public class DatabaseMediaType extends Database implements StorageObject{
22
23   private static DatabaseMediaType instance;
24
25   public static DatabaseMediaType getInstance() throws StorageObjectException {
26     if (instance == null) {
27       instance = new DatabaseMediaType();
28       instance.myselfDatabase = instance;
29     }
30     return instance;
31   }
32
33   private DatabaseMediaType() throws StorageObjectException
34   {
35     super();
36     this.hasTimestamp = false;
37     //this.cache = new DatabaseCache(20);
38     this.theTable="media_type";
39     try {
40       this.theEntityClass = Class.forName("mir.entity.GenericEntity");
41     }
42     catch (Exception e) { throw new StorageObjectException(e.toString()); }
43   }
44
45 }