@ Override public void cacheResult ( List < CommerceOrderPayment > commerceOrderPayments ) { for ( CommerceOrderPayment commerceOrderPayment : commerceOrderPayments ) { if ( entityCache . getResult ( CommerceOrderPaymentModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderPaymentImpl . class , commerceOrderPayment . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrderPayment ) ; } else { commerceOrderPayment . resetOriginalValues ( ) ; } } }
Caches the commerce order payments in the entity cache if it is enabled .