1 package mir.storage.store.test;
6 * Copyright: Copyright (c) 2002
13 import mir.storage.store.*;
15 public class EntityC1 implements StorableObject {
19 public EntityC1(String id) {
23 public StoreIdentifier getStoreIdentifier() {
24 return new StoreIdentifier(this, StoreContainerType.STOC_TYPE_ENTITY,id);
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;