@ Override public void cacheResult ( List < CPMeasurementUnit > cpMeasurementUnits ) { for ( CPMeasurementUnit cpMeasurementUnit : cpMeasurementUnits ) { if ( entityCache . getResult ( CPMeasurementUnitModelImpl . ENTITY_CACHE_ENABLED , CPMeasurementUnitImpl . class , cpMeasurementUnit . getPrimaryKey ( ) ) == null ) { cacheResult ( cpMeasurementUnit ) ; } else { cpMeasurementUnit . resetOriginalValues ( ) ; } } }
Caches the cp measurement units in the entity cache if it is enabled .