@ Override public void cacheResult ( CommerceRegion commerceRegion ) { entityCache . putResult ( CommerceRegionModelImpl . ENTITY_CACHE_ENABLED , CommerceRegionImpl . class , commerceRegion . getPrimaryKey ( ) , commerceRegion ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceRegion . getUuid ( ) , commerceRegion . getGroupId ( ) } , commerceRegion ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commerceRegion . getCommerceCountryId ( ) , commerceRegion . getCode ( ) } , commerceRegion ) ; commerceRegion . resetOriginalValues ( ) ; }
Caches the commerce region in the entity cache if it is enabled .