1 21 package oracle.toplink.essentials.sessions; 23 24 import java.util.*; 25 import oracle.toplink.essentials.expressions.*; 26 import oracle.toplink.essentials.exceptions.*; 27 import oracle.toplink.essentials.queryframework.*; 28 import oracle.toplink.essentials.internal.sessions.AbstractRecord; 29 30 44 public interface IdentityMapAccessor { 45 46 53 public boolean containsObjectInIdentityMap(Object domainObject); 54 55 63 public boolean containsObjectInIdentityMap(Vector primaryKey, Class theClass); 64 65 73 public boolean containsObjectInIdentityMap(Record rowContainingPrimaryKey, Class theClass); 74 75 90 public Vector getAllFromIdentityMap(Expression selectionCriteria, Class theClass, 91 Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, 92 boolean shouldReturnInvalidatedObjects) 93 throws QueryException; 94 95 107 public Vector getAllFromIdentityMap(Expression selectionCriteria, Class theClass, 108 Record translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy) 109 throws QueryException; 110 111 118 public Object getFromIdentityMap(Object domainObject); 119 120 128 public Object getFromIdentityMap(Vector primaryKey, Class theClass); 129 130 138 public Object getFromIdentityMap(Record rowContainingPrimaryKey, Class theClass); 139 140 150 public Object getFromIdentityMap(Vector primaryKey, Class theClass, boolean shouldReturnInvalidatedObjects); 151 152 162 public Object getFromIdentityMap(Record rowContainingPrimaryKey, Class theClass, 163 boolean shouldReturnInvalidatedObjects); 164 165 176 public Object getFromIdentityMap(Expression selectionCriteria, Class theClass, Record translationRow) 177 throws QueryException; 178 179 193 public Object getFromIdentityMap(Expression selectionCriteria, Class theClass, Record translationRow, 194 InMemoryQueryIndirectionPolicy valueHolderPolicy) throws QueryException; 195 196 204 public long getRemainingValidTime(Object object); 205 206 213 public Object getWriteLockValue(Object domainObject); 214 215 223 public Object getWriteLockValue(Vector primaryKey, Class theClass); 224 225 234 public void initializeAllIdentityMaps(); 235 236 244 public void initializeIdentityMap(Class theClass); 245 246 254 public void initializeIdentityMaps(); 255 256 263 public void invalidateObject(Object object); 264 265 273 public void invalidateObject(Vector primaryKey, Class theClass); 274 275 283 public void invalidateObject(Record rowContainingPrimaryKey, Class theClass); 284 285 291 public void invalidateObjects(Vector collection); 292 293 306 public void invalidateObjects(Expression selectionCriteria); 307 308 313 public void invalidateAll(); 314 315 321 public void invalidateClass(Class myClass); 322 323 331 public void invalidateClass(Class myClass, boolean recurse); 332 333 340 public boolean isValid(Object object); 341 342 350 public boolean isValid(Vector primaryKey, Class theClass); 351 352 360 public boolean isValid(AbstractRecord rowContainingPrimaryKey, Class theClass); 361 362 368 public void printIdentityMap(Class businessClass); 369 370 375 public void printIdentityMaps(); 376 377 382 public void printIdentityMapLocks(); 383 384 391 public Object putInIdentityMap(Object domainObject); 392 393 401 public Object putInIdentityMap(Object domainObject, Vector key); 402 403 412 public Object putInIdentityMap(Object domainObject, Vector key, Object writeLockValue); 413 414 425 public Object putInIdentityMap(Object domainObject, Vector key, Object writeLockValue, long readTime); 426 427 435 public Object removeFromIdentityMap(Object domainObject); 436 437 446 public Object removeFromIdentityMap(Vector key, Class theClass); 447 448 455 public void updateWriteLockValue(Object domainObject, Object writeLockValue); 456 457 465 public void updateWriteLockValue(Vector primaryKey, Class theClass, Object writeLockValue); 466 467 474 public void validateCache(); 475 } | Popular Tags |