@ Override public void cacheResult ( CPOptionValue cpOptionValue ) { entityCache . putResult ( CPOptionValueModelImpl . ENTITY_CACHE_ENABLED , CPOptionValueImpl . class , cpOptionValue . getPrimaryKey ( ) , cpOptionValue ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpOptionValue . getUuid ( ) , cpOptionValue . getGroupId ( ) } , cpOptionValue ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_K , new Object [ ] { cpOptionValue . getCPOptionId ( ) , cpOptionValue . getKey ( ) } , cpOptionValue ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { cpOptionValue . getCompanyId ( ) , cpOptionValue . getExternalReferenceCode ( ) } , cpOptionValue ) ; cpOptionValue . resetOriginalValues ( ) ; }
Caches the cp option value in the entity cache if it is enabled .