/** * 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 useRemoteHardCacheWeakIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.HardCacheWeakIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the weak identity map. * The default is the "SoftCacheWeakIdentityMap". */ public void useRemoteWeakIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.WeakIdentityMap_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 is the "SoftCacheWeakIdentityMap". */ public void useRemoteCacheIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(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 useRemoteFullIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.FullIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be used by this descriptor. * The default is the "FullIdentityMap". */ public void setRemoteIdentityMapClass(Class theIdentityMapClass) { getCachePolicy().setRemoteIdentityMapClass(theIdentityMapClass); }
/** * 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 useRemoteFullIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.FullIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be used by this descriptor. * The default is the "FullIdentityMap". */ public void setRemoteIdentityMapClass(Class theIdentityMapClass) { getCachePolicy().setRemoteIdentityMapClass(theIdentityMapClass); }
/** * 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 useRemoteNoIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.NoIdentityMap_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 is the "SoftCacheWeakIdentityMap". */ public void useRemoteCacheIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.CacheIdentityMap_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 useRemoteNoIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.NoIdentityMap_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 useRemoteSoftCacheWeakIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.SoftCacheWeakIdentityMap_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 useRemoteSoftIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.SoftIdentityMap_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 useRemoteSoftCacheWeakIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.SoftCacheWeakIdentityMap_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 useRemoteSoftIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.SoftIdentityMap_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 useRemoteHardCacheWeakIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.HardCacheWeakIdentityMap_Class); }
/** * PUBLIC: * Set the class of identity map to be the weak identity map. * The default is the "SoftCacheWeakIdentityMap". */ public void useRemoteWeakIdentityMap() { getCachePolicy().setRemoteIdentityMapClass(ClassConstants.WeakIdentityMap_Class); }