@ Override public void cacheResult ( List < CommerceTaxMethod > commerceTaxMethods ) { for ( CommerceTaxMethod commerceTaxMethod : commerceTaxMethods ) { if ( entityCache . getResult ( CommerceTaxMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxMethodImpl . class , commerceTaxMethod . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceTaxMethod ) ; } else { commerceTaxMethod . resetOriginalValues ( ) ; } } }
Caches the commerce tax methods in the entity cache if it is enabled .