FileDocCategorySizeDatePackage
NoIdentityMap.javaAPI DocGlassfish v2 API4617Tue May 22 16:54:36 BST 2007oracle.toplink.essentials.internal.identitymaps

NoIdentityMap

public class NoIdentityMap extends IdentityMap

Purpose: Provide the capability to not cache objects at all.

Responsibilities:

  • Do nothing when an object is cached
since
TOPLink/Java 1.0

Fields Summary
Constructors Summary
public NoIdentityMap(int size)

        super(size);
    
Methods Summary
public oracle.toplink.essentials.internal.identitymaps.CacheKeyacquire(java.util.Vector primaryKey)
locking for no identity.

        CacheKey cacheKey = new CacheKey(primaryKey);
        cacheKey.acquire();
        return cacheKey;
    
public voidcollectLocks(java.util.HashMap threadList)
INTERNAL: Used to print all the Locks in every identity map in this session. The output of this method will go to log passed in as a parameter.

    
public java.util.Enumerationelements()
Allow for the cache to be iterated on.

        return new Vector(1).elements();
    
public java.lang.Objectget(java.util.Vector primaryKey)
Return the object cached in the identity map Return null as no object is cached in the no IM.

        return null;
    
protected oracle.toplink.essentials.internal.identitymaps.CacheKeygetCacheKey(oracle.toplink.essentials.internal.identitymaps.CacheKey searchKey)
Return null since no objects are actually cached.

        return null;
    
public intgetSize()

return
0 (zero)

        return 0;
    
public intgetSize(java.lang.Class myClass, boolean recurse)
Return the number of actual objects of type myClass in the IdentityMap. Recurse = true will include subclasses of myClass in the count.

        return 0;
    
public java.lang.ObjectgetWriteLockValue(java.util.Vector primaryKey)
Get the write lock value from the cache key associated to the primarykey

        return null;
    
public java.util.Enumerationkeys()
Allow for the cache keys to be iterated on.

        return new Vector(1).elements();
    
public oracle.toplink.essentials.internal.identitymaps.CacheKeyput(java.util.Vector aVector, java.lang.Object object, java.lang.Object writeLockValue, long readTime)
DO NOTHING.

        return null;
    
public voidput(oracle.toplink.essentials.internal.identitymaps.CacheKey key)
DO NOTHING

        return;
    
public java.lang.Objectremove(java.util.Vector primaryKey)
Do Nothing. Return null, since no objects are cached.

        return null;
    
public java.lang.Objectremove(oracle.toplink.essentials.internal.identitymaps.CacheKey searchKey)
Do Nothing Return null, since no objects are cached.

        return null;
    
public voidsetWriteLockValue(java.util.Vector primaryKey, java.lang.Object writeLockValue)