@ Override public void cacheResult ( CPMeasurementUnit cpMeasurementUnit ) { entityCache . putResult ( CPMeasurementUnitModelImpl . ENTITY_CACHE_ENABLED , CPMeasurementUnitImpl . class , cpMeasurementUnit . getPrimaryKey ( ) , cpMeasurementUnit ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpMeasurementUnit . getUuid ( ) , cpMeasurementUnit . getGroupId ( ) } , cpMeasurementUnit ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K_T , new Object [ ] { cpMeasurementUnit . getGroupId ( ) , cpMeasurementUnit . getKey ( ) , cpMeasurementUnit . getType ( ) } , cpMeasurementUnit ) ; cpMeasurementUnit . resetOriginalValues ( ) ; }
Caches the cp measurement unit in the entity cache if it is enabled .