1 26 27 package org.objectweb.openccm.pss.runtime.common.lib; 28 29 36 public abstract class StorageHomeBase 37 extends org.omg.CORBA.LocalObject 38 implements org.objectweb.openccm.pss.runtime.common.api.StorageHomeBase 39 { 40 46 49 private org.objectweb.openccm.pss.runtime.common.api.CatalogBase _catalog; 50 51 54 protected java.util.List _storage_type_incarnations; 55 56 62 65 public StorageHomeBase() 66 { 67 _storage_type_incarnations = new java.util.ArrayList (); 68 _catalog = null; 69 } 70 71 77 83 89 92 public org.omg.CosPersistentState.CatalogBase 93 get_catalog() 94 { 95 return _catalog; 96 } 97 98 107 public abstract java.lang.Object 108 find_by_short_pid(byte[] short_pid) 109 throws org.omg.CosPersistentState.NotFound; 110 111 117 122 public void 123 initialize(org.objectweb.openccm.pss.runtime.common.api.CatalogBase catalog) 124 { 125 _catalog = catalog; 126 } 127 128 131 public void 132 register_storage_type_incarnation(java.lang.Object st_incarnation) 133 { 134 _storage_type_incarnations.add(st_incarnation); 135 } 136 137 140 public void 141 unregister_storage_type_incarnation(byte[] pid) 142 { 143 java.util.Iterator it = _storage_type_incarnations.iterator(); 144 org.omg.CosPersistentState.StorageObject so = null; 145 146 while(it.hasNext()) 147 { 148 so = (org.omg.CosPersistentState.StorageObject) it.next(); 149 if ( java.util.Arrays.equals(so.get_pid(), pid) ) 150 { 151 it.remove(); 152 return; 153 } 154 } 155 } 156 157 162 public abstract String 163 get_rid(); 164 165 170 public abstract String 171 get_st_rid(); 172 } 173 | Popular Tags |