
com.samskivert.depot.ValidatingCacheInvalidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of depot Show documentation
Show all versions of depot Show documentation
A library for relational-database-based persistence in Java.
//
// Depot library - a Java relational persistence library
// http://code.google.com/p/depot/source/browse/trunk/LICENSE
package com.samskivert.depot;
/**
* An augmented cache invalidator interface for invalidators that can ensure that they are
* operating on the proper persistent record class.
*/
public interface ValidatingCacheInvalidator extends CacheInvalidator
{
/**
* 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.
*
* @exception IllegalArgumentException thrown if the supplied persistent record class does not
* match the class that this invalidator will flush from the cache.
*/
public void validateFlushType (Class> pClass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy