@ Override public void cacheResult ( CommerceWarehouse commerceWarehouse ) { entityCache . putResult ( CommerceWarehouseModelImpl . ENTITY_CACHE_ENABLED , CommerceWarehouseImpl . class , commerceWarehouse . getPrimaryKey ( ) , commerceWarehouse ) ; commerceWarehouse . resetOriginalValues ( ) ; }
Caches the commerce warehouse in the entity cache if it is enabled .