/** * Flushes the entity cache: Depending on the entity state, the required {@link DbOperation} is * performed and the cache is updated. */ protected void flushEntityCache() { List<CachedDbEntity> cachedEntities = dbEntityCache.getCachedEntities(); for (CachedDbEntity cachedDbEntity : cachedEntities) { flushCachedEntity(cachedDbEntity); } // log cache state after flush LOG.flushedCacheState(dbEntityCache.getCachedEntities()); }