@ Override public void cacheResult ( List < CPTaxCategory > cpTaxCategories ) { for ( CPTaxCategory cpTaxCategory : cpTaxCategories ) { if ( entityCache . getResult ( CPTaxCategoryModelImpl . ENTITY_CACHE_ENABLED , CPTaxCategoryImpl . class , cpTaxCategory . getPrimaryKey ( ) ) == null ) { cacheResult ( cpTaxCategory ) ; } else { cpTaxCategory . resetOriginalValues ( ) ; } } }
Caches the cp tax categories in the entity cache if it is enabled .