public boolean remove ( DbEntity e ) { Class < ? > cacheKey = cacheKeyMapping . getEntityCacheKey ( e . getClass ( ) ) ; Map < String , CachedDbEntity > typeMap = cachedEntites . get ( cacheKey ) ; if ( typeMap != null ) { return typeMap . remove ( e . getId ( ) ) != null ; } else { return false ; } }
Remove an entity from the cache