idx
int64
0
41.2k
question
stringlengths
74
4.04k
target
stringlengths
7
750
31,100
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 .
31,101
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 .
31,102
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 .
31,103
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 .
31,104
public List < CommerceOrderNote > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce order notes .
31,105
public void setCommerceUserSegmentCriterionService ( com . liferay . commerce . user . segment . service . CommerceUserSegmentCriterionService commerceUserSegmentCriterionService ) { this . commerceUserSegmentCriterionService = commerceUserSegmentCriterionService ; }
Sets the commerce user segment criterion remote service .
31,106
public void setGroupLocalService ( com . liferay . portal . kernel . service . GroupLocalService groupLocalService ) { this . groupLocalService = groupLocalService ; }
Sets the group local service .
31,107
public void setGroupService ( com . liferay . portal . kernel . service . GroupService groupService ) { this . groupService = groupService ; }
Sets the group remote service .
31,108
public void setRoleLocalService ( com . liferay . portal . kernel . service . RoleLocalService roleLocalService ) { this . roleLocalService = roleLocalService ; }
Sets the role local service .
31,109
public void setRoleService ( com . liferay . portal . kernel . service . RoleService roleService ) { this . roleService = roleService ; }
Sets the role remote service .
31,110
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 .
31,111
@ Indexable ( type = IndexableType . REINDEX ) 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 .
31,112
@ Indexable ( type = IndexableType . REINDEX ) 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 .
31,113
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 .
31,114
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 .
31,115
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 .
31,116
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 .
31,117
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 .
31,118
public List < CommerceTaxFixedRate > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce tax fixed rates .
31,119
@ Indexable ( type = IndexableType . REINDEX ) 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 .
31,120
public com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateLocalService getCommerceTaxFixedRateLocalService ( ) { return commerceTaxFixedRateLocalService ; }
Returns the commerce tax fixed rate local service .
31,121
public void setCommerceTaxFixedRateLocalService ( com . liferay . commerce . tax . engine . fixed . service . CommerceTaxFixedRateLocalService commerceTaxFixedRateLocalService ) { this . commerceTaxFixedRateLocalService = commerceTaxFixedRateLocalService ; }
Sets the commerce tax fixed rate local service .
31,122
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 .
31,123
@ Indexable ( type = IndexableType . REINDEX ) 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 .
31,124
public void setCommerceTaxMethodLocalService ( com . liferay . commerce . tax . service . CommerceTaxMethodLocalService commerceTaxMethodLocalService ) { this . commerceTaxMethodLocalService = commerceTaxMethodLocalService ; }
Sets the commerce tax method local service .
31,125
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 .
31,126
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 .
31,127
public void setCommerceCurrencyLocalService ( com . liferay . commerce . currency . service . CommerceCurrencyLocalService commerceCurrencyLocalService ) { this . commerceCurrencyLocalService = commerceCurrencyLocalService ; }
Sets the commerce currency local service .
31,128
@ Indexable ( type = IndexableType . DELETE ) 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 .
31,129
@ Indexable ( type = IndexableType . DELETE ) 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 .
31,130
@ Indexable ( type = IndexableType . DELETE ) 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 .
31,131
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 .
31,132
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 .
31,133
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 .
31,134
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 .
31,135
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 .
31,136
public List < CommerceOrder > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce orders .
31,137
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 .
31,138
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 .
31,139
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 .
31,140
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 .
31,141
public List < CommerceWishListItem > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce wish list items .
31,142
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 .
31,143
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 .
31,144
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 .
31,145
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 .
31,146
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 .
31,147
public List < CommerceWishList > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce wish lists .
31,148
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 .
31,149
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 .
31,150
public void clearCache ( ) { entityCache . clearCache ( CommerceOrderItemImpl . 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 items .
31,151
public void clearCache ( CommerceOrderItem commerceOrderItem ) { entityCache . removeResult ( CommerceOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderItemImpl . class , commerceOrderItem . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceOrderItemModelImpl ) commerceOrderItem , true ) ; }
Clears the cache for the commerce order item .
31,152
public List < CommerceOrderItem > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce order items .
31,153
public void cacheResult ( CPDefinitionGroupedEntry cpDefinitionGroupedEntry ) { entityCache . putResult ( CPDefinitionGroupedEntryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionGroupedEntryImpl . class , cpDefinitionGroupedEntry . getPrimaryKey ( ) , cpDefinitionGroupedEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDefinitionGroupedEntry . getUuid ( ) , cpDefinitionGroupedEntry . getGroupId ( ) } , cpDefinitionGroupedEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_E , new Object [ ] { cpDefinitionGroupedEntry . getCPDefinitionId ( ) , cpDefinitionGroupedEntry . getEntryCProductId ( ) } , cpDefinitionGroupedEntry ) ; cpDefinitionGroupedEntry . resetOriginalValues ( ) ; }
Caches the cp definition grouped entry in the entity cache if it is enabled .
31,154
public void cacheResult ( List < CPDefinitionGroupedEntry > cpDefinitionGroupedEntries ) { for ( CPDefinitionGroupedEntry cpDefinitionGroupedEntry : cpDefinitionGroupedEntries ) { if ( entityCache . getResult ( CPDefinitionGroupedEntryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionGroupedEntryImpl . class , cpDefinitionGroupedEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionGroupedEntry ) ; } else { cpDefinitionGroupedEntry . resetOriginalValues ( ) ; } } }
Caches the cp definition grouped entries in the entity cache if it is enabled .
31,155
public void clearCache ( ) { entityCache . clearCache ( CPDefinitionGroupedEntryImpl . 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 definition grouped entries .
31,156
public void clearCache ( CPDefinitionGroupedEntry cpDefinitionGroupedEntry ) { entityCache . removeResult ( CPDefinitionGroupedEntryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionGroupedEntryImpl . class , cpDefinitionGroupedEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDefinitionGroupedEntryModelImpl ) cpDefinitionGroupedEntry , true ) ; }
Clears the cache for the cp definition grouped entry .
31,157
public List < CPDefinitionGroupedEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp definition grouped entries .
31,158
public String getName ( String languageId , boolean useDefault ) { return _cpOptionValue . getName ( languageId , useDefault ) ; }
Returns the localized name of this cp option value in the language optionally using the default language if no localization exists for the requested language .
31,159
@ Indexable ( type = IndexableType . DELETE ) public CommerceDiscountUsageEntry deleteCommerceDiscountUsageEntry ( long commerceDiscountUsageEntryId ) throws PortalException { return commerceDiscountUsageEntryPersistence . remove ( commerceDiscountUsageEntryId ) ; }
Deletes the commerce discount usage entry with the primary key from the database . Also notifies the appropriate model listeners .
31,160
@ Indexable ( type = IndexableType . DELETE ) public CommerceDiscountUsageEntry deleteCommerceDiscountUsageEntry ( CommerceDiscountUsageEntry commerceDiscountUsageEntry ) { return commerceDiscountUsageEntryPersistence . remove ( commerceDiscountUsageEntry ) ; }
Deletes the commerce discount usage entry from the database . Also notifies the appropriate model listeners .
31,161
@ Indexable ( type = IndexableType . REINDEX ) public CommerceDiscountUsageEntry updateCommerceDiscountUsageEntry ( CommerceDiscountUsageEntry commerceDiscountUsageEntry ) { return commerceDiscountUsageEntryPersistence . update ( commerceDiscountUsageEntry ) ; }
Updates the commerce discount usage entry in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
31,162
public void cacheResult ( CommerceDiscountRel commerceDiscountRel ) { entityCache . putResult ( CommerceDiscountRelModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRelImpl . class , commerceDiscountRel . getPrimaryKey ( ) , commerceDiscountRel ) ; commerceDiscountRel . resetOriginalValues ( ) ; }
Caches the commerce discount rel in the entity cache if it is enabled .
31,163
public void cacheResult ( List < CommerceDiscountRel > commerceDiscountRels ) { for ( CommerceDiscountRel commerceDiscountRel : commerceDiscountRels ) { if ( entityCache . getResult ( CommerceDiscountRelModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRelImpl . class , commerceDiscountRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceDiscountRel ) ; } else { commerceDiscountRel . resetOriginalValues ( ) ; } } }
Caches the commerce discount rels in the entity cache if it is enabled .
31,164
public void clearCache ( ) { entityCache . clearCache ( CommerceDiscountRelImpl . 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 discount rels .
31,165
public void clearCache ( CommerceDiscountRel commerceDiscountRel ) { entityCache . removeResult ( CommerceDiscountRelModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRelImpl . class , commerceDiscountRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce discount rel .
31,166
public List < CommerceDiscountRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce discount rels .
31,167
@ Indexable ( type = IndexableType . DELETE ) public CommerceOrder deleteCommerceOrder ( long commerceOrderId ) throws PortalException { return commerceOrderPersistence . remove ( commerceOrderId ) ; }
Deletes the commerce order with the primary key from the database . Also notifies the appropriate model listeners .
31,168
public List < CommerceOrder > getCommerceOrdersByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommerceOrder > orderByComparator ) { return commerceOrderPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of commerce orders matching the UUID and company .
31,169
public void setWorkflowDefinitionLinkLocalService ( com . liferay . portal . kernel . service . WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService ) { this . workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService ; }
Sets the workflow definition link local service .
31,170
public void cacheResult ( CPRule cpRule ) { entityCache . putResult ( CPRuleModelImpl . ENTITY_CACHE_ENABLED , CPRuleImpl . class , cpRule . getPrimaryKey ( ) , cpRule ) ; cpRule . resetOriginalValues ( ) ; }
Caches the cp rule in the entity cache if it is enabled .
31,171
public void cacheResult ( List < CPRule > cpRules ) { for ( CPRule cpRule : cpRules ) { if ( entityCache . getResult ( CPRuleModelImpl . ENTITY_CACHE_ENABLED , CPRuleImpl . class , cpRule . getPrimaryKey ( ) ) == null ) { cacheResult ( cpRule ) ; } else { cpRule . resetOriginalValues ( ) ; } } }
Caches the cp rules in the entity cache if it is enabled .
31,172
public void clearCache ( ) { entityCache . clearCache ( CPRuleImpl . 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 rules .
31,173
public void clearCache ( CPRule cpRule ) { entityCache . removeResult ( CPRuleModelImpl . ENTITY_CACHE_ENABLED , CPRuleImpl . class , cpRule . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the cp rule .
31,174
public List < CPRule > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp rules .
31,175
@ Indexable ( type = IndexableType . DELETE ) public CommerceCurrency deleteCommerceCurrency ( long commerceCurrencyId ) throws PortalException { return commerceCurrencyPersistence . remove ( commerceCurrencyId ) ; }
Deletes the commerce currency with the primary key from the database . Also notifies the appropriate model listeners .
31,176
@ Indexable ( type = IndexableType . DELETE ) public CommerceCurrency deleteCommerceCurrency ( CommerceCurrency commerceCurrency ) { return commerceCurrencyPersistence . remove ( commerceCurrency ) ; }
Deletes the commerce currency from the database . Also notifies the appropriate model listeners .
31,177
public void cacheResult ( CommerceRegion commerceRegion ) { entityCache . putResult ( CommerceRegionModelImpl . ENTITY_CACHE_ENABLED , CommerceRegionImpl . class , commerceRegion . getPrimaryKey ( ) , commerceRegion ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceRegion . getUuid ( ) , commerceRegion . getGroupId ( ) } , commerceRegion ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commerceRegion . getCommerceCountryId ( ) , commerceRegion . getCode ( ) } , commerceRegion ) ; commerceRegion . resetOriginalValues ( ) ; }
Caches the commerce region in the entity cache if it is enabled .
31,178
public void cacheResult ( List < CommerceRegion > commerceRegions ) { for ( CommerceRegion commerceRegion : commerceRegions ) { if ( entityCache . getResult ( CommerceRegionModelImpl . ENTITY_CACHE_ENABLED , CommerceRegionImpl . class , commerceRegion . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceRegion ) ; } else { commerceRegion . resetOriginalValues ( ) ; } } }
Caches the commerce regions in the entity cache if it is enabled .
31,179
public void clearCache ( ) { entityCache . clearCache ( CommerceRegionImpl . 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 regions .
31,180
public void clearCache ( CommerceRegion commerceRegion ) { entityCache . removeResult ( CommerceRegionModelImpl . ENTITY_CACHE_ENABLED , CommerceRegionImpl . class , commerceRegion . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceRegionModelImpl ) commerceRegion , true ) ; }
Clears the cache for the commerce region .
31,181
public List < CommerceRegion > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce regions .
31,182
@ Indexable ( type = IndexableType . DELETE ) public CPDefinition deleteCPDefinition ( long CPDefinitionId ) throws PortalException { return cpDefinitionPersistence . remove ( CPDefinitionId ) ; }
Deletes the cp definition with the primary key from the database . Also notifies the appropriate model listeners .
31,183
@ Indexable ( type = IndexableType . DELETE ) public CPDefinition deleteCPDefinition ( CPDefinition cpDefinition ) throws PortalException { return cpDefinitionPersistence . remove ( cpDefinition ) ; }
Deletes the cp definition from the database . Also notifies the appropriate model listeners .
31,184
public List < CPDefinition > getCPDefinitionsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPDefinition > orderByComparator ) { return cpDefinitionPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp definitions matching the UUID and company .
31,185
public com . liferay . commerce . discount . model . CommerceDiscountRel getCommerceDiscountRel ( long commerceDiscountRelId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceDiscountRelLocalService . getCommerceDiscountRel ( commerceDiscountRelId ) ; }
Returns the commerce discount rel with the primary key .
31,186
public com . liferay . commerce . wish . list . model . CommerceWishList getCommerceWishList ( long commerceWishListId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceWishListLocalService . getCommerceWishList ( commerceWishListId ) ; }
Returns the commerce wish list with the primary key .
31,187
public void cacheResult ( CommerceAccountUserRel commerceAccountUserRel ) { entityCache . putResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , commerceAccountUserRel . getPrimaryKey ( ) , commerceAccountUserRel ) ; commerceAccountUserRel . resetOriginalValues ( ) ; }
Caches the commerce account user rel in the entity cache if it is enabled .
31,188
public void cacheResult ( List < CommerceAccountUserRel > commerceAccountUserRels ) { for ( CommerceAccountUserRel commerceAccountUserRel : commerceAccountUserRels ) { if ( entityCache . getResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , commerceAccountUserRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAccountUserRel ) ; } else { commerceAccountUserRel . resetOriginalValues ( ) ; } } }
Caches the commerce account user rels in the entity cache if it is enabled .
31,189
public void clearCache ( ) { entityCache . clearCache ( CommerceAccountUserRelImpl . 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 account user rels .
31,190
public void clearCache ( CommerceAccountUserRel commerceAccountUserRel ) { entityCache . removeResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , commerceAccountUserRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce account user rel .
31,191
public List < CommerceAccountUserRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce account user rels .
31,192
public String getName ( String languageId , boolean useDefault ) { return _commerceCountry . getName ( languageId , useDefault ) ; }
Returns the localized name of this commerce country in the language optionally using the default language if no localization exists for the requested language .
31,193
public void setName ( String name , java . util . Locale locale ) { _commerceCountry . setName ( name , locale ) ; }
Sets the localized name of this commerce country in the language .
31,194
public void cacheResult ( CPDefinition cpDefinition ) { entityCache . putResult ( CPDefinitionModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionImpl . class , cpDefinition . getPrimaryKey ( ) , cpDefinition ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDefinition . getUuid ( ) , cpDefinition . getGroupId ( ) } , cpDefinition ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { cpDefinition . getCompanyId ( ) , cpDefinition . getExternalReferenceCode ( ) } , cpDefinition ) ; cpDefinition . resetOriginalValues ( ) ; }
Caches the cp definition in the entity cache if it is enabled .
31,195
public void cacheResult ( List < CPDefinition > cpDefinitions ) { for ( CPDefinition cpDefinition : cpDefinitions ) { if ( entityCache . getResult ( CPDefinitionModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionImpl . class , cpDefinition . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinition ) ; } else { cpDefinition . resetOriginalValues ( ) ; } } }
Caches the cp definitions in the entity cache if it is enabled .
31,196
public void clearCache ( ) { entityCache . clearCache ( CPDefinitionImpl . 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 definitions .
31,197
public void clearCache ( CPDefinition cpDefinition ) { entityCache . removeResult ( CPDefinitionModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionImpl . class , cpDefinition . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDefinitionModelImpl ) cpDefinition , true ) ; }
Clears the cache for the cp definition .
31,198
public List < CPDefinition > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp definitions .
31,199
public String getFormatPattern ( String languageId , boolean useDefault ) { return _commerceCurrency . getFormatPattern ( languageId , useDefault ) ; }
Returns the localized format pattern of this commerce currency in the language optionally using the default language if no localization exists for the requested language .