1 package mircoders.storage;
8 import freemarker.template.*;
15 * <b>This class implements the access to the media_type-table for the
21 public class DatabaseMediaType extends Database implements StorageObject{
23 private static DatabaseMediaType instance;
25 public static DatabaseMediaType getInstance() throws StorageObjectException {
26 if (instance == null) {
27 instance = new DatabaseMediaType();
28 instance.myselfDatabase = instance;
33 private DatabaseMediaType() throws StorageObjectException
36 this.hasTimestamp = false;
37 //this.cache = new DatabaseCache(20);
38 this.theTable="media_type";
40 this.theEntityClass = Class.forName("mir.entity.GenericEntity");
42 catch (Exception e) { throw new StorageObjectException(e.toString()); }