1 21 package oracle.toplink.essentials.internal.identitymaps; 23 24 import java.util.*; 25 26 33 public class NoIdentityMap extends IdentityMap { 34 public NoIdentityMap(int size) { 35 super(size); 36 } 37 38 41 public CacheKey acquire(Vector primaryKey) { 42 CacheKey cacheKey = new CacheKey(primaryKey); 43 cacheKey.acquire(); 44 return cacheKey; 45 } 46 47 52 public void collectLocks(HashMap threadList) { 53 } 54 55 58 public Enumeration elements() { 59 return new Vector(1).elements(); 60 } 61 62 66 public Object get(Vector primaryKey) { 67 return null; 68 } 69 70 73 protected CacheKey getCacheKey(CacheKey searchKey) { 74 return null; 75 } 76 77 80 public int getSize() { 81 return 0; 82 } 83 84 88 public int getSize(Class myClass, boolean recurse) { 89 return 0; 90 } 91 92 95 public Object getWriteLockValue(Vector primaryKey) { 96 return null; 97 } 98 99 102 public Enumeration keys() { 103 return new Vector(1).elements(); 104 } 105 106 109 public CacheKey put(Vector aVector, Object object, Object writeLockValue, long readTime) { 110 return null; 111 } 112 113 116 public void put(CacheKey key) { 117 return; 118 } 119 120 124 public Object remove(Vector primaryKey) { 125 return null; 126 } 127 128 132 public Object remove(CacheKey searchKey) { 133 return null; 134 } 135 136 public void setWriteLockValue(Vector primaryKey, Object writeLockValue) { 137 } 138 } 139 | Popular Tags |