idx
int64
0
41.2k
question
stringlengths
74
4.04k
target
stringlengths
7
750
31,200
public String getName ( String languageId , boolean useDefault ) { return _commerceCurrency . getName ( languageId , useDefault ) ; }
Returns the localized name of this commerce currency in the language optionally using the default language if no localization exists for the requested language .
31,201
public void setFormatPattern ( String formatPattern , java . util . Locale locale , java . util . Locale defaultLocale ) { _commerceCurrency . setFormatPattern ( formatPattern , locale , defaultLocale ) ; }
Sets the localized format pattern of this commerce currency in the language and sets the default locale .
31,202
public void setFormatPatternMap ( Map < java . util . Locale , String > formatPatternMap ) { _commerceCurrency . setFormatPatternMap ( formatPatternMap ) ; }
Sets the localized format patterns of this commerce currency from the map of locales and localized format patterns .
31,203
public void setFormatPatternMap ( Map < java . util . Locale , String > formatPatternMap , java . util . Locale defaultLocale ) { _commerceCurrency . setFormatPatternMap ( formatPatternMap , defaultLocale ) ; }
Sets the localized format patterns of this commerce currency from the map of locales and localized format patterns and sets the default locale .
31,204
public void cacheResult ( CPDisplayLayout cpDisplayLayout ) { entityCache . putResult ( CPDisplayLayoutModelImpl . ENTITY_CACHE_ENABLED , CPDisplayLayoutImpl . class , cpDisplayLayout . getPrimaryKey ( ) , cpDisplayLayout ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDisplayLayout . getUuid ( ) , cpDisplayLayout . getGroupId ( ) } , cpDisplayLayout ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { cpDisplayLayout . getClassNameId ( ) , cpDisplayLayout . getClassPK ( ) } , cpDisplayLayout ) ; cpDisplayLayout . resetOriginalValues ( ) ; }
Caches the cp display layout in the entity cache if it is enabled .
31,205
public void cacheResult ( List < CPDisplayLayout > cpDisplayLayouts ) { for ( CPDisplayLayout cpDisplayLayout : cpDisplayLayouts ) { if ( entityCache . getResult ( CPDisplayLayoutModelImpl . ENTITY_CACHE_ENABLED , CPDisplayLayoutImpl . class , cpDisplayLayout . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDisplayLayout ) ; } else { cpDisplayLayout . resetOriginalValues ( ) ; } } }
Caches the cp display layouts in the entity cache if it is enabled .
31,206
public void clearCache ( ) { entityCache . clearCache ( CPDisplayLayoutImpl . 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 cp display layouts .
31,207
public void clearCache ( CPDisplayLayout cpDisplayLayout ) { entityCache . removeResult ( CPDisplayLayoutModelImpl . ENTITY_CACHE_ENABLED , CPDisplayLayoutImpl . class , cpDisplayLayout . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDisplayLayoutModelImpl ) cpDisplayLayout , true ) ; }
Clears the cache for the cp display layout .
31,208
public List < CPDisplayLayout > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp display layouts .
31,209
public com . liferay . commerce . model . CommerceOrderItem getCommerceOrderItem ( long commerceOrderItemId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceOrderItemLocalService . getCommerceOrderItem ( commerceOrderItemId ) ; }
Returns the commerce order item with the primary key .
31,210
public void cacheResult ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel ) { entityCache . putResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) , cpRuleAssetCategoryRel ) ; cpRuleAssetCategoryRel . resetOriginalValues ( ) ; }
Caches the cp rule asset category rel in the entity cache if it is enabled .
31,211
public void cacheResult ( List < CPRuleAssetCategoryRel > cpRuleAssetCategoryRels ) { for ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel : cpRuleAssetCategoryRels ) { if ( entityCache . getResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) ) == null ) { cacheResult ( cpRuleAssetCategoryRel ) ; } else { cpRuleAssetCategoryRel . resetOriginalValues ( ) ; } } }
Caches the cp rule asset category rels in the entity cache if it is enabled .
31,212
public void clearCache ( ) { entityCache . clearCache ( CPRuleAssetCategoryRelImpl . 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 cp rule asset category rels .
31,213
public void clearCache ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel ) { entityCache . removeResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the cp rule asset category rel .
31,214
public CPRuleAssetCategoryRel remove ( Serializable primaryKey ) throws NoSuchCPRuleAssetCategoryRelException { Session session = null ; try { session = openSession ( ) ; CPRuleAssetCategoryRel cpRuleAssetCategoryRel = ( CPRuleAssetCategoryRel ) session . get ( CPRuleAssetCategoryRelImpl . class , primaryKey ) ; if ( cpRuleAssetCategoryRel == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPRuleAssetCategoryRelException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( cpRuleAssetCategoryRel ) ; } catch ( NoSuchCPRuleAssetCategoryRelException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the cp rule asset category rel with the primary key from the database . Also notifies the appropriate model listeners .
31,215
public List < CPRuleAssetCategoryRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp rule asset category rels .
31,216
public void cacheResult ( CPSpecificationOption cpSpecificationOption ) { entityCache . putResult ( CPSpecificationOptionModelImpl . ENTITY_CACHE_ENABLED , CPSpecificationOptionImpl . class , cpSpecificationOption . getPrimaryKey ( ) , cpSpecificationOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpSpecificationOption . getUuid ( ) , cpSpecificationOption . getGroupId ( ) } , cpSpecificationOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K , new Object [ ] { cpSpecificationOption . getGroupId ( ) , cpSpecificationOption . getKey ( ) } , cpSpecificationOption ) ; cpSpecificationOption . resetOriginalValues ( ) ; }
Caches the cp specification option in the entity cache if it is enabled .
31,217
public void cacheResult ( List < CPSpecificationOption > cpSpecificationOptions ) { for ( CPSpecificationOption cpSpecificationOption : cpSpecificationOptions ) { if ( entityCache . getResult ( CPSpecificationOptionModelImpl . ENTITY_CACHE_ENABLED , CPSpecificationOptionImpl . class , cpSpecificationOption . getPrimaryKey ( ) ) == null ) { cacheResult ( cpSpecificationOption ) ; } else { cpSpecificationOption . resetOriginalValues ( ) ; } } }
Caches the cp specification options in the entity cache if it is enabled .
31,218
public void clearCache ( ) { entityCache . clearCache ( CPSpecificationOptionImpl . 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 cp specification options .
31,219
public void clearCache ( CPSpecificationOption cpSpecificationOption ) { entityCache . removeResult ( CPSpecificationOptionModelImpl . ENTITY_CACHE_ENABLED , CPSpecificationOptionImpl . class , cpSpecificationOption . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPSpecificationOptionModelImpl ) cpSpecificationOption , true ) ; }
Clears the cache for the cp specification option .
31,220
public CPSpecificationOption remove ( Serializable primaryKey ) throws NoSuchCPSpecificationOptionException { Session session = null ; try { session = openSession ( ) ; CPSpecificationOption cpSpecificationOption = ( CPSpecificationOption ) session . get ( CPSpecificationOptionImpl . class , primaryKey ) ; if ( cpSpecificationOption == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPSpecificationOptionException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( cpSpecificationOption ) ; } catch ( NoSuchCPSpecificationOptionException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the cp specification option with the primary key from the database . Also notifies the appropriate model listeners .
31,221
public List < CPSpecificationOption > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp specification options .
31,222
public void cacheResult ( CommercePriceEntry commercePriceEntry ) { entityCache . putResult ( CommercePriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommercePriceEntryImpl . class , commercePriceEntry . getPrimaryKey ( ) , commercePriceEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceEntry . getUuid ( ) , commercePriceEntry . getGroupId ( ) } , commercePriceEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commercePriceEntry . getCommercePriceListId ( ) , commercePriceEntry . getCPInstanceUuid ( ) } , commercePriceEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commercePriceEntry . getCompanyId ( ) , commercePriceEntry . getExternalReferenceCode ( ) } , commercePriceEntry ) ; commercePriceEntry . resetOriginalValues ( ) ; }
Caches the commerce price entry in the entity cache if it is enabled .
31,223
public void cacheResult ( List < CommercePriceEntry > commercePriceEntries ) { for ( CommercePriceEntry commercePriceEntry : commercePriceEntries ) { if ( entityCache . getResult ( CommercePriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommercePriceEntryImpl . class , commercePriceEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceEntry ) ; } else { commercePriceEntry . resetOriginalValues ( ) ; } } }
Caches the commerce price entries in the entity cache if it is enabled .
31,224
public void clearCache ( ) { entityCache . clearCache ( CommercePriceEntryImpl . 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 entries .
31,225
public void clearCache ( CommercePriceEntry commercePriceEntry ) { entityCache . removeResult ( CommercePriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommercePriceEntryImpl . class , commercePriceEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePriceEntryModelImpl ) commercePriceEntry , true ) ; }
Clears the cache for the commerce price entry .
31,226
public CommercePriceEntry remove ( Serializable primaryKey ) throws NoSuchPriceEntryException { Session session = null ; try { session = openSession ( ) ; CommercePriceEntry commercePriceEntry = ( CommercePriceEntry ) session . get ( CommercePriceEntryImpl . class , primaryKey ) ; if ( commercePriceEntry == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchPriceEntryException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commercePriceEntry ) ; } catch ( NoSuchPriceEntryException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce price entry with the primary key from the database . Also notifies the appropriate model listeners .
31,227
public List < CommercePriceEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce price entries .
31,228
public com . liferay . commerce . account . service . persistence . CommerceAccountUserRelPK getPrimaryKey ( ) { return _commerceAccountUserRel . getPrimaryKey ( ) ; }
Returns the primary key of this commerce account user rel .
31,229
public void setPrimaryKey ( com . liferay . commerce . account . service . persistence . CommerceAccountUserRelPK primaryKey ) { _commerceAccountUserRel . setPrimaryKey ( primaryKey ) ; }
Sets the primary key of this commerce account user rel .
31,230
public CommerceAccount fetchCommerceAccountByReferenceCode ( long companyId , String externalReferenceCode ) { return commerceAccountPersistence . fetchByC_ERC ( companyId , null ) ; }
Returns the commerce account with the matching external reference code and company .
31,231
@ Indexable ( type = IndexableType . REINDEX ) public CommerceAccount updateCommerceAccount ( CommerceAccount commerceAccount ) { return commerceAccountPersistence . update ( commerceAccount ) ; }
Updates the commerce account in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
31,232
public void setCommerceAccountOrganizationRelLocalService ( com . liferay . commerce . account . service . CommerceAccountOrganizationRelLocalService commerceAccountOrganizationRelLocalService ) { this . commerceAccountOrganizationRelLocalService = commerceAccountOrganizationRelLocalService ; }
Sets the commerce account organization rel local service .
31,233
public void setCommerceAccountUserRelLocalService ( com . liferay . commerce . account . service . CommerceAccountUserRelLocalService commerceAccountUserRelLocalService ) { this . commerceAccountUserRelLocalService = commerceAccountUserRelLocalService ; }
Sets the commerce account user rel local service .
31,234
public void cacheResult ( CPOptionCategory cpOptionCategory ) { entityCache . putResult ( CPOptionCategoryModelImpl . ENTITY_CACHE_ENABLED , CPOptionCategoryImpl . class , cpOptionCategory . getPrimaryKey ( ) , cpOptionCategory ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpOptionCategory . getUuid ( ) , cpOptionCategory . getGroupId ( ) } , cpOptionCategory ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K , new Object [ ] { cpOptionCategory . getGroupId ( ) , cpOptionCategory . getKey ( ) } , cpOptionCategory ) ; cpOptionCategory . resetOriginalValues ( ) ; }
Caches the cp option category in the entity cache if it is enabled .
31,235
public void cacheResult ( List < CPOptionCategory > cpOptionCategories ) { for ( CPOptionCategory cpOptionCategory : cpOptionCategories ) { if ( entityCache . getResult ( CPOptionCategoryModelImpl . ENTITY_CACHE_ENABLED , CPOptionCategoryImpl . class , cpOptionCategory . getPrimaryKey ( ) ) == null ) { cacheResult ( cpOptionCategory ) ; } else { cpOptionCategory . resetOriginalValues ( ) ; } } }
Caches the cp option categories in the entity cache if it is enabled .
31,236
public void clearCache ( ) { entityCache . clearCache ( CPOptionCategoryImpl . 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 cp option categories .
31,237
public void clearCache ( CPOptionCategory cpOptionCategory ) { entityCache . removeResult ( CPOptionCategoryModelImpl . ENTITY_CACHE_ENABLED , CPOptionCategoryImpl . class , cpOptionCategory . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPOptionCategoryModelImpl ) cpOptionCategory , true ) ; }
Clears the cache for the cp option category .
31,238
public List < CPOptionCategory > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp option categories .
31,239
public String getTermsOfUseContent ( java . util . Locale locale ) { return _cpDefinitionVirtualSetting . getTermsOfUseContent ( locale ) ; }
Returns the localized terms of use content of this cp definition virtual setting in the language . Uses the default language if no localization exists for the requested language .
31,240
public String getTermsOfUseContent ( String languageId , boolean useDefault ) { return _cpDefinitionVirtualSetting . getTermsOfUseContent ( languageId , useDefault ) ; }
Returns the localized terms of use content of this cp definition virtual setting in the language optionally using the default language if no localization exists for the requested language .
31,241
public void setTermsOfUseContent ( String termsOfUseContent , java . util . Locale locale , java . util . Locale defaultLocale ) { _cpDefinitionVirtualSetting . setTermsOfUseContent ( termsOfUseContent , locale , defaultLocale ) ; }
Sets the localized terms of use content of this cp definition virtual setting in the language and sets the default locale .
31,242
public void setTermsOfUseContentMap ( Map < java . util . Locale , String > termsOfUseContentMap ) { _cpDefinitionVirtualSetting . setTermsOfUseContentMap ( termsOfUseContentMap ) ; }
Sets the localized terms of use contents of this cp definition virtual setting from the map of locales and localized terms of use contents .
31,243
public void setTermsOfUseContentMap ( Map < java . util . Locale , String > termsOfUseContentMap , java . util . Locale defaultLocale ) { _cpDefinitionVirtualSetting . setTermsOfUseContentMap ( termsOfUseContentMap , defaultLocale ) ; }
Sets the localized terms of use contents of this cp definition virtual setting from the map of locales and localized terms of use contents and sets the default locale .
31,244
public String getName ( String languageId , boolean useDefault ) { return _cpMeasurementUnit . getName ( languageId , useDefault ) ; }
Returns the localized name of this cp measurement unit in the language optionally using the default language if no localization exists for the requested language .
31,245
@ Indexable ( type = IndexableType . REINDEX ) public CommerceDiscount addCommerceDiscount ( CommerceDiscount commerceDiscount ) { commerceDiscount . setNew ( true ) ; return commerceDiscountPersistence . update ( commerceDiscount ) ; }
Adds the commerce discount to the database . Also notifies the appropriate model listeners .
31,246
@ Indexable ( type = IndexableType . DELETE ) public CommerceDiscount deleteCommerceDiscount ( long commerceDiscountId ) throws PortalException { return commerceDiscountPersistence . remove ( commerceDiscountId ) ; }
Deletes the commerce discount with the primary key from the database . Also notifies the appropriate model listeners .
31,247
public void setCommercePriceListAccountRelService ( com . liferay . commerce . price . list . service . CommercePriceListAccountRelService commercePriceListAccountRelService ) { this . commercePriceListAccountRelService = commercePriceListAccountRelService ; }
Sets the commerce price list account rel remote service .
31,248
@ Indexable ( type = IndexableType . DELETE ) public CommerceUserSegmentEntry deleteCommerceUserSegmentEntry ( long commerceUserSegmentEntryId ) throws PortalException { return commerceUserSegmentEntryPersistence . remove ( commerceUserSegmentEntryId ) ; }
Deletes the commerce user segment entry with the primary key from the database . Also notifies the appropriate model listeners .
31,249
public void setCommerceWishListLocalService ( com . liferay . commerce . wish . list . service . CommerceWishListLocalService commerceWishListLocalService ) { this . commerceWishListLocalService = commerceWishListLocalService ; }
Sets the commerce wish list local service .
31,250
public void setCommerceWishListService ( com . liferay . commerce . wish . list . service . CommerceWishListService commerceWishListService ) { this . commerceWishListService = commerceWishListService ; }
Sets the commerce wish list remote service .
31,251
public String getBody ( String languageId , boolean useDefault ) { return _commerceNotificationTemplate . getBody ( languageId , useDefault ) ; }
Returns the localized body of this commerce notification template in the language optionally using the default language if no localization exists for the requested language .
31,252
public String getFromName ( String languageId , boolean useDefault ) { return _commerceNotificationTemplate . getFromName ( languageId , useDefault ) ; }
Returns the localized from name of this commerce notification template in the language optionally using the default language if no localization exists for the requested language .
31,253
public String getSubject ( java . util . Locale locale ) { return _commerceNotificationTemplate . getSubject ( locale ) ; }
Returns the localized subject of this commerce notification template in the language . Uses the default language if no localization exists for the requested language .
31,254
public String getSubject ( String languageId , boolean useDefault ) { return _commerceNotificationTemplate . getSubject ( languageId , useDefault ) ; }
Returns the localized subject of this commerce notification template in the language optionally using the default language if no localization exists for the requested language .
31,255
public void setBody ( String body , java . util . Locale locale , java . util . Locale defaultLocale ) { _commerceNotificationTemplate . setBody ( body , locale , defaultLocale ) ; }
Sets the localized body of this commerce notification template in the language and sets the default locale .
31,256
public void setBodyMap ( Map < java . util . Locale , String > bodyMap ) { _commerceNotificationTemplate . setBodyMap ( bodyMap ) ; }
Sets the localized bodies of this commerce notification template from the map of locales and localized bodies .
31,257
public void setBodyMap ( Map < java . util . Locale , String > bodyMap , java . util . Locale defaultLocale ) { _commerceNotificationTemplate . setBodyMap ( bodyMap , defaultLocale ) ; }
Sets the localized bodies of this commerce notification template from the map of locales and localized bodies and sets the default locale .
31,258
public void setFromName ( String fromName , java . util . Locale locale ) { _commerceNotificationTemplate . setFromName ( fromName , locale ) ; }
Sets the localized from name of this commerce notification template in the language .
31,259
public void setFromNameMap ( Map < java . util . Locale , String > fromNameMap ) { _commerceNotificationTemplate . setFromNameMap ( fromNameMap ) ; }
Sets the localized from names of this commerce notification template from the map of locales and localized from names .
31,260
public void setFromNameMap ( Map < java . util . Locale , String > fromNameMap , java . util . Locale defaultLocale ) { _commerceNotificationTemplate . setFromNameMap ( fromNameMap , defaultLocale ) ; }
Sets the localized from names of this commerce notification template from the map of locales and localized from names and sets the default locale .
31,261
public void setSubject ( String subject , java . util . Locale locale ) { _commerceNotificationTemplate . setSubject ( subject , locale ) ; }
Sets the localized subject of this commerce notification template in the language .
31,262
public void setSubjectMap ( Map < java . util . Locale , String > subjectMap ) { _commerceNotificationTemplate . setSubjectMap ( subjectMap ) ; }
Sets the localized subjects of this commerce notification template from the map of locales and localized subjects .
31,263
public void setSubjectMap ( Map < java . util . Locale , String > subjectMap , java . util . Locale defaultLocale ) { _commerceNotificationTemplate . setSubjectMap ( subjectMap , defaultLocale ) ; }
Sets the localized subjects of this commerce notification template from the map of locales and localized subjects and sets the default locale .
31,264
@ Indexable ( type = IndexableType . REINDEX ) public CommercePriceList upsertCommercePriceList ( long commercePriceListId , long commerceCurrencyId , long parentCommercePriceListId , String name , double priority , int displayDateMonth , int displayDateDay , int displayDateYear , int displayDateHour , int displayDateMinute , int expirationDateMonth , int expirationDateDay , int expirationDateYear , int expirationDateHour , int expirationDateMinute , String externalReferenceCode , boolean neverExpire , ServiceContext serviceContext ) throws PortalException { if ( commercePriceListId > 0 ) { try { return updateCommercePriceList ( commercePriceListId , commerceCurrencyId , parentCommercePriceListId , name , priority , displayDateMonth , displayDateDay , displayDateYear , displayDateHour , displayDateMinute , expirationDateMonth , expirationDateDay , expirationDateYear , expirationDateHour , expirationDateMinute , neverExpire , serviceContext ) ; } catch ( NoSuchPriceListException nsple ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Unable to find price list with ID: " + commercePriceListId ) ; } } } if ( Validator . isNotNull ( externalReferenceCode ) ) { CommercePriceList commercePriceList = commercePriceListPersistence . fetchByC_ERC ( serviceContext . getCompanyId ( ) , externalReferenceCode ) ; if ( commercePriceList != null ) { return updateCommercePriceList ( commercePriceList . getCommercePriceListId ( ) , commerceCurrencyId , parentCommercePriceListId , name , priority , displayDateMonth , displayDateDay , displayDateYear , displayDateHour , displayDateMinute , expirationDateMonth , expirationDateDay , expirationDateYear , expirationDateHour , expirationDateMinute , neverExpire , serviceContext ) ; } } return addCommercePriceList ( commerceCurrencyId , parentCommercePriceListId , name , priority , displayDateMonth , displayDateDay , displayDateYear , displayDateHour , displayDateMinute , expirationDateMonth , expirationDateDay , expirationDateYear , expirationDateHour , expirationDateMinute , externalReferenceCode , neverExpire , serviceContext ) ; }
This method is used to insert a new CommercePriceList or update an existing one
31,265
@ Indexable ( type = IndexableType . REINDEX ) public CPRule updateCPRule ( CPRule cpRule ) { return cpRulePersistence . update ( cpRule ) ; }
Updates the cp rule in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
31,266
@ Indexable ( type = IndexableType . DELETE ) public CommerceTaxFixedRate deleteCommerceTaxFixedRate ( long commerceTaxFixedRateId ) throws PortalException { return commerceTaxFixedRatePersistence . remove ( commerceTaxFixedRateId ) ; }
Deletes the commerce tax fixed rate with the primary key from the database . Also notifies the appropriate model listeners .
31,267
@ Indexable ( type = IndexableType . DELETE ) public CommerceTaxFixedRate deleteCommerceTaxFixedRate ( CommerceTaxFixedRate commerceTaxFixedRate ) { return commerceTaxFixedRatePersistence . remove ( commerceTaxFixedRate ) ; }
Deletes the commerce tax fixed rate from the database . Also notifies the appropriate model listeners .
31,268
public com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateAddressRelLocalService getCommerceTaxFixedRateAddressRelLocalService ( ) { return commerceTaxFixedRateAddressRelLocalService ; }
Returns the commerce tax fixed rate address rel local service .
31,269
public void setCommerceTaxFixedRateAddressRelLocalService ( com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateAddressRelLocalService commerceTaxFixedRateAddressRelLocalService ) { this . commerceTaxFixedRateAddressRelLocalService = commerceTaxFixedRateAddressRelLocalService ; }
Sets the commerce tax fixed rate address rel local service .
31,270
public com . liferay . commerce . product . model . CPDisplayLayout getCPDisplayLayout ( long CPDisplayLayoutId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpDisplayLayoutLocalService . getCPDisplayLayout ( CPDisplayLayoutId ) ; }
Returns the cp display layout with the primary key .
31,271
public void cacheResult ( CommerceTaxMethod commerceTaxMethod ) { entityCache . putResult ( CommerceTaxMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxMethodImpl . class , commerceTaxMethod . getPrimaryKey ( ) , commerceTaxMethod ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_E , new Object [ ] { commerceTaxMethod . getGroupId ( ) , commerceTaxMethod . getEngineKey ( ) } , commerceTaxMethod ) ; commerceTaxMethod . resetOriginalValues ( ) ; }
Caches the commerce tax method in the entity cache if it is enabled .
31,272
public void cacheResult ( List < CommerceTaxMethod > commerceTaxMethods ) { for ( CommerceTaxMethod commerceTaxMethod : commerceTaxMethods ) { if ( entityCache . getResult ( CommerceTaxMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxMethodImpl . class , commerceTaxMethod . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceTaxMethod ) ; } else { commerceTaxMethod . resetOriginalValues ( ) ; } } }
Caches the commerce tax methods in the entity cache if it is enabled .
31,273
public void clearCache ( ) { entityCache . clearCache ( CommerceTaxMethodImpl . 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 methods .
31,274
public void clearCache ( CommerceTaxMethod commerceTaxMethod ) { entityCache . removeResult ( CommerceTaxMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxMethodImpl . class , commerceTaxMethod . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceTaxMethodModelImpl ) commerceTaxMethod , true ) ; }
Clears the cache for the commerce tax method .
31,275
public List < CommerceTaxMethod > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce tax methods .
31,276
public com . liferay . commerce . account . service . persistence . CommerceAccountOrganizationRelPK getPrimaryKey ( ) { return _commerceAccountOrganizationRel . getPrimaryKey ( ) ; }
Returns the primary key of this commerce account organization rel .
31,277
public void setPrimaryKey ( com . liferay . commerce . account . service . persistence . CommerceAccountOrganizationRelPK primaryKey ) { _commerceAccountOrganizationRel . setPrimaryKey ( primaryKey ) ; }
Sets the primary key of this commerce account organization rel .
31,278
public void cacheResult ( CPFriendlyURLEntry cpFriendlyURLEntry ) { entityCache . putResult ( CPFriendlyURLEntryModelImpl . ENTITY_CACHE_ENABLED , CPFriendlyURLEntryImpl . class , cpFriendlyURLEntry . getPrimaryKey ( ) , cpFriendlyURLEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpFriendlyURLEntry . getUuid ( ) , cpFriendlyURLEntry . getGroupId ( ) } , cpFriendlyURLEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_C_L_U , new Object [ ] { cpFriendlyURLEntry . getGroupId ( ) , cpFriendlyURLEntry . getClassNameId ( ) , cpFriendlyURLEntry . getLanguageId ( ) , cpFriendlyURLEntry . getUrlTitle ( ) } , cpFriendlyURLEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_C_C_L_U , new Object [ ] { cpFriendlyURLEntry . getGroupId ( ) , cpFriendlyURLEntry . getClassNameId ( ) , cpFriendlyURLEntry . getClassPK ( ) , cpFriendlyURLEntry . getLanguageId ( ) , cpFriendlyURLEntry . getUrlTitle ( ) } , cpFriendlyURLEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_C_C_L_M , new Object [ ] { cpFriendlyURLEntry . getGroupId ( ) , cpFriendlyURLEntry . getClassNameId ( ) , cpFriendlyURLEntry . getClassPK ( ) , cpFriendlyURLEntry . getLanguageId ( ) , cpFriendlyURLEntry . isMain ( ) } , cpFriendlyURLEntry ) ; cpFriendlyURLEntry . resetOriginalValues ( ) ; }
Caches the cp friendly url entry in the entity cache if it is enabled .
31,279
public void cacheResult ( List < CPFriendlyURLEntry > cpFriendlyURLEntries ) { for ( CPFriendlyURLEntry cpFriendlyURLEntry : cpFriendlyURLEntries ) { if ( entityCache . getResult ( CPFriendlyURLEntryModelImpl . ENTITY_CACHE_ENABLED , CPFriendlyURLEntryImpl . class , cpFriendlyURLEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( cpFriendlyURLEntry ) ; } else { cpFriendlyURLEntry . resetOriginalValues ( ) ; } } }
Caches the cp friendly url entries in the entity cache if it is enabled .
31,280
public void clearCache ( ) { entityCache . clearCache ( CPFriendlyURLEntryImpl . 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 cp friendly url entries .
31,281
public void clearCache ( CPFriendlyURLEntry cpFriendlyURLEntry ) { entityCache . removeResult ( CPFriendlyURLEntryModelImpl . ENTITY_CACHE_ENABLED , CPFriendlyURLEntryImpl . class , cpFriendlyURLEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPFriendlyURLEntryModelImpl ) cpFriendlyURLEntry , true ) ; }
Clears the cache for the cp friendly url entry .
31,282
public List < CPFriendlyURLEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp friendly url entries .
31,283
public void cacheResult ( CommerceAvailabilityEstimate commerceAvailabilityEstimate ) { entityCache . putResult ( CommerceAvailabilityEstimateModelImpl . ENTITY_CACHE_ENABLED , CommerceAvailabilityEstimateImpl . class , commerceAvailabilityEstimate . getPrimaryKey ( ) , commerceAvailabilityEstimate ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceAvailabilityEstimate . getUuid ( ) , commerceAvailabilityEstimate . getGroupId ( ) } , commerceAvailabilityEstimate ) ; commerceAvailabilityEstimate . resetOriginalValues ( ) ; }
Caches the commerce availability estimate in the entity cache if it is enabled .
31,284
public void cacheResult ( List < CommerceAvailabilityEstimate > commerceAvailabilityEstimates ) { for ( CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates ) { if ( entityCache . getResult ( CommerceAvailabilityEstimateModelImpl . ENTITY_CACHE_ENABLED , CommerceAvailabilityEstimateImpl . class , commerceAvailabilityEstimate . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAvailabilityEstimate ) ; } else { commerceAvailabilityEstimate . resetOriginalValues ( ) ; } } }
Caches the commerce availability estimates in the entity cache if it is enabled .
31,285
public void clearCache ( ) { entityCache . clearCache ( CommerceAvailabilityEstimateImpl . 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 availability estimates .
31,286
public List < CommerceAvailabilityEstimate > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce availability estimates .
31,287
public void setCommercePaymentMethodGroupRelLocalService ( com . liferay . commerce . payment . service . CommercePaymentMethodGroupRelLocalService commercePaymentMethodGroupRelLocalService ) { this . commercePaymentMethodGroupRelLocalService = commercePaymentMethodGroupRelLocalService ; }
Sets the commerce payment method group rel local service .
31,288
public void setImageLocalService ( com . liferay . portal . kernel . service . ImageLocalService imageLocalService ) { this . imageLocalService = imageLocalService ; }
Sets the image local service .
31,289
public void setImageService ( com . liferay . portal . kernel . service . ImageService imageService ) { this . imageService = imageService ; }
Sets the image remote service .
31,290
public void cacheResult ( CommerceAddressRestriction commerceAddressRestriction ) { entityCache . putResult ( CommerceAddressRestrictionModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressRestrictionImpl . class , commerceAddressRestriction . getPrimaryKey ( ) , commerceAddressRestriction ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C_C , new Object [ ] { commerceAddressRestriction . getClassNameId ( ) , commerceAddressRestriction . getClassPK ( ) , commerceAddressRestriction . getCommerceCountryId ( ) } , commerceAddressRestriction ) ; commerceAddressRestriction . resetOriginalValues ( ) ; }
Caches the commerce address restriction in the entity cache if it is enabled .
31,291
public void cacheResult ( List < CommerceAddressRestriction > commerceAddressRestrictions ) { for ( CommerceAddressRestriction commerceAddressRestriction : commerceAddressRestrictions ) { if ( entityCache . getResult ( CommerceAddressRestrictionModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressRestrictionImpl . class , commerceAddressRestriction . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAddressRestriction ) ; } else { commerceAddressRestriction . resetOriginalValues ( ) ; } } }
Caches the commerce address restrictions in the entity cache if it is enabled .
31,292
public void clearCache ( ) { entityCache . clearCache ( CommerceAddressRestrictionImpl . 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 address restrictions .
31,293
public List < CommerceAddressRestriction > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce address restrictions .
31,294
@ Indexable ( type = IndexableType . DELETE ) public CommerceOrderPayment deleteCommerceOrderPayment ( long commerceOrderPaymentId ) throws PortalException { return commerceOrderPaymentPersistence . remove ( commerceOrderPaymentId ) ; }
Deletes the commerce order payment with the primary key from the database . Also notifies the appropriate model listeners .
31,295
public com . liferay . commerce . product . type . virtual . service . CPDefinitionVirtualSettingLocalService getCPDefinitionVirtualSettingLocalService ( ) { return cpDefinitionVirtualSettingLocalService ; }
Returns the cp definition virtual setting local service .
31,296
public void setCPDefinitionVirtualSettingLocalService ( com . liferay . commerce . product . type . virtual . service . CPDefinitionVirtualSettingLocalService cpDefinitionVirtualSettingLocalService ) { this . cpDefinitionVirtualSettingLocalService = cpDefinitionVirtualSettingLocalService ; }
Sets the cp definition virtual setting local service .
31,297
@ Indexable ( type = IndexableType . DELETE ) public CPRuleUserSegmentRel deleteCPRuleUserSegmentRel ( long CPRuleUserSegmentRelId ) throws PortalException { return cpRuleUserSegmentRelPersistence . remove ( CPRuleUserSegmentRelId ) ; }
Deletes the cp rule user segment rel with the primary key from the database . Also notifies the appropriate model listeners .
31,298
public String getTitle ( String languageId , boolean useDefault ) { return _cpAttachmentFileEntry . getTitle ( languageId , useDefault ) ; }
Returns the localized title of this cp attachment file entry in the language optionally using the default language if no localization exists for the requested language .
31,299
public void setTitleMap ( Map < java . util . Locale , String > titleMap ) { _cpAttachmentFileEntry . setTitleMap ( titleMap ) ; }
Sets the localized titles of this cp attachment file entry from the map of locales and localized titles .