first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mir / storage / store / test / EntityC1.java
1 package mir.storage.store.test;
2
3 /**
4  * Title:
5  * Description:
6  * Copyright:    Copyright (c) 2002
7  * Company:
8  * @author
9  * @version 1.0
10  */
11
12 import java.util.*;
13 import mir.storage.store.*;
14
15 public class EntityC1 implements StorableObject {
16
17         String id;
18
19         public EntityC1(String id) {
20                 this.id=id;
21         }
22
23         public StoreIdentifier getStoreIdentifier() {
24                 return new StoreIdentifier(this, StoreContainerType.STOC_TYPE_ENTITY,id);
25         }
26
27         public Set getNotifyOnReleaseSet() {
28     HashSet notifiees = new HashSet();
29     // simulating a relation from EntityC1 to EntityC2/Entitylist
30     notifiees.add(StoreContainerType.valueOf( EntityC2.class,
31                                               StoreContainerType.STOC_TYPE_ENTITYLIST));
32     // simulates a relation to EntityC2 with uniqueIdentifier "1"
33     notifiees.add(new StoreIdentifier(EntityC2.class,"1"));
34     notifiees.add(new StoreIdentifier(EntityC2.class,"18"));
35                 return (Set)notifiees;
36         }
37 }