public CachedDbEntity getCachedEntity ( Class < ? > type , String id ) { Class < ? > cacheKey = cacheKeyMapping . getEntityCacheKey ( type ) ; Map < String , CachedDbEntity > entitiesByType = cachedEntites . get ( cacheKey ) ; if ( entitiesByType != null ) { return entitiesByType . get ( id ) ; } else { return null ; } }
Looks up an entity in the cache .