com.samskivert.jdbc.depot
Interface ValidatingCacheInvalidator

All Superinterfaces:
CacheInvalidator
All Known Implementing Classes:
Key, MultiKey

public interface ValidatingCacheInvalidator
extends CacheInvalidator

An augmented cache invalidator interface for invalidators that can ensure that they are operating on the proper persistent record class.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.samskivert.jdbc.depot.CacheInvalidator
CacheInvalidator.TraverseWithFilter<T extends Serializable>
 
Method Summary
 void validateFlushType(Class<?> pClass)
          Validates that this invalidator operates on the supplied persistent record class.
 
Methods inherited from interface com.samskivert.jdbc.depot.CacheInvalidator
invalidate
 

Method Detail

validateFlushType

void validateFlushType(Class<?> pClass)
Validates that this invalidator operates on the supplied persistent record class. This helps to catch programmer errors where one record type is used for a query clause and another is used for the cache invalidator.

Throws:
IllegalArgumentException - thrown if the supplied persistent record class does not match the class that this invalidator will flush from the cache.


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.