org.jboss.ejb.plugins.cmp.jdbc2.schema
Class CacheInvalidator

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc2.schema.CacheInvalidator
All Implemented Interfaces:
Invalidatable (src)

public class CacheInvalidator
extends java.lang.Object
implements Invalidatable (src)


Constructor Summary
CacheInvalidator(Cache (src)  cache, TransactionManager (src)  tm, InvalidationGroup (src)  group)
           
 
Method Summary
 void areInvalid(java.io.Serializable[] keys)
          Indicates that the resources with the give keys should be invalidated (i.e.
 void invalidateAll()
          All entries should be invalidated.
 void isInvalid(java.io.Serializable key)
          Indicates that the resource with the given key should be invalidated (i.e.
 void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheInvalidator

public CacheInvalidator(Cache (src)  cache,
                        TransactionManager (src)  tm,
                        InvalidationGroup (src)  group)
Method Detail

unregister

public void unregister()

isInvalid

public void isInvalid(java.io.Serializable key)
Description copied from interface: Invalidatable (src)
Indicates that the resource with the given key should be invalidated (i.e. removed from cache)

Specified by:
isInvalid in interface Invalidatable (src)
Parameters:
key - Key of the resource to be invalidated

areInvalid

public void areInvalid(java.io.Serializable[] keys)
Description copied from interface: Invalidatable (src)
Indicates that the resources with the give keys should be invalidated (i.e. removed from cache)

Specified by:
areInvalid in interface Invalidatable (src)
Parameters:
keys - Keys of the resources to be invalidated

invalidateAll

public void invalidateAll()
Description copied from interface: Invalidatable (src)
All entries should be invalidated.

Specified by:
invalidateAll in interface Invalidatable (src)