idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
31,000 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceAddressImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce addresses . | 96 | 9 |
31,001 | @ Override public void clearCache ( CommerceAddress commerceAddress ) { entityCache . removeResult ( CommerceAddressModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressImpl . class , commerceAddress . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for the commerce address . | 106 | 9 |
31,002 | @ Override public List < CommerceAddress > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce addresses . | 38 | 6 |
31,003 | public com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionLocalService getCommerceShippingFixedOptionLocalService ( ) { return commerceShippingFixedOptionLocalService ; } | Returns the commerce shipping fixed option local service . | 42 | 9 |
31,004 | public void setCommerceShippingFixedOptionLocalService ( com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionLocalService commerceShippingFixedOptionLocalService ) { this . commerceShippingFixedOptionLocalService = commerceShippingFixedOptionLocalService ; } | Sets the commerce shipping fixed option local service . | 57 | 10 |
31,005 | public com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelLocalService getCommerceShippingFixedOptionRelLocalService ( ) { return commerceShippingFixedOptionRelLocalService ; } | Returns the commerce shipping fixed option rel local service . | 45 | 10 |
31,006 | public void setCommerceShippingFixedOptionRelLocalService ( com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelLocalService commerceShippingFixedOptionRelLocalService ) { this . commerceShippingFixedOptionRelLocalService = commerceShippingFixedOptionRelLocalService ; } | Sets the commerce shipping fixed option rel local service . | 62 | 11 |
31,007 | public com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelService getCommerceShippingFixedOptionRelService ( ) { return commerceShippingFixedOptionRelService ; } | Returns the commerce shipping fixed option rel remote service . | 42 | 10 |
31,008 | public void setCommerceShippingFixedOptionRelService ( com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelService commerceShippingFixedOptionRelService ) { this . commerceShippingFixedOptionRelService = commerceShippingFixedOptionRelService ; } | Sets the commerce shipping fixed option rel remote service . | 57 | 11 |
31,009 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceDiscountRel addCommerceDiscountRel ( CommerceDiscountRel commerceDiscountRel ) { commerceDiscountRel . setNew ( true ) ; return commerceDiscountRelPersistence . update ( commerceDiscountRel ) ; } | Adds the commerce discount rel to the database . Also notifies the appropriate model listeners . | 66 | 17 |
31,010 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceDiscountRel deleteCommerceDiscountRel ( long commerceDiscountRelId ) throws PortalException { return commerceDiscountRelPersistence . remove ( commerceDiscountRelId ) ; } | Deletes the commerce discount rel with the primary key from the database . Also notifies the appropriate model listeners . | 57 | 22 |
31,011 | @ Override public String getDescription ( String languageId , boolean useDefault ) { return _commerceShippingFixedOption . getDescription ( languageId , useDefault ) ; } | Returns the localized description of this commerce shipping fixed option in the language optionally using the default language if no localization exists for the requested language . | 35 | 27 |
31,012 | @ Override public String getName ( String languageId , boolean useDefault ) { return _commerceShippingFixedOption . getName ( languageId , useDefault ) ; } | Returns the localized name of this commerce shipping fixed option in the language optionally using the default language if no localization exists for the requested language . | 35 | 27 |
31,013 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceShipment deleteCommerceShipment ( long commerceShipmentId ) throws PortalException { return commerceShipmentPersistence . remove ( commerceShipmentId ) ; } | Deletes the commerce shipment with the primary key from the database . Also notifies the appropriate model listeners . | 52 | 21 |
31,014 | @ Override public com . liferay . commerce . product . model . CPRuleUserSegmentRel getCPRuleUserSegmentRel ( long CPRuleUserSegmentRelId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpRuleUserSegmentRelLocalService . getCPRuleUserSegmentRel ( CPRuleUserSegmentRelId ) ; } | Returns the cp rule user segment rel with the primary key . | 86 | 12 |
31,015 | @ Override public void cacheResult ( CommerceCurrency commerceCurrency ) { entityCache . putResult ( CommerceCurrencyModelImpl . ENTITY_CACHE_ENABLED , CommerceCurrencyImpl . class , commerceCurrency . getPrimaryKey ( ) , commerceCurrency ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceCurrency . getUuid ( ) , commerceCurrency . getGroupId ( ) } , commerceCurrency ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_C , new Object [ ] { commerceCurrency . getGroupId ( ) , commerceCurrency . getCode ( ) } , commerceCurrency ) ; commerceCurrency . resetOriginalValues ( ) ; } | Caches the commerce currency in the entity cache if it is enabled . | 180 | 14 |
31,016 | @ Override public void cacheResult ( List < CommerceCurrency > commerceCurrencies ) { for ( CommerceCurrency commerceCurrency : commerceCurrencies ) { if ( entityCache . getResult ( CommerceCurrencyModelImpl . ENTITY_CACHE_ENABLED , CommerceCurrencyImpl . class , commerceCurrency . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceCurrency ) ; } else { commerceCurrency . resetOriginalValues ( ) ; } } } | Caches the commerce currencies in the entity cache if it is enabled . | 103 | 14 |
31,017 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceCurrencyImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce currencies . | 97 | 9 |
31,018 | @ Override public void clearCache ( CommerceCurrency commerceCurrency ) { entityCache . removeResult ( CommerceCurrencyModelImpl . ENTITY_CACHE_ENABLED , CommerceCurrencyImpl . class , commerceCurrency . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceCurrencyModelImpl ) commerceCurrency , true ) ; } | Clears the cache for the commerce currency . | 131 | 9 |
31,019 | @ Override public List < CommerceCurrency > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce currencies . | 39 | 6 |
31,020 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceTierPriceEntry upsertCommerceTierPriceEntry ( long commerceTierPriceEntryId , long commercePriceEntryId , String externalReferenceCode , BigDecimal price , BigDecimal promoPrice , int minQuantity , String priceEntryExternalReferenceCode , ServiceContext serviceContext ) throws PortalException { // Update if ( commerceTierPriceEntryId > 0 ) { try { return updateCommerceTierPriceEntry ( commerceTierPriceEntryId , price , promoPrice , minQuantity , serviceContext ) ; } catch ( NoSuchTierPriceEntryException nstpee ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Unable to find tier price entry with ID: " + commerceTierPriceEntryId ) ; } } } if ( Validator . isNotNull ( externalReferenceCode ) ) { CommerceTierPriceEntry commerceTierPriceEntry = commerceTierPriceEntryPersistence . fetchByC_ERC ( serviceContext . getCompanyId ( ) , externalReferenceCode ) ; if ( commerceTierPriceEntry != null ) { return updateCommerceTierPriceEntry ( commerceTierPriceEntry . getCommerceTierPriceEntryId ( ) , price , promoPrice , minQuantity , serviceContext ) ; } } // Add if ( commercePriceEntryId > 0 ) { validate ( 0L , commercePriceEntryId , minQuantity ) ; CommercePriceEntry commercePriceEntry = _commercePriceEntryPersistence . findByPrimaryKey ( commercePriceEntryId ) ; return addCommerceTierPriceEntry ( commercePriceEntry . getCommercePriceEntryId ( ) , externalReferenceCode , price , promoPrice , minQuantity , serviceContext ) ; } if ( Validator . isNotNull ( priceEntryExternalReferenceCode ) ) { CommercePriceEntry commercePriceEntry = _commercePriceEntryPersistence . findByC_ERC ( serviceContext . getCompanyId ( ) , priceEntryExternalReferenceCode ) ; validate ( 0L , commercePriceEntry . getCommercePriceEntryId ( ) , minQuantity ) ; return addCommerceTierPriceEntry ( commercePriceEntry . getCommercePriceEntryId ( ) , externalReferenceCode , price , promoPrice , minQuantity , serviceContext ) ; } StringBundler sb = new StringBundler ( 6 ) ; sb . append ( "{commercePriceEntryId=" ) ; sb . append ( commercePriceEntryId ) ; sb . append ( StringPool . COMMA_AND_SPACE ) ; sb . append ( "priceEntryExternalReferenceCode=" ) ; sb . append ( priceEntryExternalReferenceCode ) ; sb . append ( CharPool . CLOSE_CURLY_BRACE ) ; throw new NoSuchPriceEntryException ( sb . toString ( ) ) ; } | This method is used to insert a new CommerceTierPriceEntry or update an existing one | 585 | 17 |
31,021 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommercePriceEntry upsertCommercePriceEntry ( long commercePriceEntryId , long cProductId , String cpInstanceUuid , long commercePriceListId , String externalReferenceCode , BigDecimal price , BigDecimal promoPrice , String skuExternalReferenceCode , ServiceContext serviceContext ) throws PortalException { // Update if ( commercePriceEntryId > 0 ) { try { return updateCommercePriceEntry ( commercePriceEntryId , price , promoPrice , serviceContext ) ; } catch ( NoSuchPriceEntryException nspee ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Unable to find price entry with ID: " + commercePriceEntryId ) ; } } } if ( Validator . isNotNull ( externalReferenceCode ) ) { CommercePriceEntry commercePriceEntry = commercePriceEntryPersistence . fetchByC_ERC ( serviceContext . getCompanyId ( ) , externalReferenceCode ) ; if ( commercePriceEntry != null ) { return updateCommercePriceEntry ( commercePriceEntry . getCommercePriceEntryId ( ) , price , promoPrice , serviceContext ) ; } } // Add if ( ( cProductId > 0 ) && ( cpInstanceUuid != null ) ) { validate ( commercePriceListId , cpInstanceUuid ) ; return addCommercePriceEntry ( cProductId , cpInstanceUuid , commercePriceListId , externalReferenceCode , price , promoPrice , serviceContext ) ; } if ( Validator . isNotNull ( skuExternalReferenceCode ) ) { CPInstance cpInstance = _cpInstanceLocalService . getCPInstanceByExternalReferenceCode ( serviceContext . getCompanyId ( ) , skuExternalReferenceCode ) ; validate ( commercePriceListId , cpInstance . getCPInstanceUuid ( ) ) ; CPDefinition cpDefinition = _cpDefinitionLocalService . getCPDefinition ( cpInstance . getCPDefinitionId ( ) ) ; return addCommercePriceEntry ( cpDefinition . getCProductId ( ) , cpInstance . getCPInstanceUuid ( ) , commercePriceListId , externalReferenceCode , price , promoPrice , serviceContext ) ; } StringBundler sb = new StringBundler ( 9 ) ; sb . append ( "{cProductId=" ) ; sb . append ( cProductId ) ; sb . append ( StringPool . COMMA_AND_SPACE ) ; sb . append ( "cpInstanceUuid=" ) ; sb . append ( cpInstanceUuid ) ; sb . append ( StringPool . COMMA_AND_SPACE ) ; sb . append ( "skuExternalReferenceCode=" ) ; sb . append ( skuExternalReferenceCode ) ; sb . append ( CharPool . CLOSE_CURLY_BRACE ) ; throw new NoSuchCPInstanceException ( sb . toString ( ) ) ; } | This method is used to insert a new CommercePriceEntry or update an existing one | 631 | 16 |
31,022 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceNotificationQueueEntry addCommerceNotificationQueueEntry ( CommerceNotificationQueueEntry commerceNotificationQueueEntry ) { commerceNotificationQueueEntry . setNew ( true ) ; return commerceNotificationQueueEntryPersistence . update ( commerceNotificationQueueEntry ) ; } | Adds the commerce notification queue entry to the database . Also notifies the appropriate model listeners . | 73 | 18 |
31,023 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceNotificationQueueEntry deleteCommerceNotificationQueueEntry ( CommerceNotificationQueueEntry commerceNotificationQueueEntry ) { return commerceNotificationQueueEntryPersistence . remove ( commerceNotificationQueueEntry ) ; } | Deletes the commerce notification queue entry from the database . Also notifies the appropriate model listeners . | 61 | 19 |
31,024 | @ Override public com . liferay . trash . kernel . model . TrashEntry getTrashEntry ( ) throws com . liferay . portal . kernel . exception . PortalException { return _cpDefinition . getTrashEntry ( ) ; } | Returns the trash entry created when this cp definition was moved to the Recycle Bin . The trash entry may belong to one of the ancestors of this cp definition . | 53 | 32 |
31,025 | @ Deprecated @ Override public com . liferay . portal . kernel . trash . TrashHandler getTrashHandler ( ) { return _cpDefinition . getTrashHandler ( ) ; } | Returns the trash handler for this cp definition . | 41 | 9 |
31,026 | @ Override public void cacheResult ( CommerceSubscriptionEntry commerceSubscriptionEntry ) { entityCache . putResult ( CommerceSubscriptionEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceSubscriptionEntryImpl . class , commerceSubscriptionEntry . getPrimaryKey ( ) , commerceSubscriptionEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceSubscriptionEntry . getUuid ( ) , commerceSubscriptionEntry . getGroupId ( ) } , commerceSubscriptionEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C_C , new Object [ ] { commerceSubscriptionEntry . getCPInstanceUuid ( ) , commerceSubscriptionEntry . getCProductId ( ) , commerceSubscriptionEntry . getCommerceOrderItemId ( ) } , commerceSubscriptionEntry ) ; commerceSubscriptionEntry . resetOriginalValues ( ) ; } | Caches the commerce subscription entry in the entity cache if it is enabled . | 213 | 15 |
31,027 | @ Override public void cacheResult ( List < CommerceSubscriptionEntry > commerceSubscriptionEntries ) { for ( CommerceSubscriptionEntry commerceSubscriptionEntry : commerceSubscriptionEntries ) { if ( entityCache . getResult ( CommerceSubscriptionEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceSubscriptionEntryImpl . class , commerceSubscriptionEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceSubscriptionEntry ) ; } else { commerceSubscriptionEntry . resetOriginalValues ( ) ; } } } | Caches the commerce subscription entries in the entity cache if it is enabled . | 115 | 15 |
31,028 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceSubscriptionEntryImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce subscription entries . | 98 | 10 |
31,029 | @ Override public void clearCache ( CommerceSubscriptionEntry commerceSubscriptionEntry ) { entityCache . removeResult ( CommerceSubscriptionEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceSubscriptionEntryImpl . class , commerceSubscriptionEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceSubscriptionEntryModelImpl ) commerceSubscriptionEntry , true ) ; } | Clears the cache for the commerce subscription entry . | 138 | 10 |
31,030 | @ Override public List < CommerceSubscriptionEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce subscription entries . | 40 | 7 |
31,031 | @ Override public CPDefinition moveCPDefinitionToTrash ( long userId , long cpDefinitionId ) throws PortalException { CPDefinition cpDefinition = cpDefinitionPersistence . findByPrimaryKey ( cpDefinitionId ) ; return cpDefinitionLocalService . moveCPDefinitionToTrash ( userId , cpDefinition ) ; } | Moves the commerce product definition with the ID to the recycle bin . | 75 | 14 |
31,032 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CPDefinition restoreCPDefinitionFromTrash ( long userId , long cpDefinitionId ) throws PortalException { CPDefinition cpDefinition = cpDefinitionPersistence . findByPrimaryKey ( cpDefinitionId ) ; if ( ! cpDefinition . isInTrash ( ) ) { throw new RestoreEntryException ( RestoreEntryException . INVALID_STATUS ) ; } TrashEntry trashEntry = trashEntryLocalService . getEntry ( CPDefinition . class . getName ( ) , cpDefinitionId ) ; cpDefinition = updateStatus ( userId , cpDefinitionId , trashEntry . getStatus ( ) , new ServiceContext ( ) , new HashMap < String , Serializable > ( ) ) ; return cpDefinition ; } | Restores the commerce product definition with the ID from the recycle bin . | 174 | 14 |
31,033 | @ Override public com . liferay . commerce . product . model . CPSpecificationOption getCPSpecificationOption ( long CPSpecificationOptionId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpSpecificationOptionLocalService . getCPSpecificationOption ( CPSpecificationOptionId ) ; } | Returns the cp specification option with the primary key . | 74 | 10 |
31,034 | public com . liferay . commerce . product . type . virtual . order . service . CommerceVirtualOrderItemLocalService getCommerceVirtualOrderItemLocalService ( ) { return commerceVirtualOrderItemLocalService ; } | Returns the commerce virtual order item local service . | 44 | 9 |
31,035 | public void setDLAppService ( com . liferay . document . library . kernel . service . DLAppService dlAppService ) { this . dlAppService = dlAppService ; } | Sets the dl app remote service . | 43 | 9 |
31,036 | @ Override public void cacheResult ( CommercePriceList commercePriceList ) { entityCache . putResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceList . getUuid ( ) , commercePriceList . getGroupId ( ) } , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID , new Object [ ] { commercePriceList . getParentCommercePriceListId ( ) } , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commercePriceList . getCompanyId ( ) , commercePriceList . getExternalReferenceCode ( ) } , commercePriceList ) ; commercePriceList . resetOriginalValues ( ) ; } | Caches the commerce price list in the entity cache if it is enabled . | 236 | 15 |
31,037 | @ Override public void cacheResult ( List < CommercePriceList > commercePriceLists ) { for ( CommercePriceList commercePriceList : commercePriceLists ) { if ( entityCache . getResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceList ) ; } else { commercePriceList . resetOriginalValues ( ) ; } } } | Caches the commerce price lists in the entity cache if it is enabled . | 105 | 15 |
31,038 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommercePriceListImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce price lists . | 97 | 10 |
31,039 | @ Override public void clearCache ( CommercePriceList commercePriceList ) { entityCache . removeResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePriceListModelImpl ) commercePriceList , true ) ; } | Clears the cache for the commerce price list . | 131 | 10 |
31,040 | @ Override public CommercePriceList remove ( Serializable primaryKey ) throws NoSuchPriceListException { Session session = null ; try { session = openSession ( ) ; CommercePriceList commercePriceList = ( CommercePriceList ) session . get ( CommercePriceListImpl . class , primaryKey ) ; if ( commercePriceList == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchPriceListException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commercePriceList ) ; } catch ( NoSuchPriceListException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } } | Removes the commerce price list with the primary key from the database . Also notifies the appropriate model listeners . | 191 | 22 |
31,041 | @ Override public List < CommercePriceList > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce price lists . | 39 | 7 |
31,042 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CProduct deleteCProduct ( long CProductId ) throws PortalException { return cProductPersistence . remove ( CProductId ) ; } | Deletes the c product with the primary key from the database . Also notifies the appropriate model listeners . | 48 | 21 |
31,043 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CProduct deleteCProduct ( CProduct cProduct ) { return cProductPersistence . remove ( cProduct ) ; } | Deletes the c product from the database . Also notifies the appropriate model listeners . | 44 | 17 |
31,044 | @ Override public List < CProduct > getCProductsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CProduct > orderByComparator ) { return cProductPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; } | Returns a range of c products matching the UUID and company . | 79 | 13 |
31,045 | @ Override public void cacheResult ( CommerceShippingMethod commerceShippingMethod ) { entityCache . putResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) , commerceShippingMethod ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_E , new Object [ ] { commerceShippingMethod . getGroupId ( ) , commerceShippingMethod . getEngineKey ( ) } , commerceShippingMethod ) ; commerceShippingMethod . resetOriginalValues ( ) ; } | Caches the commerce shipping method in the entity cache if it is enabled . | 126 | 15 |
31,046 | @ Override public void cacheResult ( List < CommerceShippingMethod > commerceShippingMethods ) { for ( CommerceShippingMethod commerceShippingMethod : commerceShippingMethods ) { if ( entityCache . getResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceShippingMethod ) ; } else { commerceShippingMethod . resetOriginalValues ( ) ; } } } | Caches the commerce shipping methods in the entity cache if it is enabled . | 103 | 15 |
31,047 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceShippingMethodImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce shipping methods . | 97 | 10 |
31,048 | @ Override public void clearCache ( CommerceShippingMethod commerceShippingMethod ) { entityCache . removeResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceShippingMethodModelImpl ) commerceShippingMethod , true ) ; } | Clears the cache for the commerce shipping method . | 131 | 10 |
31,049 | @ Override public List < CommerceShippingMethod > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce shipping methods . | 39 | 7 |
31,050 | @ Override public void cacheResult ( CommerceOrderNote commerceOrderNote ) { entityCache . putResult ( CommerceOrderNoteModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderNoteImpl . class , commerceOrderNote . getPrimaryKey ( ) , commerceOrderNote ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commerceOrderNote . getCompanyId ( ) , commerceOrderNote . getExternalReferenceCode ( ) } , commerceOrderNote ) ; commerceOrderNote . resetOriginalValues ( ) ; } | Caches the commerce order note in the entity cache if it is enabled . | 127 | 15 |
31,051 | @ Override public void cacheResult ( List < CommerceOrderNote > commerceOrderNotes ) { for ( CommerceOrderNote commerceOrderNote : commerceOrderNotes ) { if ( entityCache . getResult ( CommerceOrderNoteModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderNoteImpl . class , commerceOrderNote . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrderNote ) ; } else { commerceOrderNote . resetOriginalValues ( ) ; } } } | Caches the commerce order notes in the entity cache if it is enabled . | 103 | 15 |
31,052 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceOrderNoteImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce order notes . | 97 | 10 |
31,053 | @ Override public void clearCache ( CommerceOrderNote commerceOrderNote ) { entityCache . removeResult ( CommerceOrderNoteModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderNoteImpl . class , commerceOrderNote . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceOrderNoteModelImpl ) commerceOrderNote , true ) ; } | Clears the cache for the commerce order note . | 131 | 10 |
31,054 | @ Override public List < CommerceOrderNote > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce order notes . | 39 | 7 |
31,055 | public void setCommerceUserSegmentCriterionService ( com . liferay . commerce . user . segment . service . CommerceUserSegmentCriterionService commerceUserSegmentCriterionService ) { this . commerceUserSegmentCriterionService = commerceUserSegmentCriterionService ; } | Sets the commerce user segment criterion remote service . | 60 | 10 |
31,056 | public void setGroupLocalService ( com . liferay . portal . kernel . service . GroupLocalService groupLocalService ) { this . groupLocalService = groupLocalService ; } | Sets the group local service . | 38 | 7 |
31,057 | public void setGroupService ( com . liferay . portal . kernel . service . GroupService groupService ) { this . groupService = groupService ; } | Sets the group remote service . | 33 | 7 |
31,058 | public void setRoleLocalService ( com . liferay . portal . kernel . service . RoleLocalService roleLocalService ) { this . roleLocalService = roleLocalService ; } | Sets the role local service . | 38 | 7 |
31,059 | public void setRoleService ( com . liferay . portal . kernel . service . RoleService roleService ) { this . roleService = roleService ; } | Sets the role remote service . | 33 | 7 |
31,060 | @ Override public com . liferay . commerce . product . model . CPRuleAssetCategoryRel getCPRuleAssetCategoryRel ( long CPRuleAssetCategoryRelId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpRuleAssetCategoryRelLocalService . getCPRuleAssetCategoryRel ( CPRuleAssetCategoryRelId ) ; } | Returns the cp rule asset category rel with the primary key . | 80 | 12 |
31,061 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceShippingFixedOption addCommerceShippingFixedOption ( CommerceShippingFixedOption commerceShippingFixedOption ) { commerceShippingFixedOption . setNew ( true ) ; return commerceShippingFixedOptionPersistence . update ( commerceShippingFixedOption ) ; } | Adds the commerce shipping fixed option to the database . Also notifies the appropriate model listeners . | 66 | 18 |
31,062 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceShippingFixedOption updateCommerceShippingFixedOption ( CommerceShippingFixedOption commerceShippingFixedOption ) { return commerceShippingFixedOptionPersistence . update ( commerceShippingFixedOption ) ; } | Updates the commerce shipping fixed option in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners . | 55 | 28 |
31,063 | @ Override public List < CommerceAvailabilityEstimate > getCommerceAvailabilityEstimatesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommerceAvailabilityEstimate > orderByComparator ) { return commerceAvailabilityEstimatePersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; } | Returns a range of commerce availability estimates matching the UUID and company . | 85 | 14 |
31,064 | @ Override public void cacheResult ( CommerceTaxFixedRate commerceTaxFixedRate ) { entityCache . putResult ( CommerceTaxFixedRateModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxFixedRateImpl . class , commerceTaxFixedRate . getPrimaryKey ( ) , commerceTaxFixedRate ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commerceTaxFixedRate . getCPTaxCategoryId ( ) , commerceTaxFixedRate . getCommerceTaxMethodId ( ) } , commerceTaxFixedRate ) ; commerceTaxFixedRate . resetOriginalValues ( ) ; } | Caches the commerce tax fixed rate in the entity cache if it is enabled . | 140 | 16 |
31,065 | @ Override public void cacheResult ( List < CommerceTaxFixedRate > commerceTaxFixedRates ) { for ( CommerceTaxFixedRate commerceTaxFixedRate : commerceTaxFixedRates ) { if ( entityCache . getResult ( CommerceTaxFixedRateModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxFixedRateImpl . class , commerceTaxFixedRate . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceTaxFixedRate ) ; } else { commerceTaxFixedRate . resetOriginalValues ( ) ; } } } | Caches the commerce tax fixed rates in the entity cache if it is enabled . | 115 | 16 |
31,066 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceTaxFixedRateImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce tax fixed rates . | 98 | 11 |
31,067 | @ Override public void clearCache ( CommerceTaxFixedRate commerceTaxFixedRate ) { entityCache . removeResult ( CommerceTaxFixedRateModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxFixedRateImpl . class , commerceTaxFixedRate . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceTaxFixedRateModelImpl ) commerceTaxFixedRate , true ) ; } | Clears the cache for the commerce tax fixed rate . | 138 | 11 |
31,068 | @ Override public List < CommerceTaxFixedRate > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce tax fixed rates . | 40 | 8 |
31,069 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceTaxFixedRateAddressRel updateCommerceTaxFixedRateAddressRel ( CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel ) { return commerceTaxFixedRateAddressRelPersistence . update ( commerceTaxFixedRateAddressRel ) ; } | Updates the commerce tax fixed rate address rel in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners . | 67 | 30 |
31,070 | public com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateLocalService getCommerceTaxFixedRateLocalService ( ) { return commerceTaxFixedRateLocalService ; } | Returns the commerce tax fixed rate local service . | 42 | 9 |
31,071 | public void setCommerceTaxFixedRateLocalService ( com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateLocalService commerceTaxFixedRateLocalService ) { this . commerceTaxFixedRateLocalService = commerceTaxFixedRateLocalService ; } | Sets the commerce tax fixed rate local service . | 57 | 10 |
31,072 | public static List < CommerceAccountOrganizationRel > findAll ( int start , int end , OrderByComparator < CommerceAccountOrganizationRel > orderByComparator ) { return getPersistence ( ) . findAll ( start , end , orderByComparator ) ; } | Returns an ordered range of all the commerce account organization rels . | 57 | 13 |
31,073 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CPDefinitionVirtualSetting updateCPDefinitionVirtualSetting ( CPDefinitionVirtualSetting cpDefinitionVirtualSetting ) { return cpDefinitionVirtualSettingPersistence . update ( cpDefinitionVirtualSetting ) ; } | Updates the cp definition virtual setting in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners . | 61 | 28 |
31,074 | public void setCommerceTaxMethodLocalService ( com . liferay . commerce . tax . service . CommerceTaxMethodLocalService commerceTaxMethodLocalService ) { this . commerceTaxMethodLocalService = commerceTaxMethodLocalService ; } | Sets the commerce tax method local service . | 48 | 9 |
31,075 | public static com . liferay . commerce . model . CommerceCountry getCommerceCountry ( long commerceCountryId ) throws com . liferay . portal . kernel . exception . PortalException { return getService ( ) . getCommerceCountry ( commerceCountryId ) ; } | Returns the commerce country with the primary key . | 55 | 9 |
31,076 | @ Override public com . liferay . commerce . notification . model . CommerceNotificationTemplateUserSegmentRel getCommerceNotificationTemplateUserSegmentRel ( long commerceNotificationTemplateUserSegmentRelId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceNotificationTemplateUserSegmentRelLocalService . getCommerceNotificationTemplateUserSegmentRel ( commerceNotificationTemplateUserSegmentRelId ) ; } | Returns the commerce notification template user segment rel with the primary key . | 96 | 13 |
31,077 | public void setCommerceCurrencyLocalService ( com . liferay . commerce . currency . service . CommerceCurrencyLocalService commerceCurrencyLocalService ) { this . commerceCurrencyLocalService = commerceCurrencyLocalService ; } | Sets the commerce currency local service . | 48 | 8 |
31,078 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CPRuleAssetCategoryRel deleteCPRuleAssetCategoryRel ( long CPRuleAssetCategoryRelId ) throws PortalException { return cpRuleAssetCategoryRelPersistence . remove ( CPRuleAssetCategoryRelId ) ; } | Deletes the cp rule asset category rel with the primary key from the database . Also notifies the appropriate model listeners . | 63 | 24 |
31,079 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CPRuleAssetCategoryRel deleteCPRuleAssetCategoryRel ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel ) { return cpRuleAssetCategoryRelPersistence . remove ( cpRuleAssetCategoryRel ) ; } | Deletes the cp rule asset category rel from the database . Also notifies the appropriate model listeners . | 62 | 20 |
31,080 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommercePriceEntry deleteCommercePriceEntry ( long commercePriceEntryId ) throws PortalException { return commercePriceEntryPersistence . remove ( commercePriceEntryId ) ; } | Deletes the commerce price entry with the primary key from the database . Also notifies the appropriate model listeners . | 52 | 22 |
31,081 | @ Override public String getName ( String languageId , boolean useDefault ) { return _commerceUserSegmentEntry . getName ( languageId , useDefault ) ; } | Returns the localized name of this commerce user segment entry in the language optionally using the default language if no localization exists for the requested language . | 36 | 27 |
31,082 | @ Override public void cacheResult ( CommerceOrder commerceOrder ) { entityCache . putResult ( CommerceOrderModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderImpl . class , commerceOrder . getPrimaryKey ( ) , commerceOrder ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceOrder . getUuid ( ) , commerceOrder . getGroupId ( ) } , commerceOrder ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commerceOrder . getCompanyId ( ) , commerceOrder . getExternalReferenceCode ( ) } , commerceOrder ) ; commerceOrder . resetOriginalValues ( ) ; } | Caches the commerce order in the entity cache if it is enabled . | 169 | 14 |
31,083 | @ Override public void cacheResult ( List < CommerceOrder > commerceOrders ) { for ( CommerceOrder commerceOrder : commerceOrders ) { if ( entityCache . getResult ( CommerceOrderModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderImpl . class , commerceOrder . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrder ) ; } else { commerceOrder . resetOriginalValues ( ) ; } } } | Caches the commerce orders in the entity cache if it is enabled . | 95 | 14 |
31,084 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceOrderImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce orders . | 96 | 9 |
31,085 | @ Override public void clearCache ( CommerceOrder commerceOrder ) { entityCache . removeResult ( CommerceOrderModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderImpl . class , commerceOrder . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceOrderModelImpl ) commerceOrder , true ) ; } | Clears the cache for the commerce order . | 124 | 9 |
31,086 | @ Override public List < CommerceOrder > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce orders . | 38 | 6 |
31,087 | @ Override public void cacheResult ( CommerceWishListItem commerceWishListItem ) { entityCache . putResult ( CommerceWishListItemModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListItemImpl . class , commerceWishListItem . getPrimaryKey ( ) , commerceWishListItem ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_CW_CPI_CP , new Object [ ] { commerceWishListItem . getCommerceWishListId ( ) , commerceWishListItem . getCPInstanceUuid ( ) , commerceWishListItem . getCProductId ( ) } , commerceWishListItem ) ; commerceWishListItem . resetOriginalValues ( ) ; } | Caches the commerce wish list item in the entity cache if it is enabled . | 168 | 16 |
31,088 | @ Override public void cacheResult ( List < CommerceWishListItem > commerceWishListItems ) { for ( CommerceWishListItem commerceWishListItem : commerceWishListItems ) { if ( entityCache . getResult ( CommerceWishListItemModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListItemImpl . class , commerceWishListItem . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceWishListItem ) ; } else { commerceWishListItem . resetOriginalValues ( ) ; } } } | Caches the commerce wish list items in the entity cache if it is enabled . | 123 | 16 |
31,089 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceWishListItemImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce wish list items . | 99 | 11 |
31,090 | @ Override public void clearCache ( CommerceWishListItem commerceWishListItem ) { entityCache . removeResult ( CommerceWishListItemModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListItemImpl . class , commerceWishListItem . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceWishListItemModelImpl ) commerceWishListItem , true ) ; } | Clears the cache for the commerce wish list item . | 145 | 11 |
31,091 | @ Override public List < CommerceWishListItem > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce wish list items . | 41 | 8 |
31,092 | @ Override public void cacheResult ( CommerceWishList commerceWishList ) { entityCache . putResult ( CommerceWishListModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListImpl . class , commerceWishList . getPrimaryKey ( ) , commerceWishList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceWishList . getUuid ( ) , commerceWishList . getGroupId ( ) } , commerceWishList ) ; commerceWishList . resetOriginalValues ( ) ; } | Caches the commerce wish list in the entity cache if it is enabled . | 137 | 15 |
31,093 | @ Override public void cacheResult ( List < CommerceWishList > commerceWishLists ) { for ( CommerceWishList commerceWishList : commerceWishLists ) { if ( entityCache . getResult ( CommerceWishListModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListImpl . class , commerceWishList . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceWishList ) ; } else { commerceWishList . resetOriginalValues ( ) ; } } } | Caches the commerce wish lists in the entity cache if it is enabled . | 115 | 15 |
31,094 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceWishListImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce wish lists . | 98 | 10 |
31,095 | @ Override public void clearCache ( CommerceWishList commerceWishList ) { entityCache . removeResult ( CommerceWishListModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListImpl . class , commerceWishList . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceWishListModelImpl ) commerceWishList , true ) ; } | Clears the cache for the commerce wish list . | 138 | 10 |
31,096 | @ Override public CommerceWishList remove ( Serializable primaryKey ) throws NoSuchWishListException { Session session = null ; try { session = openSession ( ) ; CommerceWishList commerceWishList = ( CommerceWishList ) session . get ( CommerceWishListImpl . class , primaryKey ) ; if ( commerceWishList == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchWishListException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceWishList ) ; } catch ( NoSuchWishListException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } } | Removes the commerce wish list with the primary key from the database . Also notifies the appropriate model listeners . | 201 | 22 |
31,097 | @ Override public List < CommerceWishList > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce wish lists . | 40 | 7 |
31,098 | @ Override public void cacheResult ( CommerceOrderItem commerceOrderItem ) { entityCache . putResult ( CommerceOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderItemImpl . class , commerceOrderItem . getPrimaryKey ( ) , commerceOrderItem ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commerceOrderItem . getCompanyId ( ) , commerceOrderItem . getExternalReferenceCode ( ) } , commerceOrderItem ) ; commerceOrderItem . resetOriginalValues ( ) ; } | Caches the commerce order item in the entity cache if it is enabled . | 127 | 15 |
31,099 | @ Override public void cacheResult ( List < CommerceOrderItem > commerceOrderItems ) { for ( CommerceOrderItem commerceOrderItem : commerceOrderItems ) { if ( entityCache . getResult ( CommerceOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderItemImpl . class , commerceOrderItem . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrderItem ) ; } else { commerceOrderItem . resetOriginalValues ( ) ; } } } | Caches the commerce order items in the entity cache if it is enabled . | 103 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.