*/
-public class EntityMedia extends AbstractEntity implements Entity
+public class EntityMedia extends Entity
{
private static int instances;
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();