1 16 17 21 22 package javax.jdo.datastore; 23 24 import java.util.Collection ; 25 26 27 35 public interface DataStoreCache { 36 37 41 void evict (Object oid); 42 43 48 void evictAll (); 49 50 54 void evictAll (Object [] oids); 55 56 60 void evictAll (Collection oids); 61 62 67 void evictAll (Class pcClass, boolean subclasses); 68 69 73 void pin (Object oid); 74 75 79 void pinAll (Collection oids); 80 81 85 void pinAll (Object [] oids); 86 87 92 void pinAll (Class pcClass, boolean subclasses); 93 94 98 void unpin(Object oid); 99 100 104 void unpinAll(Collection oids); 105 106 110 void unpinAll(Object [] oids); 111 112 117 void unpinAll(Class pcClass, boolean subclasses); 118 119 125 public class EmptyDataStoreCache implements DataStoreCache { 126 127 public EmptyDataStoreCache() { 128 } 129 130 public void evict(Object oid) { 131 } 132 133 public void evictAll() { 134 } 135 136 public void evictAll(Object [] oids) { 137 } 138 139 public void evictAll(Collection oids) { 140 } 141 142 public void evictAll(Class pcClass, boolean subclasses) { 143 } 144 145 public void pin(Object oid) { 146 } 147 148 public void pinAll(Object [] oids) { 149 } 150 151 public void pinAll(Collection oids) { 152 } 153 154 public void pinAll(Class pcClass, boolean subclasses) { 155 } 156 157 public void unpin(Object oid) { 158 } 159 160 public void unpinAll(Object [] oids) { 161 } 162 163 public void unpinAll(Collection oids) { 164 } 165 166 public void unpinAll(Class pcClass, boolean subclasses) { 167 } 168 } 169 } 170 | Popular Tags |