first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / entity / EntityMedia.java
1 package mircoders.entity;
2
3 import java.lang.*;
4 import java.io.*;
5 import java.util.*;
6 import java.sql.*;
7
8 import mir.entity.*;
9 import mir.misc.*;
10 import mir.storage.*;
11
12 import mircoders.storage.*;
13 /**
14  * Diese Klasse enthält die Daten eines MetaObjekts
15  *
16  * @author RK
17  * @version 29.6.1999
18  */
19
20
21 public class EntityMedia extends Entity
22 {
23
24   public EntityMedia(){
25     super();
26   }
27
28   public EntityMedia(StorageObject theStorage)
29   {
30     this();
31     setStorage(theStorage);
32   }
33
34         /**
35          * fetches the MediaType entry assiciated w/ this media
36          *
37          * @return mir.entity.Entity
38          */
39         public Entity getMediaType() throws StorageObjectException {
40         try {
41             return ((DatabaseMedia)theStorageObject).getMediaType(this);
42         } catch (StorageObjectException e) {
43             throw new StorageObjectException("getMediaType(): "+e.toString());
44         }
45
46         }
47 }