idx
int64
0
41.2k
question
stringlengths
74
4.04k
target
stringlengths
7
750
31,000
public void clearCache ( ) { entityCache . clearCache ( CPAttachmentFileEntryImpl . 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 attachment file entries .
31,001
public void clearCache ( CPAttachmentFileEntry cpAttachmentFileEntry ) { entityCache . removeResult ( CPAttachmentFileEntryModelImpl . ENTITY_CACHE_ENABLED , CPAttachmentFileEntryImpl . class , cpAttachmentFileEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPAttachmentFileEntryModelImpl ) cpAttachmentFileEntry , true ) ; }
Clears the cache for the cp attachment file entry .
31,002
public List < CPAttachmentFileEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp attachment file entries .
31,003
@ Indexable ( type = IndexableType . DELETE ) public CPDefinitionLink deleteCPDefinitionLink ( long CPDefinitionLinkId ) throws PortalException { return cpDefinitionLinkPersistence . remove ( CPDefinitionLinkId ) ; }
Deletes the cp definition link with the primary key from the database . Also notifies the appropriate model listeners .
31,004
@ Indexable ( type = IndexableType . DELETE ) public CPDefinitionLink deleteCPDefinitionLink ( CPDefinitionLink cpDefinitionLink ) { return cpDefinitionLinkPersistence . remove ( cpDefinitionLink ) ; }
Deletes the cp definition link from the database . Also notifies the appropriate model listeners .
31,005
public List < CPDefinitionLink > getCPDefinitionLinksByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPDefinitionLink > orderByComparator ) { return cpDefinitionLinkPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp definition links matching the UUID and company .
31,006
@ Indexable ( type = IndexableType . REINDEX ) public CPDefinitionLink updateCPDefinitionLink ( CPDefinitionLink cpDefinitionLink ) { return cpDefinitionLinkPersistence . update ( cpDefinitionLink ) ; }
Updates the cp definition link in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
31,007
public void cacheResult ( CommercePriceListAccountRel commercePriceListAccountRel ) { entityCache . putResult ( CommercePriceListAccountRelModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListAccountRelImpl . class , commercePriceListAccountRel . getPrimaryKey ( ) , commercePriceListAccountRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceListAccountRel . getUuid ( ) , commercePriceListAccountRel . getGroupId ( ) } , commercePriceListAccountRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commercePriceListAccountRel . getCommerceAccountId ( ) , commercePriceListAccountRel . getCommercePriceListId ( ) } , commercePriceListAccountRel ) ; commercePriceListAccountRel . resetOriginalValues ( ) ; }
Caches the commerce price list account rel in the entity cache if it is enabled .
31,008
public void cacheResult ( List < CommercePriceListAccountRel > commercePriceListAccountRels ) { for ( CommercePriceListAccountRel commercePriceListAccountRel : commercePriceListAccountRels ) { if ( entityCache . getResult ( CommercePriceListAccountRelModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListAccountRelImpl . class , commercePriceListAccountRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceListAccountRel ) ; } else { commercePriceListAccountRel . resetOriginalValues ( ) ; } } }
Caches the commerce price list account rels in the entity cache if it is enabled .
31,009
public void clearCache ( ) { entityCache . clearCache ( CommercePriceListAccountRelImpl . 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 account rels .
31,010
public void clearCache ( CommercePriceListAccountRel commercePriceListAccountRel ) { entityCache . removeResult ( CommercePriceListAccountRelModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListAccountRelImpl . class , commercePriceListAccountRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePriceListAccountRelModelImpl ) commercePriceListAccountRel , true ) ; }
Clears the cache for the commerce price list account rel .
31,011
public List < CommercePriceListAccountRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce price list account rels .
31,012
public com . liferay . commerce . discount . model . CommerceDiscountUsageEntry getCommerceDiscountUsageEntry ( long commerceDiscountUsageEntryId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceDiscountUsageEntryLocalService . getCommerceDiscountUsageEntry ( commerceDiscountUsageEntryId ) ; }
Returns the commerce discount usage entry with the primary key .
31,013
public String getDescription ( String languageId , boolean useDefault ) { return _cpDefinitionOptionRel . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this cp definition option rel in the language optionally using the default language if no localization exists for the requested language .
31,014
public String getName ( String languageId , boolean useDefault ) { return _cpDefinitionOptionRel . getName ( languageId , useDefault ) ; }
Returns the localized name of this cp definition option rel in the language optionally using the default language if no localization exists for the requested language .
31,015
public static com . liferay . commerce . model . CommerceShipment getCommerceShipment ( long commerceShipmentId ) throws com . liferay . portal . kernel . exception . PortalException { return getService ( ) . getCommerceShipment ( commerceShipmentId ) ; }
Returns the commerce shipment with the primary key .
31,016
public String getDescription ( String languageId , boolean useDefault ) { return _commerceShippingMethod . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this commerce shipping method in the language optionally using the default language if no localization exists for the requested language .
31,017
public String getName ( String languageId , boolean useDefault ) { return _commerceShippingMethod . getName ( languageId , useDefault ) ; }
Returns the localized name of this commerce shipping method in the language optionally using the default language if no localization exists for the requested language .
31,018
public void cacheResult ( CommerceUserSegmentEntry commerceUserSegmentEntry ) { entityCache . putResult ( CommerceUserSegmentEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceUserSegmentEntryImpl . class , commerceUserSegmentEntry . getPrimaryKey ( ) , commerceUserSegmentEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K , new Object [ ] { commerceUserSegmentEntry . getGroupId ( ) , commerceUserSegmentEntry . getKey ( ) } , commerceUserSegmentEntry ) ; commerceUserSegmentEntry . resetOriginalValues ( ) ; }
Caches the commerce user segment entry in the entity cache if it is enabled .
31,019
public void cacheResult ( List < CommerceUserSegmentEntry > commerceUserSegmentEntries ) { for ( CommerceUserSegmentEntry commerceUserSegmentEntry : commerceUserSegmentEntries ) { if ( entityCache . getResult ( CommerceUserSegmentEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceUserSegmentEntryImpl . class , commerceUserSegmentEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceUserSegmentEntry ) ; } else { commerceUserSegmentEntry . resetOriginalValues ( ) ; } } }
Caches the commerce user segment entries in the entity cache if it is enabled .
31,020
public void clearCache ( ) { entityCache . clearCache ( CommerceUserSegmentEntryImpl . 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 user segment entries .
31,021
public void clearCache ( CommerceUserSegmentEntry commerceUserSegmentEntry ) { entityCache . removeResult ( CommerceUserSegmentEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceUserSegmentEntryImpl . class , commerceUserSegmentEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceUserSegmentEntryModelImpl ) commerceUserSegmentEntry , true ) ; }
Clears the cache for the commerce user segment entry .
31,022
public List < CommerceUserSegmentEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce user segment entries .
31,023
public void cacheResult ( CPDAvailabilityEstimate cpdAvailabilityEstimate ) { entityCache . putResult ( CPDAvailabilityEstimateModelImpl . ENTITY_CACHE_ENABLED , CPDAvailabilityEstimateImpl . class , cpdAvailabilityEstimate . getPrimaryKey ( ) , cpdAvailabilityEstimate ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpdAvailabilityEstimate . getUuid ( ) , cpdAvailabilityEstimate . getGroupId ( ) } , cpdAvailabilityEstimate ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_CPRODUCTID , new Object [ ] { cpdAvailabilityEstimate . getCProductId ( ) } , cpdAvailabilityEstimate ) ; cpdAvailabilityEstimate . resetOriginalValues ( ) ; }
Caches the cpd availability estimate in the entity cache if it is enabled .
31,024
public void cacheResult ( List < CPDAvailabilityEstimate > cpdAvailabilityEstimates ) { for ( CPDAvailabilityEstimate cpdAvailabilityEstimate : cpdAvailabilityEstimates ) { if ( entityCache . getResult ( CPDAvailabilityEstimateModelImpl . ENTITY_CACHE_ENABLED , CPDAvailabilityEstimateImpl . class , cpdAvailabilityEstimate . getPrimaryKey ( ) ) == null ) { cacheResult ( cpdAvailabilityEstimate ) ; } else { cpdAvailabilityEstimate . resetOriginalValues ( ) ; } } }
Caches the cpd availability estimates in the entity cache if it is enabled .
31,025
public void clearCache ( ) { entityCache . clearCache ( CPDAvailabilityEstimateImpl . 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 cpd availability estimates .
31,026
public void clearCache ( CPDAvailabilityEstimate cpdAvailabilityEstimate ) { entityCache . removeResult ( CPDAvailabilityEstimateModelImpl . ENTITY_CACHE_ENABLED , CPDAvailabilityEstimateImpl . class , cpdAvailabilityEstimate . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDAvailabilityEstimateModelImpl ) cpdAvailabilityEstimate , true ) ; }
Clears the cache for the cpd availability estimate .
31,027
public List < CPDAvailabilityEstimate > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cpd availability estimates .
31,028
public void cacheResult ( CPOption cpOption ) { entityCache . putResult ( CPOptionModelImpl . ENTITY_CACHE_ENABLED , CPOptionImpl . class , cpOption . getPrimaryKey ( ) , cpOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpOption . getUuid ( ) , cpOption . getGroupId ( ) } , cpOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K , new Object [ ] { cpOption . getGroupId ( ) , cpOption . getKey ( ) } , cpOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { cpOption . getCompanyId ( ) , cpOption . getExternalReferenceCode ( ) } , cpOption ) ; cpOption . resetOriginalValues ( ) ; }
Caches the cp option in the entity cache if it is enabled .
31,029
public void cacheResult ( List < CPOption > cpOptions ) { for ( CPOption cpOption : cpOptions ) { if ( entityCache . getResult ( CPOptionModelImpl . ENTITY_CACHE_ENABLED , CPOptionImpl . class , cpOption . getPrimaryKey ( ) ) == null ) { cacheResult ( cpOption ) ; } else { cpOption . resetOriginalValues ( ) ; } } }
Caches the cp options in the entity cache if it is enabled .
31,030
public void clearCache ( ) { entityCache . clearCache ( CPOptionImpl . 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 options .
31,031
public void clearCache ( CPOption cpOption ) { entityCache . removeResult ( CPOptionModelImpl . ENTITY_CACHE_ENABLED , CPOptionImpl . class , cpOption . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPOptionModelImpl ) cpOption , true ) ; }
Clears the cache for the cp option .
31,032
public List < CPOption > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp options .
31,033
public void cacheResult ( CPDefinitionInventory cpDefinitionInventory ) { entityCache . putResult ( CPDefinitionInventoryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionInventoryImpl . class , cpDefinitionInventory . getPrimaryKey ( ) , cpDefinitionInventory ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDefinitionInventory . getUuid ( ) , cpDefinitionInventory . getGroupId ( ) } , cpDefinitionInventory ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_CPDEFINITIONID , new Object [ ] { cpDefinitionInventory . getCPDefinitionId ( ) } , cpDefinitionInventory ) ; cpDefinitionInventory . resetOriginalValues ( ) ; }
Caches the cp definition inventory in the entity cache if it is enabled .
31,034
public void cacheResult ( List < CPDefinitionInventory > cpDefinitionInventories ) { for ( CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories ) { if ( entityCache . getResult ( CPDefinitionInventoryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionInventoryImpl . class , cpDefinitionInventory . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionInventory ) ; } else { cpDefinitionInventory . resetOriginalValues ( ) ; } } }
Caches the cp definition inventories in the entity cache if it is enabled .
31,035
public void clearCache ( ) { entityCache . clearCache ( CPDefinitionInventoryImpl . 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 inventories .
31,036
public void clearCache ( CPDefinitionInventory cpDefinitionInventory ) { entityCache . removeResult ( CPDefinitionInventoryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionInventoryImpl . class , cpDefinitionInventory . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDefinitionInventoryModelImpl ) cpDefinitionInventory , true ) ; }
Clears the cache for the cp definition inventory .
31,037
public List < CPDefinitionInventory > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp definition inventories .
31,038
public void cacheResult ( CommerceCountry commerceCountry ) { entityCache . putResult ( CommerceCountryModelImpl . ENTITY_CACHE_ENABLED , CommerceCountryImpl . class , commerceCountry . getPrimaryKey ( ) , commerceCountry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceCountry . getUuid ( ) , commerceCountry . getGroupId ( ) } , commerceCountry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_TW , new Object [ ] { commerceCountry . getGroupId ( ) , commerceCountry . getTwoLettersISOCode ( ) } , commerceCountry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_N , new Object [ ] { commerceCountry . getGroupId ( ) , commerceCountry . getNumericISOCode ( ) } , commerceCountry ) ; commerceCountry . resetOriginalValues ( ) ; }
Caches the commerce country in the entity cache if it is enabled .
31,039
public void cacheResult ( List < CommerceCountry > commerceCountries ) { for ( CommerceCountry commerceCountry : commerceCountries ) { if ( entityCache . getResult ( CommerceCountryModelImpl . ENTITY_CACHE_ENABLED , CommerceCountryImpl . class , commerceCountry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceCountry ) ; } else { commerceCountry . resetOriginalValues ( ) ; } } }
Caches the commerce countries in the entity cache if it is enabled .
31,040
public void clearCache ( ) { entityCache . clearCache ( CommerceCountryImpl . 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 countries .
31,041
public void clearCache ( CommerceCountry commerceCountry ) { entityCache . removeResult ( CommerceCountryModelImpl . ENTITY_CACHE_ENABLED , CommerceCountryImpl . class , commerceCountry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceCountryModelImpl ) commerceCountry , true ) ; }
Clears the cache for the commerce country .
31,042
public List < CommerceCountry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce countries .
31,043
public void cacheResult ( CommerceNotificationTemplate commerceNotificationTemplate ) { entityCache . putResult ( CommerceNotificationTemplateModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationTemplateImpl . class , commerceNotificationTemplate . getPrimaryKey ( ) , commerceNotificationTemplate ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceNotificationTemplate . getUuid ( ) , commerceNotificationTemplate . getGroupId ( ) } , commerceNotificationTemplate ) ; commerceNotificationTemplate . resetOriginalValues ( ) ; }
Caches the commerce notification template in the entity cache if it is enabled .
31,044
public void cacheResult ( List < CommerceNotificationTemplate > commerceNotificationTemplates ) { for ( CommerceNotificationTemplate commerceNotificationTemplate : commerceNotificationTemplates ) { if ( entityCache . getResult ( CommerceNotificationTemplateModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationTemplateImpl . class , commerceNotificationTemplate . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceNotificationTemplate ) ; } else { commerceNotificationTemplate . resetOriginalValues ( ) ; } } }
Caches the commerce notification templates in the entity cache if it is enabled .
31,045
public void clearCache ( ) { entityCache . clearCache ( CommerceNotificationTemplateImpl . 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 notification templates .
31,046
public void clearCache ( CommerceNotificationTemplate commerceNotificationTemplate ) { entityCache . removeResult ( CommerceNotificationTemplateModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationTemplateImpl . class , commerceNotificationTemplate . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceNotificationTemplateModelImpl ) commerceNotificationTemplate , true ) ; }
Clears the cache for the commerce notification template .
31,047
public List < CommerceNotificationTemplate > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce notification templates .
31,048
public void cacheResult ( CommerceAddress commerceAddress ) { entityCache . putResult ( CommerceAddressModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressImpl . class , commerceAddress . getPrimaryKey ( ) , commerceAddress ) ; commerceAddress . resetOriginalValues ( ) ; }
Caches the commerce address in the entity cache if it is enabled .
31,049
public void cacheResult ( List < CommerceAddress > commerceAddresses ) { for ( CommerceAddress commerceAddress : commerceAddresses ) { if ( entityCache . getResult ( CommerceAddressModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressImpl . class , commerceAddress . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAddress ) ; } else { commerceAddress . resetOriginalValues ( ) ; } } }
Caches the commerce addresses in the entity cache if it is enabled .
31,050
public void clearCache ( ) { entityCache . clearCache ( CommerceAddressImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for all commerce addresses .
31,051
public void clearCache ( CommerceAddress commerceAddress ) { entityCache . removeResult ( CommerceAddressModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressImpl . class , commerceAddress . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce address .
31,052
public List < CommerceAddress > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce addresses .
31,053
public com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionLocalService getCommerceShippingFixedOptionLocalService ( ) { return commerceShippingFixedOptionLocalService ; }
Returns the commerce shipping fixed option local service .
31,054
public void setCommerceShippingFixedOptionLocalService ( com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionLocalService commerceShippingFixedOptionLocalService ) { this . commerceShippingFixedOptionLocalService = commerceShippingFixedOptionLocalService ; }
Sets the commerce shipping fixed option local service .
31,055
public com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelLocalService getCommerceShippingFixedOptionRelLocalService ( ) { return commerceShippingFixedOptionRelLocalService ; }
Returns the commerce shipping fixed option rel local service .
31,056
public void setCommerceShippingFixedOptionRelLocalService ( com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelLocalService commerceShippingFixedOptionRelLocalService ) { this . commerceShippingFixedOptionRelLocalService = commerceShippingFixedOptionRelLocalService ; }
Sets the commerce shipping fixed option rel local service .
31,057
public com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelService getCommerceShippingFixedOptionRelService ( ) { return commerceShippingFixedOptionRelService ; }
Returns the commerce shipping fixed option rel remote service .
31,058
public void setCommerceShippingFixedOptionRelService ( com . liferay . commerce . shipping . engine . fixed . service . CommerceShippingFixedOptionRelService commerceShippingFixedOptionRelService ) { this . commerceShippingFixedOptionRelService = commerceShippingFixedOptionRelService ; }
Sets the commerce shipping fixed option rel remote service .
31,059
@ Indexable ( type = IndexableType . REINDEX ) public CommerceDiscountRel addCommerceDiscountRel ( CommerceDiscountRel commerceDiscountRel ) { commerceDiscountRel . setNew ( true ) ; return commerceDiscountRelPersistence . update ( commerceDiscountRel ) ; }
Adds the commerce discount rel to the database . Also notifies the appropriate model listeners .
31,060
@ Indexable ( type = IndexableType . DELETE ) public CommerceDiscountRel deleteCommerceDiscountRel ( long commerceDiscountRelId ) throws PortalException { return commerceDiscountRelPersistence . remove ( commerceDiscountRelId ) ; }
Deletes the commerce discount rel with the primary key from the database . Also notifies the appropriate model listeners .
31,061
public String getDescription ( String languageId , boolean useDefault ) { return _commerceShippingFixedOption . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this commerce shipping fixed option in the language optionally using the default language if no localization exists for the requested language .
31,062
public String getName ( String languageId , boolean useDefault ) { return _commerceShippingFixedOption . getName ( languageId , useDefault ) ; }
Returns the localized name of this commerce shipping fixed option in the language optionally using the default language if no localization exists for the requested language .
31,063
@ Indexable ( type = IndexableType . DELETE ) public CommerceShipment deleteCommerceShipment ( long commerceShipmentId ) throws PortalException { return commerceShipmentPersistence . remove ( commerceShipmentId ) ; }
Deletes the commerce shipment with the primary key from the database . Also notifies the appropriate model listeners .
31,064
public com . liferay . commerce . product . model . CPRuleUserSegmentRel getCPRuleUserSegmentRel ( long CPRuleUserSegmentRelId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpRuleUserSegmentRelLocalService . getCPRuleUserSegmentRel ( CPRuleUserSegmentRelId ) ; }
Returns the cp rule user segment rel with the primary key .
31,065
public void cacheResult ( CommerceCurrency commerceCurrency ) { entityCache . putResult ( CommerceCurrencyModelImpl . ENTITY_CACHE_ENABLED , CommerceCurrencyImpl . class , commerceCurrency . getPrimaryKey ( ) , commerceCurrency ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceCurrency . getUuid ( ) , commerceCurrency . getGroupId ( ) } , commerceCurrency ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_C , new Object [ ] { commerceCurrency . getGroupId ( ) , commerceCurrency . getCode ( ) } , commerceCurrency ) ; commerceCurrency . resetOriginalValues ( ) ; }
Caches the commerce currency in the entity cache if it is enabled .
31,066
public void cacheResult ( List < CommerceCurrency > commerceCurrencies ) { for ( CommerceCurrency commerceCurrency : commerceCurrencies ) { if ( entityCache . getResult ( CommerceCurrencyModelImpl . ENTITY_CACHE_ENABLED , CommerceCurrencyImpl . class , commerceCurrency . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceCurrency ) ; } else { commerceCurrency . resetOriginalValues ( ) ; } } }
Caches the commerce currencies in the entity cache if it is enabled .
31,067
public void clearCache ( ) { entityCache . clearCache ( CommerceCurrencyImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for all commerce currencies .
31,068
public void clearCache ( CommerceCurrency commerceCurrency ) { entityCache . removeResult ( CommerceCurrencyModelImpl . ENTITY_CACHE_ENABLED , CommerceCurrencyImpl . class , commerceCurrency . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceCurrencyModelImpl ) commerceCurrency , true ) ; }
Clears the cache for the commerce currency .
31,069
public List < CommerceCurrency > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce currencies .
31,070
@ Indexable ( type = IndexableType . REINDEX ) public CommerceTierPriceEntry upsertCommerceTierPriceEntry ( long commerceTierPriceEntryId , long commercePriceEntryId , String externalReferenceCode , BigDecimal price , BigDecimal promoPrice , int minQuantity , String priceEntryExternalReferenceCode , ServiceContext serviceContext ) throws PortalException { if ( commerceTierPriceEntryId > 0 ) { try { return updateCommerceTierPriceEntry ( commerceTierPriceEntryId , price , promoPrice , minQuantity , serviceContext ) ; } catch ( NoSuchTierPriceEntryException nstpee ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Unable to find tier price entry with ID: " + commerceTierPriceEntryId ) ; } } } if ( Validator . isNotNull ( externalReferenceCode ) ) { CommerceTierPriceEntry commerceTierPriceEntry = commerceTierPriceEntryPersistence . fetchByC_ERC ( serviceContext . getCompanyId ( ) , externalReferenceCode ) ; if ( commerceTierPriceEntry != null ) { return updateCommerceTierPriceEntry ( commerceTierPriceEntry . getCommerceTierPriceEntryId ( ) , price , promoPrice , minQuantity , serviceContext ) ; } } if ( commercePriceEntryId > 0 ) { validate ( 0L , commercePriceEntryId , minQuantity ) ; CommercePriceEntry commercePriceEntry = _commercePriceEntryPersistence . findByPrimaryKey ( commercePriceEntryId ) ; return addCommerceTierPriceEntry ( commercePriceEntry . getCommercePriceEntryId ( ) , externalReferenceCode , price , promoPrice , minQuantity , serviceContext ) ; } if ( Validator . isNotNull ( priceEntryExternalReferenceCode ) ) { CommercePriceEntry commercePriceEntry = _commercePriceEntryPersistence . findByC_ERC ( serviceContext . getCompanyId ( ) , priceEntryExternalReferenceCode ) ; validate ( 0L , commercePriceEntry . getCommercePriceEntryId ( ) , minQuantity ) ; return addCommerceTierPriceEntry ( commercePriceEntry . getCommercePriceEntryId ( ) , externalReferenceCode , price , promoPrice , minQuantity , serviceContext ) ; } StringBundler sb = new StringBundler ( 6 ) ; sb . append ( "{commercePriceEntryId=" ) ; sb . append ( commercePriceEntryId ) ; sb . append ( StringPool . COMMA_AND_SPACE ) ; sb . append ( "priceEntryExternalReferenceCode=" ) ; sb . append ( priceEntryExternalReferenceCode ) ; sb . append ( CharPool . CLOSE_CURLY_BRACE ) ; throw new NoSuchPriceEntryException ( sb . toString ( ) ) ; }
This method is used to insert a new CommerceTierPriceEntry or update an existing one
31,071
@ Indexable ( type = IndexableType . REINDEX ) public CommercePriceEntry upsertCommercePriceEntry ( long commercePriceEntryId , long cProductId , String cpInstanceUuid , long commercePriceListId , String externalReferenceCode , BigDecimal price , BigDecimal promoPrice , String skuExternalReferenceCode , ServiceContext serviceContext ) throws PortalException { if ( commercePriceEntryId > 0 ) { try { return updateCommercePriceEntry ( commercePriceEntryId , price , promoPrice , serviceContext ) ; } catch ( NoSuchPriceEntryException nspee ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Unable to find price entry with ID: " + commercePriceEntryId ) ; } } } if ( Validator . isNotNull ( externalReferenceCode ) ) { CommercePriceEntry commercePriceEntry = commercePriceEntryPersistence . fetchByC_ERC ( serviceContext . getCompanyId ( ) , externalReferenceCode ) ; if ( commercePriceEntry != null ) { return updateCommercePriceEntry ( commercePriceEntry . getCommercePriceEntryId ( ) , price , promoPrice , serviceContext ) ; } } if ( ( cProductId > 0 ) && ( cpInstanceUuid != null ) ) { validate ( commercePriceListId , cpInstanceUuid ) ; return addCommercePriceEntry ( cProductId , cpInstanceUuid , commercePriceListId , externalReferenceCode , price , promoPrice , serviceContext ) ; } if ( Validator . isNotNull ( skuExternalReferenceCode ) ) { CPInstance cpInstance = _cpInstanceLocalService . getCPInstanceByExternalReferenceCode ( serviceContext . getCompanyId ( ) , skuExternalReferenceCode ) ; validate ( commercePriceListId , cpInstance . getCPInstanceUuid ( ) ) ; CPDefinition cpDefinition = _cpDefinitionLocalService . getCPDefinition ( cpInstance . getCPDefinitionId ( ) ) ; return addCommercePriceEntry ( cpDefinition . getCProductId ( ) , cpInstance . getCPInstanceUuid ( ) , commercePriceListId , externalReferenceCode , price , promoPrice , serviceContext ) ; } StringBundler sb = new StringBundler ( 9 ) ; sb . append ( "{cProductId=" ) ; sb . append ( cProductId ) ; sb . append ( StringPool . COMMA_AND_SPACE ) ; sb . append ( "cpInstanceUuid=" ) ; sb . append ( cpInstanceUuid ) ; sb . append ( StringPool . COMMA_AND_SPACE ) ; sb . append ( "skuExternalReferenceCode=" ) ; sb . append ( skuExternalReferenceCode ) ; sb . append ( CharPool . CLOSE_CURLY_BRACE ) ; throw new NoSuchCPInstanceException ( sb . toString ( ) ) ; }
This method is used to insert a new CommercePriceEntry or update an existing one
31,072
@ Indexable ( type = IndexableType . REINDEX ) public CommerceNotificationQueueEntry addCommerceNotificationQueueEntry ( CommerceNotificationQueueEntry commerceNotificationQueueEntry ) { commerceNotificationQueueEntry . setNew ( true ) ; return commerceNotificationQueueEntryPersistence . update ( commerceNotificationQueueEntry ) ; }
Adds the commerce notification queue entry to the database . Also notifies the appropriate model listeners .
31,073
@ Indexable ( type = IndexableType . DELETE ) public CommerceNotificationQueueEntry deleteCommerceNotificationQueueEntry ( CommerceNotificationQueueEntry commerceNotificationQueueEntry ) { return commerceNotificationQueueEntryPersistence . remove ( commerceNotificationQueueEntry ) ; }
Deletes the commerce notification queue entry from the database . Also notifies the appropriate model listeners .
31,074
public com . liferay . trash . kernel . model . TrashEntry getTrashEntry ( ) throws com . liferay . portal . kernel . exception . PortalException { return _cpDefinition . getTrashEntry ( ) ; }
Returns the trash entry created when this cp definition was moved to the Recycle Bin . The trash entry may belong to one of the ancestors of this cp definition .
31,075
public com . liferay . portal . kernel . trash . TrashHandler getTrashHandler ( ) { return _cpDefinition . getTrashHandler ( ) ; }
Returns the trash handler for this cp definition .
31,076
public void cacheResult ( CommerceSubscriptionEntry commerceSubscriptionEntry ) { entityCache . putResult ( CommerceSubscriptionEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceSubscriptionEntryImpl . class , commerceSubscriptionEntry . getPrimaryKey ( ) , commerceSubscriptionEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceSubscriptionEntry . getUuid ( ) , commerceSubscriptionEntry . getGroupId ( ) } , commerceSubscriptionEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C_C , new Object [ ] { commerceSubscriptionEntry . getCPInstanceUuid ( ) , commerceSubscriptionEntry . getCProductId ( ) , commerceSubscriptionEntry . getCommerceOrderItemId ( ) } , commerceSubscriptionEntry ) ; commerceSubscriptionEntry . resetOriginalValues ( ) ; }
Caches the commerce subscription entry in the entity cache if it is enabled .
31,077
public void cacheResult ( List < CommerceSubscriptionEntry > commerceSubscriptionEntries ) { for ( CommerceSubscriptionEntry commerceSubscriptionEntry : commerceSubscriptionEntries ) { if ( entityCache . getResult ( CommerceSubscriptionEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceSubscriptionEntryImpl . class , commerceSubscriptionEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceSubscriptionEntry ) ; } else { commerceSubscriptionEntry . resetOriginalValues ( ) ; } } }
Caches the commerce subscription entries in the entity cache if it is enabled .
31,078
public void clearCache ( ) { entityCache . clearCache ( CommerceSubscriptionEntryImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for all commerce subscription entries .
31,079
public void clearCache ( CommerceSubscriptionEntry commerceSubscriptionEntry ) { entityCache . removeResult ( CommerceSubscriptionEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceSubscriptionEntryImpl . class , commerceSubscriptionEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceSubscriptionEntryModelImpl ) commerceSubscriptionEntry , true ) ; }
Clears the cache for the commerce subscription entry .
31,080
public List < CommerceSubscriptionEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce subscription entries .
31,081
public CPDefinition moveCPDefinitionToTrash ( long userId , long cpDefinitionId ) throws PortalException { CPDefinition cpDefinition = cpDefinitionPersistence . findByPrimaryKey ( cpDefinitionId ) ; return cpDefinitionLocalService . moveCPDefinitionToTrash ( userId , cpDefinition ) ; }
Moves the commerce product definition with the ID to the recycle bin .
31,082
@ Indexable ( type = IndexableType . REINDEX ) public CPDefinition restoreCPDefinitionFromTrash ( long userId , long cpDefinitionId ) throws PortalException { CPDefinition cpDefinition = cpDefinitionPersistence . findByPrimaryKey ( cpDefinitionId ) ; if ( ! cpDefinition . isInTrash ( ) ) { throw new RestoreEntryException ( RestoreEntryException . INVALID_STATUS ) ; } TrashEntry trashEntry = trashEntryLocalService . getEntry ( CPDefinition . class . getName ( ) , cpDefinitionId ) ; cpDefinition = updateStatus ( userId , cpDefinitionId , trashEntry . getStatus ( ) , new ServiceContext ( ) , new HashMap < String , Serializable > ( ) ) ; return cpDefinition ; }
Restores the commerce product definition with the ID from the recycle bin .
31,083
public com . liferay . commerce . product . model . CPSpecificationOption getCPSpecificationOption ( long CPSpecificationOptionId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpSpecificationOptionLocalService . getCPSpecificationOption ( CPSpecificationOptionId ) ; }
Returns the cp specification option with the primary key .
31,084
public com . liferay . commerce . product . type . virtual . order . service . CommerceVirtualOrderItemLocalService getCommerceVirtualOrderItemLocalService ( ) { return commerceVirtualOrderItemLocalService ; }
Returns the commerce virtual order item local service .
31,085
public void setDLAppService ( com . liferay . document . library . kernel . service . DLAppService dlAppService ) { this . dlAppService = dlAppService ; }
Sets the dl app remote service .
31,086
public void cacheResult ( CommercePriceList commercePriceList ) { entityCache . putResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceList . getUuid ( ) , commercePriceList . getGroupId ( ) } , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID , new Object [ ] { commercePriceList . getParentCommercePriceListId ( ) } , commercePriceList ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commercePriceList . getCompanyId ( ) , commercePriceList . getExternalReferenceCode ( ) } , commercePriceList ) ; commercePriceList . resetOriginalValues ( ) ; }
Caches the commerce price list in the entity cache if it is enabled .
31,087
public void cacheResult ( List < CommercePriceList > commercePriceLists ) { for ( CommercePriceList commercePriceList : commercePriceLists ) { if ( entityCache . getResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceList ) ; } else { commercePriceList . resetOriginalValues ( ) ; } } }
Caches the commerce price lists in the entity cache if it is enabled .
31,088
public void clearCache ( ) { entityCache . clearCache ( CommercePriceListImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for all commerce price lists .
31,089
public void clearCache ( CommercePriceList commercePriceList ) { entityCache . removeResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePriceListModelImpl ) commercePriceList , true ) ; }
Clears the cache for the commerce price list .
31,090
public CommercePriceList remove ( Serializable primaryKey ) throws NoSuchPriceListException { Session session = null ; try { session = openSession ( ) ; CommercePriceList commercePriceList = ( CommercePriceList ) session . get ( CommercePriceListImpl . class , primaryKey ) ; if ( commercePriceList == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchPriceListException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commercePriceList ) ; } catch ( NoSuchPriceListException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce price list with the primary key from the database . Also notifies the appropriate model listeners .
31,091
public List < CommercePriceList > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce price lists .
31,092
@ Indexable ( type = IndexableType . DELETE ) public CProduct deleteCProduct ( long CProductId ) throws PortalException { return cProductPersistence . remove ( CProductId ) ; }
Deletes the c product with the primary key from the database . Also notifies the appropriate model listeners .
31,093
@ Indexable ( type = IndexableType . DELETE ) public CProduct deleteCProduct ( CProduct cProduct ) { return cProductPersistence . remove ( cProduct ) ; }
Deletes the c product from the database . Also notifies the appropriate model listeners .
31,094
public List < CProduct > getCProductsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CProduct > orderByComparator ) { return cProductPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of c products matching the UUID and company .
31,095
public void cacheResult ( CommerceShippingMethod commerceShippingMethod ) { entityCache . putResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) , commerceShippingMethod ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_E , new Object [ ] { commerceShippingMethod . getGroupId ( ) , commerceShippingMethod . getEngineKey ( ) } , commerceShippingMethod ) ; commerceShippingMethod . resetOriginalValues ( ) ; }
Caches the commerce shipping method in the entity cache if it is enabled .
31,096
public void cacheResult ( List < CommerceShippingMethod > commerceShippingMethods ) { for ( CommerceShippingMethod commerceShippingMethod : commerceShippingMethods ) { if ( entityCache . getResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceShippingMethod ) ; } else { commerceShippingMethod . resetOriginalValues ( ) ; } } }
Caches the commerce shipping methods in the entity cache if it is enabled .
31,097
public void clearCache ( ) { entityCache . clearCache ( CommerceShippingMethodImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for all commerce shipping methods .
31,098
public void clearCache ( CommerceShippingMethod commerceShippingMethod ) { entityCache . removeResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceShippingMethodModelImpl ) commerceShippingMethod , true ) ; }
Clears the cache for the commerce shipping method .
31,099
public List < CommerceShippingMethod > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce shipping methods .