Config updated
[mir.git] / source / mircoders / entity / EntityMedia.java
index a0f9321..c4cc9ab 100755 (executable)
@@ -18,7 +18,7 @@ import mircoders.storage.*;
  */
 
 
-public class EntityMedia extends AbstractEntity implements Entity
+public class EntityMedia extends Entity
 {
   private static int instances;
 
@@ -33,6 +33,20 @@ public class EntityMedia extends AbstractEntity implements Entity
     setStorage(theStorage);
   }
 
+       /**
+        * fetches the MediaType entry assiciated w/ this media
+        *
+        * @return mir.entity.Entity
+        */
+       public Entity getMediaType() throws StorageObjectException {
+        try {
+            return ((DatabaseMedia)theStorageObject).getMediaType(this);
+        } catch (StorageObjectException e) {
+            throw new StorageObjectException("getMediaType(): "+e.toString());
+        }
+
+       }
+
   public void finalize() {
     instances--;
     super.finalize();