/** * 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 hard cache to improve caching performance. * This is provided because some Java VM's implement soft references differently. * The default is the "SoftCacheWeakIdentityMap". */ public void useHardCacheWeakIdentityMap() { setIdentityMapClass(ClassConstants.HardCacheWeakIdentityMap_Class); }
/** * 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 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 hard cache weak identity map. * This map uses weak references to only cache object in-memory. * It also includes a secondary fixed sized hard cache to improve caching performance. * This is provided because some Java VM's implement soft references differently. * The default is the "SoftCacheWeakIdentityMap". */ public void useHardCacheWeakIdentityMap() { setIdentityMapClass(ClassConstants.HardCacheWeakIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the soft identity map. * This map uses soft references to only cache all object in-memory, until memory is low. * Note that "low" is interpreted differently by different JVM's. * The default is the "SoftCacheWeakIdentityMap". */ public void useSoftIdentityMap() { setIdentityMapClass(ClassConstants.SoftIdentityMap_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 soft identity map. * This map uses soft references to only cache all object in-memory, until memory is low. * Note that "low" is interpreted differently by different JVM's. * The default is the "SoftCacheWeakIdentityMap". */ public void useSoftIdentityMap() { setIdentityMapClass(ClassConstants.SoftIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the no identity map. * This map does no caching. * Note: This map does not maintain object identity. * In general if caching is not desired a WeakIdentityMap should be used with an isolated descriptor. * The default is the "SoftCacheWeakIdentityMap". * @see ClassDescriptor#setIsIsolated(boolean) */ public void useNoIdentityMap() { setIdentityMapClass(ClassConstants.NoIdentityMap_Class); }
/** * 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 no identity map. * This map does no caching. * Note: This map does not maintain object identity. * In general if caching is not desired a WeakIdentityMap should be used with an isolated descriptor. * The default is the "SoftCacheWeakIdentityMap". * @see ClassDescriptor#setIsIsolated(boolean) */ public void useNoIdentityMap() { setIdentityMapClass(ClassConstants.NoIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be used by this descriptor. * The default is the "FullIdentityMap". */ public void setIdentityMapClass(Class theIdentityMapClass) { getCachePolicy().setIdentityMapClass(theIdentityMapClass); }
/** * PUBLIC: * Set the class of identity map to be used by this descriptor. * The default is the "FullIdentityMap". */ public void setIdentityMapClass(Class theIdentityMapClass) { getCachePolicy().setIdentityMapClass(theIdentityMapClass); }