idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
31,200
public void setCommerceWishListService ( com . liferay . commerce . wish . list . service . CommerceWishListService commerceWishListService ) { this . commerceWishListService = commerceWishListService ; }
Sets the commerce wish list remote service .
50
9
31,201
@ Override 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 .
35
26
31,202
@ Override 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 .
37
27
31,203
@ Override 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
26
31,204
@ Override 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 .
35
26
31,205
@ Override 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 .
49
19
31,206
@ Override 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 .
39
20
31,207
@ Override 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 .
53
25
31,208
@ Override 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 .
39
15
31,209
@ Override 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 .
43
22
31,210
@ Override 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 .
57
27
31,211
@ Override 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 .
35
14
31,212
@ Override 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 .
39
20
31,213
@ Override 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 .
53
25
31,214
@ Indexable ( type = IndexableType . REINDEX ) @ Override 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 { // Update 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 ) ; } } // Add 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
483
16
31,215
@ Indexable ( type = IndexableType . REINDEX ) @ Override 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 .
44
26
31,216
@ Indexable ( type = IndexableType . DELETE ) @ Override 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 .
57
23
31,217
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceTaxFixedRate deleteCommerceTaxFixedRate ( CommerceTaxFixedRate commerceTaxFixedRate ) { return commerceTaxFixedRatePersistence . remove ( commerceTaxFixedRate ) ; }
Deletes the commerce tax fixed rate from the database . Also notifies the appropriate model listeners .
55
19
31,218
public com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateAddressRelLocalService getCommerceTaxFixedRateAddressRelLocalService ( ) { return commerceTaxFixedRateAddressRelLocalService ; }
Returns the commerce tax fixed rate address rel local service .
48
11
31,219
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 .
67
12
31,220
@ Override 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 .
76
10
31,221
@ Override 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 .
126
15
31,222
@ Override 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 .
103
15
31,223
@ Override 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 .
97
10
31,224
@ Override 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 .
131
10
31,225
@ Override public List < CommerceTaxMethod > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce tax methods .
39
7
31,226
@ Override public com . liferay . commerce . account . service . persistence . CommerceAccountOrganizationRelPK getPrimaryKey ( ) { return _commerceAccountOrganizationRel . getPrimaryKey ( ) ; }
Returns the primary key of this commerce account organization rel .
45
11
31,227
@ Override public void setPrimaryKey ( com . liferay . commerce . account . service . persistence . CommerceAccountOrganizationRelPK primaryKey ) { _commerceAccountOrganizationRel . setPrimaryKey ( primaryKey ) ; }
Sets the primary key of this commerce account organization rel .
49
12
31,228
@ Override 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 .
495
16
31,229
@ Override 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 .
143
16
31,230
@ Override 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 .
101
11
31,231
@ Override 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 .
159
11
31,232
@ Override public List < CPFriendlyURLEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp friendly url entries .
43
8
31,233
@ Override 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 .
137
15
31,234
@ Override 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 .
113
15
31,235
@ Override 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 .
98
10
31,236
@ Override public List < CommerceAvailabilityEstimate > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce availability estimates .
40
7
31,237
public void setCommercePaymentMethodGroupRelLocalService ( com . liferay . commerce . payment . service . CommercePaymentMethodGroupRelLocalService commercePaymentMethodGroupRelLocalService ) { this . commercePaymentMethodGroupRelLocalService = commercePaymentMethodGroupRelLocalService ; }
Sets the commerce payment method group rel local service .
63
11
31,238
public void setImageLocalService ( com . liferay . portal . kernel . service . ImageLocalService imageLocalService ) { this . imageLocalService = imageLocalService ; }
Sets the image local service .
38
7
31,239
public void setImageService ( com . liferay . portal . kernel . service . ImageService imageService ) { this . imageService = imageService ; }
Sets the image remote service .
33
7
31,240
@ Override 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 .
151
15
31,241
@ Override 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 .
115
15
31,242
@ Override 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 .
98
10
31,243
@ Override public List < CommerceAddressRestriction > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce address restrictions .
40
7
31,244
@ Indexable ( type = IndexableType . DELETE ) @ Override 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 .
57
22
31,245
public com . liferay . commerce . product . type . virtual . service . CPDefinitionVirtualSettingLocalService getCPDefinitionVirtualSettingLocalService ( ) { return cpDefinitionVirtualSettingLocalService ; }
Returns the cp definition virtual setting local service .
46
9
31,246
public void setCPDefinitionVirtualSettingLocalService ( com . liferay . commerce . product . type . virtual . service . CPDefinitionVirtualSettingLocalService cpDefinitionVirtualSettingLocalService ) { this . cpDefinitionVirtualSettingLocalService = cpDefinitionVirtualSettingLocalService ; }
Sets the cp definition virtual setting local service .
61
10
31,247
@ Indexable ( type = IndexableType . DELETE ) @ Override 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 .
68
24
31,248
@ Override 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 .
36
27
31,249
@ Override 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 .
40
21
31,250
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceAccountUserRel deleteCommerceAccountUserRel ( CommerceAccountUserRelPK commerceAccountUserRelPK ) throws PortalException { return commerceAccountUserRelPersistence . remove ( commerceAccountUserRelPK ) ; }
Deletes the commerce account user rel with the primary key from the database . Also notifies the appropriate model listeners .
61
23
31,251
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceAccountUserRel deleteCommerceAccountUserRel ( CommerceAccountUserRel commerceAccountUserRel ) { return commerceAccountUserRelPersistence . remove ( commerceAccountUserRel ) ; }
Deletes the commerce account user rel from the database . Also notifies the appropriate model listeners .
55
19
31,252
public void setCommerceAccountLocalService ( com . liferay . commerce . account . service . CommerceAccountLocalService commerceAccountLocalService ) { this . commerceAccountLocalService = commerceAccountLocalService ; }
Sets the commerce account local service .
43
8
31,253
public void setUserGroupRoleLocalService ( com . liferay . portal . kernel . service . UserGroupRoleLocalService userGroupRoleLocalService ) { this . userGroupRoleLocalService = userGroupRoleLocalService ; }
Sets the user group role local service .
48
9
31,254
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPTaxCategory deleteCPTaxCategory ( long CPTaxCategoryId ) throws PortalException { return cpTaxCategoryPersistence . remove ( CPTaxCategoryId ) ; }
Deletes the cp tax category with the primary key from the database . Also notifies the appropriate model listeners .
55
22
31,255
@ Override public void cacheResult ( CPTaxCategory cpTaxCategory ) { entityCache . putResult ( CPTaxCategoryModelImpl . ENTITY_CACHE_ENABLED , CPTaxCategoryImpl . class , cpTaxCategory . getPrimaryKey ( ) , cpTaxCategory ) ; cpTaxCategory . resetOriginalValues ( ) ; }
Caches the cp tax category in the entity cache if it is enabled .
75
15
31,256
@ Override public void cacheResult ( List < CPTaxCategory > cpTaxCategories ) { for ( CPTaxCategory cpTaxCategory : cpTaxCategories ) { if ( entityCache . getResult ( CPTaxCategoryModelImpl . ENTITY_CACHE_ENABLED , CPTaxCategoryImpl . class , cpTaxCategory . getPrimaryKey ( ) ) == null ) { cacheResult ( cpTaxCategory ) ; } else { cpTaxCategory . resetOriginalValues ( ) ; } } }
Caches the cp tax categories in the entity cache if it is enabled .
109
15
31,257
@ Override public void clearCache ( ) { entityCache . clearCache ( CPTaxCategoryImpl . 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 tax categories .
98
10
31,258
@ Override public void clearCache ( CPTaxCategory cpTaxCategory ) { entityCache . removeResult ( CPTaxCategoryModelImpl . ENTITY_CACHE_ENABLED , CPTaxCategoryImpl . class , cpTaxCategory . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the cp tax category .
114
10
31,259
@ Override public List < CPTaxCategory > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp tax categories .
40
7
31,260
@ Override public void cacheResult ( CommerceAccount commerceAccount ) { entityCache . putResult ( CommerceAccountModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountImpl . class , commerceAccount . getPrimaryKey ( ) , commerceAccount ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commerceAccount . getCompanyId ( ) , commerceAccount . getExternalReferenceCode ( ) } , commerceAccount ) ; commerceAccount . resetOriginalValues ( ) ; }
Caches the commerce account in the entity cache if it is enabled .
117
14
31,261
@ Override public void cacheResult ( List < CommerceAccount > commerceAccounts ) { for ( CommerceAccount commerceAccount : commerceAccounts ) { if ( entityCache . getResult ( CommerceAccountModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountImpl . class , commerceAccount . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAccount ) ; } else { commerceAccount . resetOriginalValues ( ) ; } } }
Caches the commerce accounts in the entity cache if it is enabled .
95
14
31,262
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceAccountImpl . 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 accounts .
96
9
31,263
@ Override public void clearCache ( CommerceAccount commerceAccount ) { entityCache . removeResult ( CommerceAccountModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountImpl . class , commerceAccount . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceAccountModelImpl ) commerceAccount , true ) ; }
Clears the cache for the commerce account .
124
9
31,264
@ Override public List < CommerceAccount > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce accounts .
38
6
31,265
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceDiscountUserSegmentRel addCommerceDiscountUserSegmentRel ( CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel ) { commerceDiscountUserSegmentRel . setNew ( true ) ; return commerceDiscountUserSegmentRelPersistence . update ( commerceDiscountUserSegmentRel ) ; }
Adds the commerce discount user segment rel to the database . Also notifies the appropriate model listeners .
87
19
31,266
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPOptionValue deleteCPOptionValue ( long CPOptionValueId ) throws PortalException { return cpOptionValuePersistence . remove ( CPOptionValueId ) ; }
Deletes the cp option value with the primary key from the database . Also notifies the appropriate model listeners .
55
22
31,267
@ Override public List < CPOptionValue > getCPOptionValuesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPOptionValue > orderByComparator ) { return cpOptionValuePersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp option values matching the UUID and company .
83
14
31,268
@ Override public String getDescription ( String languageId , boolean useDefault ) { return _cpOption . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this cp option in the language optionally using the default language if no localization exists for the requested language .
33
25
31,269
@ Override public String getName ( String languageId , boolean useDefault ) { return _cpOption . getName ( languageId , useDefault ) ; }
Returns the localized name of this cp option in the language optionally using the default language if no localization exists for the requested language .
33
25
31,270
@ Override public void setDescriptionMap ( Map < java . util . Locale , String > descriptionMap , java . util . Locale defaultLocale ) { _cpOption . setDescriptionMap ( descriptionMap , defaultLocale ) ; }
Sets the localized descriptions of this cp option from the map of locales and localized descriptions and sets the default locale .
51
24
31,271
@ Override public void cacheResult ( CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel ) { entityCache . putResult ( CommercePriceListUserSegmentEntryRelModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListUserSegmentEntryRelImpl . class , commercePriceListUserSegmentEntryRel . getPrimaryKey ( ) , commercePriceListUserSegmentEntryRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceListUserSegmentEntryRel . getUuid ( ) , commercePriceListUserSegmentEntryRel . getGroupId ( ) } , commercePriceListUserSegmentEntryRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commercePriceListUserSegmentEntryRel . getCommercePriceListId ( ) , commercePriceListUserSegmentEntryRel . getCommerceUserSegmentEntryId ( ) } , commercePriceListUserSegmentEntryRel ) ; commercePriceListUserSegmentEntryRel . resetOriginalValues ( ) ; }
Caches the commerce price list user segment entry rel in the entity cache if it is enabled .
252
19
31,272
@ Override public void cacheResult ( List < CommercePriceListUserSegmentEntryRel > commercePriceListUserSegmentEntryRels ) { for ( CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel : commercePriceListUserSegmentEntryRels ) { if ( entityCache . getResult ( CommercePriceListUserSegmentEntryRelModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListUserSegmentEntryRelImpl . class , commercePriceListUserSegmentEntryRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceListUserSegmentEntryRel ) ; } else { commercePriceListUserSegmentEntryRel . resetOriginalValues ( ) ; } } }
Caches the commerce price list user segment entry rels in the entity cache if it is enabled .
155
20
31,273
@ Override public void clearCache ( ) { entityCache . clearCache ( CommercePriceListUserSegmentEntryRelImpl . 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 list user segment entry rels .
102
15
31,274
@ Override public void clearCache ( CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel ) { entityCache . removeResult ( CommercePriceListUserSegmentEntryRelModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListUserSegmentEntryRelImpl . class , commercePriceListUserSegmentEntryRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePriceListUserSegmentEntryRelModelImpl ) commercePriceListUserSegmentEntryRel , true ) ; }
Clears the cache for the commerce price list user segment entry rel .
166
14
31,275
@ Override public List < CommercePriceListUserSegmentEntryRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce price list user segment entry rels .
44
12
31,276
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommercePriceListAccountRel deleteCommercePriceListAccountRel ( long commercePriceListAccountRelId ) throws PortalException { return commercePriceListAccountRelPersistence . remove ( commercePriceListAccountRelId ) ; }
Deletes the commerce price list account rel with the primary key from the database . Also notifies the appropriate model listeners .
62
24
31,277
@ Override public List < CommercePriceListAccountRel > getCommercePriceListAccountRelsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommercePriceListAccountRel > orderByComparator ) { return commercePriceListAccountRelPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of commerce price list account rels matching the UUID and company .
90
17
31,278
@ Override public void cacheResult ( CommercePaymentMethodGroupRel commercePaymentMethodGroupRel ) { entityCache . putResult ( CommercePaymentMethodGroupRelModelImpl . ENTITY_CACHE_ENABLED , CommercePaymentMethodGroupRelImpl . class , commercePaymentMethodGroupRel . getPrimaryKey ( ) , commercePaymentMethodGroupRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_E , new Object [ ] { commercePaymentMethodGroupRel . getGroupId ( ) , commercePaymentMethodGroupRel . getEngineKey ( ) } , commercePaymentMethodGroupRel ) ; commercePaymentMethodGroupRel . resetOriginalValues ( ) ; }
Caches the commerce payment method group rel in the entity cache if it is enabled .
156
17
31,279
@ Override public void cacheResult ( List < CommercePaymentMethodGroupRel > commercePaymentMethodGroupRels ) { for ( CommercePaymentMethodGroupRel commercePaymentMethodGroupRel : commercePaymentMethodGroupRels ) { if ( entityCache . getResult ( CommercePaymentMethodGroupRelModelImpl . ENTITY_CACHE_ENABLED , CommercePaymentMethodGroupRelImpl . class , commercePaymentMethodGroupRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePaymentMethodGroupRel ) ; } else { commercePaymentMethodGroupRel . resetOriginalValues ( ) ; } } }
Caches the commerce payment method group rels in the entity cache if it is enabled .
135
18
31,280
@ Override public void clearCache ( ) { entityCache . clearCache ( CommercePaymentMethodGroupRelImpl . 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 payment method group rels .
100
13
31,281
@ Override public void clearCache ( CommercePaymentMethodGroupRel commercePaymentMethodGroupRel ) { entityCache . removeResult ( CommercePaymentMethodGroupRelModelImpl . ENTITY_CACHE_ENABLED , CommercePaymentMethodGroupRelImpl . class , commercePaymentMethodGroupRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePaymentMethodGroupRelModelImpl ) commercePaymentMethodGroupRel , true ) ; }
Clears the cache for the commerce payment method group rel .
152
12
31,282
@ Override public CommercePaymentMethodGroupRel remove ( Serializable primaryKey ) throws NoSuchPaymentMethodGroupRelException { Session session = null ; try { session = openSession ( ) ; CommercePaymentMethodGroupRel commercePaymentMethodGroupRel = ( CommercePaymentMethodGroupRel ) session . get ( CommercePaymentMethodGroupRelImpl . class , primaryKey ) ; if ( commercePaymentMethodGroupRel == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchPaymentMethodGroupRelException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commercePaymentMethodGroupRel ) ; } catch ( NoSuchPaymentMethodGroupRelException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce payment method group rel with the primary key from the database . Also notifies the appropriate model listeners .
221
24
31,283
@ Override public List < CommercePaymentMethodGroupRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce payment method group rels .
42
10
31,284
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommercePriceList deleteCommercePriceList ( long commercePriceListId ) throws PortalException { return commercePriceListPersistence . remove ( commercePriceListId ) ; }
Deletes the commerce price list with the primary key from the database . Also notifies the appropriate model listeners .
52
22
31,285
@ Override public CommercePriceList fetchCommercePriceListByReferenceCode ( long companyId , String externalReferenceCode ) { return commercePriceListPersistence . fetchByC_ERC ( companyId , null ) ; }
Returns the commerce price list with the matching external reference code and company .
45
14
31,286
@ Override public List < CommercePriceList > getCommercePriceListsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommercePriceList > orderByComparator ) { return commercePriceListPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of commerce price lists matching the UUID and company .
82
14
31,287
@ Override public void cacheResult ( CommerceVirtualOrderItem commerceVirtualOrderItem ) { entityCache . putResult ( CommerceVirtualOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceVirtualOrderItemImpl . class , commerceVirtualOrderItem . getPrimaryKey ( ) , commerceVirtualOrderItem ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceVirtualOrderItem . getUuid ( ) , commerceVirtualOrderItem . getGroupId ( ) } , commerceVirtualOrderItem ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_COMMERCEORDERITEMID , new Object [ ] { commerceVirtualOrderItem . getCommerceOrderItemId ( ) } , commerceVirtualOrderItem ) ; commerceVirtualOrderItem . resetOriginalValues ( ) ; }
Caches the commerce virtual order item in the entity cache if it is enabled .
190
16
31,288
@ Override public void cacheResult ( List < CommerceVirtualOrderItem > commerceVirtualOrderItems ) { for ( CommerceVirtualOrderItem commerceVirtualOrderItem : commerceVirtualOrderItems ) { if ( entityCache . getResult ( CommerceVirtualOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceVirtualOrderItemImpl . class , commerceVirtualOrderItem . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceVirtualOrderItem ) ; } else { commerceVirtualOrderItem . resetOriginalValues ( ) ; } } }
Caches the commerce virtual order items in the entity cache if it is enabled .
113
16
31,289
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceVirtualOrderItemImpl . 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 virtual order items .
98
11
31,290
@ Override public void clearCache ( CommerceVirtualOrderItem commerceVirtualOrderItem ) { entityCache . removeResult ( CommerceVirtualOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceVirtualOrderItemImpl . class , commerceVirtualOrderItem . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceVirtualOrderItemModelImpl ) commerceVirtualOrderItem , true ) ; }
Clears the cache for the commerce virtual order item .
138
11
31,291
@ Override public CommerceVirtualOrderItem remove ( Serializable primaryKey ) throws NoSuchVirtualOrderItemException { Session session = null ; try { session = openSession ( ) ; CommerceVirtualOrderItem commerceVirtualOrderItem = ( CommerceVirtualOrderItem ) session . get ( CommerceVirtualOrderItemImpl . class , primaryKey ) ; if ( commerceVirtualOrderItem == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchVirtualOrderItemException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceVirtualOrderItem ) ; } catch ( NoSuchVirtualOrderItemException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce virtual order item with the primary key from the database . Also notifies the appropriate model listeners .
201
23
31,292
@ Override public List < CommerceVirtualOrderItem > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce virtual order items .
40
8
31,293
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPAttachmentFileEntry deleteCPAttachmentFileEntry ( long CPAttachmentFileEntryId ) throws PortalException { return cpAttachmentFileEntryPersistence . remove ( CPAttachmentFileEntryId ) ; }
Deletes the cp attachment file entry with the primary key from the database . Also notifies the appropriate model listeners .
66
23
31,294
@ Override public CPAttachmentFileEntry fetchCPAttachmentFileEntryByReferenceCode ( long companyId , String externalReferenceCode ) { return cpAttachmentFileEntryPersistence . fetchByC_ERC ( companyId , null ) ; }
Returns the cp attachment file entry with the matching external reference code and company .
53
15
31,295
@ Override public List < CPAttachmentFileEntry > getCPAttachmentFileEntriesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPAttachmentFileEntry > orderByComparator ) { return cpAttachmentFileEntryPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp attachment file entries matching the UUID and company .
93
15
31,296
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CPAttachmentFileEntry updateCPAttachmentFileEntry ( CPAttachmentFileEntry cpAttachmentFileEntry ) { return cpAttachmentFileEntryPersistence . update ( cpAttachmentFileEntry ) ; }
Updates the cp attachment file entry in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
64
28
31,297
public void setDLFileEntryLocalService ( com . liferay . document . library . kernel . service . DLFileEntryLocalService dlFileEntryLocalService ) { this . dlFileEntryLocalService = dlFileEntryLocalService ; }
Sets the document library file entry local service .
53
10
31,298
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceNotificationTemplate addCommerceNotificationTemplate ( CommerceNotificationTemplate commerceNotificationTemplate ) { commerceNotificationTemplate . setNew ( true ) ; return commerceNotificationTemplatePersistence . update ( commerceNotificationTemplate ) ; }
Adds the commerce notification template to the database . Also notifies the appropriate model listeners .
66
17
31,299
@ Override public List < CommerceNotificationTemplate > getCommerceNotificationTemplatesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommerceNotificationTemplate > orderByComparator ) { return commerceNotificationTemplatePersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of commerce notification templates matching the UUID and company .
86
14