@ Override public void cacheResult ( CommercePriceList commercePriceList ) { entityCache . putResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceList . getUuid ( ) , commercePriceList . getGroupId ( ) } , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID , new Object [ ] { commercePriceList . getParentCommercePriceListId ( ) } , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commercePriceList . getCompanyId ( ) , commercePriceList . getExternalReferenceCode ( ) } , commercePriceList ) ; commercePriceList . resetOriginalValues ( ) ; }
Caches the commerce price list in the entity cache if it is enabled .