data. ... got lost
[mir.git] / source / mir / entity / StorableObjectEntity.java
1 package mir.entity;
2
3 /**
4  * Title:         StorableObjectEntity
5  * Description:   Basic Container that can be handled by ObjectStore
6  * Copyright:     Copyright (c) 2002
7  * Company:       indy
8  * @author        rk
9  * @version       1.0
10  */
11
12 import  java.util.*;
13 import  mir.storage.store.*;
14
15
16 public class StorableObjectEntity extends Entity
17                 implements StorableObject {
18
19   /**
20    *  Method:       getStoreIdentifier
21    *  Description:  returns unique StoreIdentifer under which the Entity
22    *                is Stored. Based upon primary key and tablename.
23    *
24    *  @return       StoreIdentifier
25    */
26   public StoreIdentifier getStoreIdentifier() {
27     String id = getId();
28     if ( id!=null && theStorageObject!= null )
29      return new StoreIdentifier(this, id+"@"+theStorageObject.getTableName());
30     return null;
31   }
32
33   /**
34    *  Method:       getNotifyOnReleaseSet()
35    *  Description:  returns empty Set, GenericContainer does not implement
36    *                dependencies.
37    *
38    *  @return       null
39    */
40   public Set getNotifyOnReleaseSet() { return null; }
41
42 }