/** * PUBLIC: * Set the class of identity map to be the weak identity map. * The default is the "SoftCacheWeakIdentityMap". */ public void useWeakIdentityMap() { setIdentityMapClass(ClassConstants.WeakIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the hard cache weak identity map. * This map uses weak references to only cache object in-memory. * It also includes a secondary fixed sized soft cache to improve caching performance. * This is provided because some Java VM's do not implement soft references correctly. * The default is the "SoftCacheWeakIdentityMap". */ public void useHardCacheWeakIdentityMap() { setIdentityMapClass(ClassConstants.HardCacheWeakIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the soft cache weak identity map. * The SoftCacheIdentityMap holds a fixed number of objects is memory * (using SoftReferences) to improve caching. * The default is the "SoftCacheWeakIdentityMap". */ public void useSoftCacheWeakIdentityMap() { setIdentityMapClass(ClassConstants.SoftCacheWeakIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the cache identity map. * This map caches the LRU instances read from the database. * The default in JDK1.1 is "FullIdentityMap", in JDK1.2 it is the "SoftCacheWeakIdentityMap". */ public void useCacheIdentityMap() { setIdentityMapClass(ClassConstants.CacheIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the full identity map. * This map caches all instances read and grows to accomodate them. * The default is the "SoftCacheWeakIdentityMap". */ public void useFullIdentityMap() { setIdentityMapClass(ClassConstants.FullIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the no identity map. * This map does no caching. * The default is the "SoftCacheWeakIdentityMap". */ public void useNoIdentityMap() { setIdentityMapClass(ClassConstants.NoIdentityMap_Class); }
descriptor.setIdentityMapClass(type);