/** * This method purges (removes) all caches associated with a table, if caching is enabled and * a corresponding model is marked cached. * * @param group key whose caches are to be purged. */ public void flush(String group) { if (enabled) { cacheProvider.flush(new CacheEvent(group, getClass().getName())); } }
/** * This method purges (removes) all caches associated with a table, if caching is enabled and * a corresponding model is marked cached. * * @param tableName table name whose caches are to be purged. */ public void purge(String dsmName, String tableName) { if (enabled) { cacheProvider.flush(new CacheEvent(getGroup(dsmName, tableName), getClass().getName())); } }
/** * This method purges (removes) all caches associated with a table, if caching is enabled and * a corresponding model is marked cached. * * @param group key whose caches are to be purged. */ public void flush(String group) { if (enabled) { cacheProvider.flush(new CacheEvent(group, getClass().getName())); } }