Kodo 4.0.0 generated on May 15 2006

kodo.persistence
Class StoreCache

java.lang.Object
  extended by kodo.persistence.StoreCache

public class StoreCache
extends Object

Represents the L2 cache over the data store.

Since:
4.0

Field Summary
static String NAME_DEFAULT
           
 
Constructor Summary
StoreCache(kodo.persistence.EntityManagerFactoryImpl emf, kodo.datacache.DataCache cache)
          Constructor; supply delegate.
 
Method Summary
 boolean contains(Class cls, Object oid)
          Whether the cache contains data for the given oid.
 boolean containsAll(Class cls, Collection oids)
          Whether the cache contains data for the given oids.
 boolean containsAll(Class cls, Object... oids)
          Whether the cache contains data for the given oids.
 boolean equals(Object other)
           
 void evict(Class cls, Object oid)
          Remove data for the given oid from the cache.
 void evictAll()
          Clear the cache.
 void evictAll(Class cls, Collection oids)
          Remove data for the given oids from the cache.
 void evictAll(Class cls, Object... oids)
          Remove data for the given oids from the cache.
 kodo.datacache.DataCache getDelegate()
          Delegate.
 int hashCode()
           
 void pin(Class cls, Object oid)
          Pin the data for the given oid to the cache.
 void pinAll(Class cls, Collection oids)
          Pin the data for the given oids to the cache.
 void pinAll(Class cls, Object... oids)
          Pin the data for the given oids to the cache.
 void unpin(Class cls, Object oid)
          Unpin the data for the given oid from the cache.
 void unpinAll(Class cls, Collection oids)
          Unpin the data for the given oids from the cache.
 void unpinAll(Class cls, Object... oids)
          Unpin the data for the given oids from the cache.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_DEFAULT

public static final String NAME_DEFAULT
See Also:
Constant Field Values
Constructor Detail

StoreCache

public StoreCache(kodo.persistence.EntityManagerFactoryImpl emf,
                  kodo.datacache.DataCache cache)
Constructor; supply delegate.

Method Detail

getDelegate

public kodo.datacache.DataCache getDelegate()
Delegate.


contains

public boolean contains(Class cls,
                        Object oid)
Whether the cache contains data for the given oid.


containsAll

public boolean containsAll(Class cls,
                           Object... oids)
Whether the cache contains data for the given oids.


containsAll

public boolean containsAll(Class cls,
                           Collection oids)
Whether the cache contains data for the given oids.


pin

public void pin(Class cls,
                Object oid)
Pin the data for the given oid to the cache.


pinAll

public void pinAll(Class cls,
                   Object... oids)
Pin the data for the given oids to the cache.


pinAll

public void pinAll(Class cls,
                   Collection oids)
Pin the data for the given oids to the cache.


unpin

public void unpin(Class cls,
                  Object oid)
Unpin the data for the given oid from the cache.


unpinAll

public void unpinAll(Class cls,
                     Object... oids)
Unpin the data for the given oids from the cache.


unpinAll

public void unpinAll(Class cls,
                     Collection oids)
Unpin the data for the given oids from the cache.


evict

public void evict(Class cls,
                  Object oid)
Remove data for the given oid from the cache.


evictAll

public void evictAll(Class cls,
                     Object... oids)
Remove data for the given oids from the cache.


evictAll

public void evictAll(Class cls,
                     Collection oids)
Remove data for the given oids from the cache.


evictAll

public void evictAll()
Clear the cache.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

Kodo 4.0.0 generated on May 15 2006

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.