idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
31,400
@ Override public void cacheResult ( List < CPDefinitionLocalization > cpDefinitionLocalizations ) { for ( CPDefinitionLocalization cpDefinitionLocalization : cpDefinitionLocalizations ) { if ( entityCache . getResult ( CPDefinitionLocalizationModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionLocalizationImpl . class , cpDefinitionLocalization . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionLocalization ) ; } else { cpDefinitionLocalization . resetOriginalValues ( ) ; } } }
Caches the cp definition localizations in the entity cache if it is enabled .
121
16
31,401
@ Override public void clearCache ( ) { entityCache . clearCache ( CPDefinitionLocalizationImpl . 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 localizations .
100
11
31,402
@ Override public void clearCache ( CPDefinitionLocalization cpDefinitionLocalization ) { entityCache . removeResult ( CPDefinitionLocalizationModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionLocalizationImpl . class , cpDefinitionLocalization . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDefinitionLocalizationModelImpl ) cpDefinitionLocalization , true ) ; }
Clears the cache for the cp definition localization .
146
10
31,403
@ Override public CPDefinitionLocalization create ( long cpDefinitionLocalizationId ) { CPDefinitionLocalization cpDefinitionLocalization = new CPDefinitionLocalizationImpl ( ) ; cpDefinitionLocalization . setNew ( true ) ; cpDefinitionLocalization . setPrimaryKey ( cpDefinitionLocalizationId ) ; cpDefinitionLocalization . setCompanyId ( companyProvider . getCompanyId ( ) ) ; return cpDefinitionLocalization ; }
Creates a new cp definition localization with the primary key . Does not add the cp definition localization to the database .
95
23
31,404
@ Override public List < CPDefinitionLocalization > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp definition localizations .
42
8
31,405
@ Override public List < CPDefinitionLocalization > findAll ( int start , int end ) { return findAll ( start , end , null ) ; }
Returns a range of all the cp definition localizations .
35
11
31,406
@ Override public int countAll ( ) { Long count = ( Long ) finderCache . getResult ( FINDER_PATH_COUNT_ALL , FINDER_ARGS_EMPTY , this ) ; if ( count == null ) { Session session = null ; try { session = openSession ( ) ; Query q = session . createQuery ( _SQL_COUNT_CPDEFINITIONLOCALIZATION ) ; count = ( Long ) q . uniqueResult ( ) ; finderCache . putResult ( FINDER_PATH_COUNT_ALL , FINDER_ARGS_EMPTY , count ) ; } catch ( Exception e ) { finderCache . removeResult ( FINDER_PATH_COUNT_ALL , FINDER_ARGS_EMPTY ) ; throw processException ( e ) ; } finally { closeSession ( session ) ; } } return count . intValue ( ) ; }
Returns the number of cp definition localizations .
199
9
31,407
@ Override public void cacheResult ( CommerceShipmentItem commerceShipmentItem ) { entityCache . putResult ( CommerceShipmentItemModelImpl . ENTITY_CACHE_ENABLED , CommerceShipmentItemImpl . class , commerceShipmentItem . getPrimaryKey ( ) , commerceShipmentItem ) ; commerceShipmentItem . resetOriginalValues ( ) ; }
Caches the commerce shipment item in the entity cache if it is enabled .
79
15
31,408
@ Override public void cacheResult ( List < CommerceShipmentItem > commerceShipmentItems ) { for ( CommerceShipmentItem commerceShipmentItem : commerceShipmentItems ) { if ( entityCache . getResult ( CommerceShipmentItemModelImpl . ENTITY_CACHE_ENABLED , CommerceShipmentItemImpl . class , commerceShipmentItem . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceShipmentItem ) ; } else { commerceShipmentItem . resetOriginalValues ( ) ; } } }
Caches the commerce shipment items in the entity cache if it is enabled .
113
15
31,409
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceShipmentItemImpl . 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 shipment items .
98
10
31,410
@ Override public void clearCache ( CommerceShipmentItem commerceShipmentItem ) { entityCache . removeResult ( CommerceShipmentItemModelImpl . ENTITY_CACHE_ENABLED , CommerceShipmentItemImpl . class , commerceShipmentItem . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce shipment item .
116
10
31,411
@ Override public List < CommerceShipmentItem > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce shipment items .
40
7
31,412
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceCountry deleteCommerceCountry ( long commerceCountryId ) throws PortalException { return commerceCountryPersistence . remove ( commerceCountryId ) ; }
Deletes the commerce country with the primary key from the database . Also notifies the appropriate model listeners .
47
21
31,413
@ Override public List < CommerceCountry > getCommerceCountriesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommerceCountry > orderByComparator ) { return commerceCountryPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of commerce countries matching the UUID and company .
78
13
31,414
@ Override public String getDescription ( String languageId , boolean useDefault ) { return _commerceTaxMethod . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this commerce tax method in the language optionally using the default language if no localization exists for the requested language .
34
26
31,415
@ Override public String getName ( String languageId , boolean useDefault ) { return _commerceTaxMethod . getName ( languageId , useDefault ) ; }
Returns the localized name of this commerce tax method in the language optionally using the default language if no localization exists for the requested language .
34
26
31,416
@ Override public void setNameMap ( Map < java . util . Locale , String > nameMap ) { _commerceTaxMethod . setNameMap ( nameMap ) ; }
Sets the localized names of this commerce tax method from the map of locales and localized names .
38
20
31,417
@ Override public void setNameMap ( Map < java . util . Locale , String > nameMap , java . util . Locale defaultLocale ) { _commerceTaxMethod . setNameMap ( nameMap , defaultLocale ) ; }
Sets the localized names of this commerce tax method from the map of locales and localized names and sets the default locale .
52
25
31,418
public void setCommerceAccountUserRelService ( com . liferay . commerce . account . service . CommerceAccountUserRelService commerceAccountUserRelService ) { this . commerceAccountUserRelService = commerceAccountUserRelService ; }
Sets the commerce account user rel remote service .
48
10
31,419
@ Override public void cacheResult ( CPInstance cpInstance ) { entityCache . putResult ( CPInstanceModelImpl . ENTITY_CACHE_ENABLED , CPInstanceImpl . class , cpInstance . getPrimaryKey ( ) , cpInstance ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpInstance . getUuid ( ) , cpInstance . getGroupId ( ) } , cpInstance ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { cpInstance . getCPDefinitionId ( ) , cpInstance . getCPInstanceUuid ( ) } , cpInstance ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_S , new Object [ ] { cpInstance . getCPDefinitionId ( ) , cpInstance . getSku ( ) } , cpInstance ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { cpInstance . getCompanyId ( ) , cpInstance . getExternalReferenceCode ( ) } , cpInstance ) ; cpInstance . resetOriginalValues ( ) ; }
Caches the cp instance in the entity cache if it is enabled .
279
14
31,420
@ Override public void cacheResult ( List < CPInstance > cpInstances ) { for ( CPInstance cpInstance : cpInstances ) { if ( entityCache . getResult ( CPInstanceModelImpl . ENTITY_CACHE_ENABLED , CPInstanceImpl . class , cpInstance . getPrimaryKey ( ) ) == null ) { cacheResult ( cpInstance ) ; } else { cpInstance . resetOriginalValues ( ) ; } } }
Caches the cp instances in the entity cache if it is enabled .
95
14
31,421
@ Override public void clearCache ( ) { entityCache . clearCache ( CPInstanceImpl . 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 instances .
96
9
31,422
@ Override public void clearCache ( CPInstance cpInstance ) { entityCache . removeResult ( CPInstanceModelImpl . ENTITY_CACHE_ENABLED , CPInstanceImpl . class , cpInstance . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPInstanceModelImpl ) cpInstance , true ) ; }
Clears the cache for the cp instance .
124
9
31,423
@ Override public List < CPInstance > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp instances .
38
6
31,424
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPMeasurementUnit deleteCPMeasurementUnit ( long CPMeasurementUnitId ) throws PortalException { return cpMeasurementUnitPersistence . remove ( CPMeasurementUnitId ) ; }
Deletes the cp measurement unit with the primary key from the database . Also notifies the appropriate model listeners .
57
22
31,425
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPMeasurementUnit deleteCPMeasurementUnit ( CPMeasurementUnit cpMeasurementUnit ) { return cpMeasurementUnitPersistence . remove ( cpMeasurementUnit ) ; }
Deletes the cp measurement unit from the database . Also notifies the appropriate model listeners .
55
18
31,426
@ Override public List < CPMeasurementUnit > getCPMeasurementUnitsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPMeasurementUnit > orderByComparator ) { return cpMeasurementUnitPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp measurement units matching the UUID and company .
86
14
31,427
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CPMeasurementUnit updateCPMeasurementUnit ( CPMeasurementUnit cpMeasurementUnit ) { return cpMeasurementUnitPersistence . update ( cpMeasurementUnit ) ; }
Updates the cp measurement unit in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
55
27
31,428
@ Override public String getDescription ( String languageId , boolean useDefault ) { return _cpTaxCategory . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this cp tax category in the language optionally using the default language if no localization exists for the requested language .
34
26
31,429
@ Override public String getName ( String languageId , boolean useDefault ) { return _cpTaxCategory . getName ( languageId , useDefault ) ; }
Returns the localized name of this cp tax category in the language optionally using the default language if no localization exists for the requested language .
34
26
31,430
@ Override public void cacheResult ( CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel ) { entityCache . putResult ( CommerceTaxFixedRateAddressRelModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxFixedRateAddressRelImpl . class , commerceTaxFixedRateAddressRel . getPrimaryKey ( ) , commerceTaxFixedRateAddressRel ) ; commerceTaxFixedRateAddressRel . resetOriginalValues ( ) ; }
Caches the commerce tax fixed rate address rel in the entity cache if it is enabled .
93
18
31,431
@ Override public void cacheResult ( List < CommerceTaxFixedRateAddressRel > commerceTaxFixedRateAddressRels ) { for ( CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : commerceTaxFixedRateAddressRels ) { if ( entityCache . getResult ( CommerceTaxFixedRateAddressRelModelImpl . ENTITY_CACHE_ENABLED , CommerceTaxFixedRateAddressRelImpl . class , commerceTaxFixedRateAddressRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceTaxFixedRateAddressRel ) ; } else { commerceTaxFixedRateAddressRel . resetOriginalValues ( ) ; } } }
Caches the commerce tax fixed rate address rels in the entity cache if it is enabled .
135
19
31,432
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceTaxFixedRateAddressRelImpl . 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 rate address rels .
100
14
31,433
@ Override public List < CommerceTaxFixedRateAddressRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce tax fixed rate address rels .
42
11
31,434
@ Override public void cacheResult ( CommerceAccountOrganizationRel commerceAccountOrganizationRel ) { entityCache . putResult ( CommerceAccountOrganizationRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountOrganizationRelImpl . class , commerceAccountOrganizationRel . getPrimaryKey ( ) , commerceAccountOrganizationRel ) ; commerceAccountOrganizationRel . resetOriginalValues ( ) ; }
Caches the commerce account organization rel in the entity cache if it is enabled .
86
16
31,435
@ Override public void cacheResult ( List < CommerceAccountOrganizationRel > commerceAccountOrganizationRels ) { for ( CommerceAccountOrganizationRel commerceAccountOrganizationRel : commerceAccountOrganizationRels ) { if ( entityCache . getResult ( CommerceAccountOrganizationRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountOrganizationRelImpl . class , commerceAccountOrganizationRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAccountOrganizationRel ) ; } else { commerceAccountOrganizationRel . resetOriginalValues ( ) ; } } }
Caches the commerce account organization rels in the entity cache if it is enabled .
125
17
31,436
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceAccountOrganizationRelImpl . 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 organization rels .
99
12
31,437
@ Override public void clearCache ( CommerceAccountOrganizationRel commerceAccountOrganizationRel ) { entityCache . removeResult ( CommerceAccountOrganizationRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountOrganizationRelImpl . class , commerceAccountOrganizationRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce account organization rel .
121
11
31,438
@ Override public CommerceAccountOrganizationRel remove ( Serializable primaryKey ) throws NoSuchAccountOrganizationRelException { Session session = null ; try { session = openSession ( ) ; CommerceAccountOrganizationRel commerceAccountOrganizationRel = ( CommerceAccountOrganizationRel ) session . get ( CommerceAccountOrganizationRelImpl . class , primaryKey ) ; if ( commerceAccountOrganizationRel == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchAccountOrganizationRelException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceAccountOrganizationRel ) ; } catch ( NoSuchAccountOrganizationRelException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce account organization rel with the primary key from the database . Also notifies the appropriate model listeners .
211
23
31,439
@ Override public List < CommerceAccountOrganizationRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce account organization rels .
41
9
31,440
@ Override public String getName ( String languageId , boolean useDefault ) { return _cpDefinitionOptionValueRel . getName ( languageId , useDefault ) ; }
Returns the localized name of this cp definition option value rel in the language optionally using the default language if no localization exists for the requested language .
36
28
31,441
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceShippingMethod deleteCommerceShippingMethod ( long commerceShippingMethodId ) throws PortalException { return commerceShippingMethodPersistence . remove ( commerceShippingMethodId ) ; }
Deletes the commerce shipping method with the primary key from the database . Also notifies the appropriate model listeners .
52
22
31,442
@ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceDiscountRule deleteCommerceDiscountRule ( long commerceDiscountRuleId ) throws PortalException { return commerceDiscountRulePersistence . remove ( commerceDiscountRuleId ) ; }
Deletes the commerce discount rule with the primary key from the database . Also notifies the appropriate model listeners .
57
22
31,443
@ Override public String getDescription ( java . util . Locale locale ) { return _commercePaymentMethodGroupRel . getDescription ( locale ) ; }
Returns the localized description of this commerce payment method group rel in the language . Uses the default language if no localization exists for the requested language .
33
28
31,444
@ Override public String getDescription ( String languageId , boolean useDefault ) { return _commercePaymentMethodGroupRel . getDescription ( languageId , useDefault ) ; }
Returns the localized description of this commerce payment method group rel in the language optionally using the default language if no localization exists for the requested language .
37
28
31,445
@ Override public String getName ( String languageId , boolean useDefault ) { return _commercePaymentMethodGroupRel . getName ( languageId , useDefault ) ; }
Returns the localized name of this commerce payment method group rel in the language optionally using the default language if no localization exists for the requested language .
37
28
31,446
public void setDLFileEntryService ( com . liferay . document . library . kernel . service . DLFileEntryService dlFileEntryService ) { this . dlFileEntryService = dlFileEntryService ; }
Sets the document library file entry remote service .
48
10
31,447
@ Override public com . liferay . commerce . model . CommerceAvailabilityEstimate getCommerceAvailabilityEstimate ( long commerceAvailabilityEstimateId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceAvailabilityEstimateLocalService . getCommerceAvailabilityEstimate ( commerceAvailabilityEstimateId ) ; }
Returns the commerce availability estimate with the primary key .
70
10
31,448
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPDefinitionSpecificationOptionValue deleteCPDefinitionSpecificationOptionValue ( long CPDefinitionSpecificationOptionValueId ) throws PortalException { return cpDefinitionSpecificationOptionValuePersistence . remove ( CPDefinitionSpecificationOptionValueId ) ; }
Deletes the cp definition specification option value with the primary key from the database . Also notifies the appropriate model listeners .
75
24
31,449
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPDefinitionSpecificationOptionValue deleteCPDefinitionSpecificationOptionValue ( CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue ) { return cpDefinitionSpecificationOptionValuePersistence . remove ( cpDefinitionSpecificationOptionValue ) ; }
Deletes the cp definition specification option value from the database . Also notifies the appropriate model listeners .
73
20
31,450
@ Override public List < CPDefinitionSpecificationOptionValue > getCPDefinitionSpecificationOptionValuesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPDefinitionSpecificationOptionValue > orderByComparator ) { return cpDefinitionSpecificationOptionValuePersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp definition specification option values matching the UUID and company .
99
16
31,451
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CPDefinitionSpecificationOptionValue updateCPDefinitionSpecificationOptionValue ( CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue ) { return cpDefinitionSpecificationOptionValuePersistence . update ( cpDefinitionSpecificationOptionValue ) ; }
Updates the cp definition specification option value in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
73
29
31,452
@ Override public com . liferay . commerce . tax . engine . fixed . model . CommerceTaxFixedRate getCommerceTaxFixedRate ( long commerceTaxFixedRateId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceTaxFixedRateLocalService . getCommerceTaxFixedRate ( commerceTaxFixedRateId ) ; }
Returns the commerce tax fixed rate with the primary key .
76
11
31,453
@ Override public void cacheResult ( CommerceWarehouse commerceWarehouse ) { entityCache . putResult ( CommerceWarehouseModelImpl . ENTITY_CACHE_ENABLED , CommerceWarehouseImpl . class , commerceWarehouse . getPrimaryKey ( ) , commerceWarehouse ) ; commerceWarehouse . resetOriginalValues ( ) ; }
Caches the commerce warehouse in the entity cache if it is enabled .
72
14
31,454
@ Override public void cacheResult ( List < CommerceWarehouse > commerceWarehouses ) { for ( CommerceWarehouse commerceWarehouse : commerceWarehouses ) { if ( entityCache . getResult ( CommerceWarehouseModelImpl . ENTITY_CACHE_ENABLED , CommerceWarehouseImpl . class , commerceWarehouse . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceWarehouse ) ; } else { commerceWarehouse . resetOriginalValues ( ) ; } } }
Caches the commerce warehouses in the entity cache if it is enabled .
103
14
31,455
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceWarehouseImpl . 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 warehouses .
97
9
31,456
@ Override public void clearCache ( CommerceWarehouse commerceWarehouse ) { entityCache . removeResult ( CommerceWarehouseModelImpl . ENTITY_CACHE_ENABLED , CommerceWarehouseImpl . class , commerceWarehouse . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce warehouse .
111
9
31,457
@ Override public List < CommerceWarehouse > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce warehouses .
39
6
31,458
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CPFriendlyURLEntry addCPFriendlyURLEntry ( CPFriendlyURLEntry cpFriendlyURLEntry ) { cpFriendlyURLEntry . setNew ( true ) ; return cpFriendlyURLEntryPersistence . update ( cpFriendlyURLEntry ) ; }
Adds the cp friendly url entry to the database . Also notifies the appropriate model listeners .
87
18
31,459
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPFriendlyURLEntry deleteCPFriendlyURLEntry ( long CPFriendlyURLEntryId ) throws PortalException { return cpFriendlyURLEntryPersistence . remove ( CPFriendlyURLEntryId ) ; }
Deletes the cp friendly url entry with the primary key from the database . Also notifies the appropriate model listeners .
72
23
31,460
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPFriendlyURLEntry deleteCPFriendlyURLEntry ( CPFriendlyURLEntry cpFriendlyURLEntry ) { return cpFriendlyURLEntryPersistence . remove ( cpFriendlyURLEntry ) ; }
Deletes the cp friendly url entry from the database . Also notifies the appropriate model listeners .
73
19
31,461
@ Override public List < CPFriendlyURLEntry > getCPFriendlyURLEntriesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPFriendlyURLEntry > orderByComparator ) { return cpFriendlyURLEntryPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp friendly url entries matching the UUID and company .
97
15
31,462
@ Override public CommerceOrderItem fetchCommerceOrderItemByReferenceCode ( long companyId , String externalReferenceCode ) { return commerceOrderItemPersistence . fetchByC_ERC ( companyId , null ) ; }
Returns the commerce order item with the matching external reference code and company .
45
14
31,463
@ Override public String getTitle ( String languageId , boolean useDefault ) { return _commerceAvailabilityEstimate . getTitle ( languageId , useDefault ) ; }
Returns the localized title of this commerce availability estimate in the language optionally using the default language if no localization exists for the requested language .
35
26
31,464
@ Indexable ( type = IndexableType . REINDEX ) @ Override public CPSpecificationOption addCPSpecificationOption ( CPSpecificationOption cpSpecificationOption ) { cpSpecificationOption . setNew ( true ) ; return cpSpecificationOptionPersistence . update ( cpSpecificationOption ) ; }
Adds the cp specification option to the database . Also notifies the appropriate model listeners .
67
17
31,465
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPSpecificationOption deleteCPSpecificationOption ( long CPSpecificationOptionId ) throws PortalException { return cpSpecificationOptionPersistence . remove ( CPSpecificationOptionId ) ; }
Deletes the cp specification option with the primary key from the database . Also notifies the appropriate model listeners .
58
22
31,466
@ Override public List < CPSpecificationOption > getCPSpecificationOptionsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPSpecificationOption > orderByComparator ) { return cpSpecificationOptionPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of cp specification options matching the UUID and company .
86
14
31,467
@ Override public void cacheResult ( CPDefinitionVirtualSetting cpDefinitionVirtualSetting ) { entityCache . putResult ( CPDefinitionVirtualSettingModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionVirtualSettingImpl . class , cpDefinitionVirtualSetting . getPrimaryKey ( ) , cpDefinitionVirtualSetting ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDefinitionVirtualSetting . getUuid ( ) , cpDefinitionVirtualSetting . getGroupId ( ) } , cpDefinitionVirtualSetting ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { cpDefinitionVirtualSetting . getClassNameId ( ) , cpDefinitionVirtualSetting . getClassPK ( ) } , cpDefinitionVirtualSetting ) ; cpDefinitionVirtualSetting . resetOriginalValues ( ) ; }
Caches the cp definition virtual setting in the entity cache if it is enabled .
201
16
31,468
@ Override public void cacheResult ( List < CPDefinitionVirtualSetting > cpDefinitionVirtualSettings ) { for ( CPDefinitionVirtualSetting cpDefinitionVirtualSetting : cpDefinitionVirtualSettings ) { if ( entityCache . getResult ( CPDefinitionVirtualSettingModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionVirtualSettingImpl . class , cpDefinitionVirtualSetting . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionVirtualSetting ) ; } else { cpDefinitionVirtualSetting . resetOriginalValues ( ) ; } } }
Caches the cp definition virtual settings in the entity cache if it is enabled .
121
16
31,469
@ Override public void clearCache ( ) { entityCache . clearCache ( CPDefinitionVirtualSettingImpl . 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 virtual settings .
100
11
31,470
@ Override public void clearCache ( CPDefinitionVirtualSetting cpDefinitionVirtualSetting ) { entityCache . removeResult ( CPDefinitionVirtualSettingModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionVirtualSettingImpl . class , cpDefinitionVirtualSetting . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDefinitionVirtualSettingModelImpl ) cpDefinitionVirtualSetting , true ) ; }
Clears the cache for the cp definition virtual setting .
146
11
31,471
@ Override public CPDefinitionVirtualSetting remove ( Serializable primaryKey ) throws NoSuchCPDefinitionVirtualSettingException { Session session = null ; try { session = openSession ( ) ; CPDefinitionVirtualSetting cpDefinitionVirtualSetting = ( CPDefinitionVirtualSetting ) session . get ( CPDefinitionVirtualSettingImpl . class , primaryKey ) ; if ( cpDefinitionVirtualSetting == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPDefinitionVirtualSettingException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( cpDefinitionVirtualSetting ) ; } catch ( NoSuchCPDefinitionVirtualSettingException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the cp definition virtual setting with the primary key from the database . Also notifies the appropriate model listeners .
218
23
31,472
@ Override public List < CPDefinitionVirtualSetting > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp definition virtual settings .
42
8
31,473
@ Override public void cacheResult ( CommerceNotificationAttachment commerceNotificationAttachment ) { entityCache . putResult ( CommerceNotificationAttachmentModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationAttachmentImpl . class , commerceNotificationAttachment . getPrimaryKey ( ) , commerceNotificationAttachment ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commerceNotificationAttachment . getUuid ( ) , commerceNotificationAttachment . getGroupId ( ) } , commerceNotificationAttachment ) ; commerceNotificationAttachment . resetOriginalValues ( ) ; }
Caches the commerce notification attachment in the entity cache if it is enabled .
147
15
31,474
@ Override public void cacheResult ( List < CommerceNotificationAttachment > commerceNotificationAttachments ) { for ( CommerceNotificationAttachment commerceNotificationAttachment : commerceNotificationAttachments ) { if ( entityCache . getResult ( CommerceNotificationAttachmentModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationAttachmentImpl . class , commerceNotificationAttachment . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceNotificationAttachment ) ; } else { commerceNotificationAttachment . resetOriginalValues ( ) ; } } }
Caches the commerce notification attachments in the entity cache if it is enabled .
123
15
31,475
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceNotificationAttachmentImpl . 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 attachments .
99
10
31,476
@ Override public void clearCache ( CommerceNotificationAttachment commerceNotificationAttachment ) { entityCache . removeResult ( CommerceNotificationAttachmentModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationAttachmentImpl . class , commerceNotificationAttachment . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommerceNotificationAttachmentModelImpl ) commerceNotificationAttachment , true ) ; }
Clears the cache for the commerce notification attachment .
145
10
31,477
@ Override public List < CommerceNotificationAttachment > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce notification attachments .
41
7
31,478
@ Override public void cacheResult ( CommerceDiscountUsageEntry commerceDiscountUsageEntry ) { entityCache . putResult ( CommerceDiscountUsageEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountUsageEntryImpl . class , commerceDiscountUsageEntry . getPrimaryKey ( ) , commerceDiscountUsageEntry ) ; commerceDiscountUsageEntry . resetOriginalValues ( ) ; }
Caches the commerce discount usage entry in the entity cache if it is enabled .
86
16
31,479
@ Override public void cacheResult ( List < CommerceDiscountUsageEntry > commerceDiscountUsageEntries ) { for ( CommerceDiscountUsageEntry commerceDiscountUsageEntry : commerceDiscountUsageEntries ) { if ( entityCache . getResult ( CommerceDiscountUsageEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountUsageEntryImpl . class , commerceDiscountUsageEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceDiscountUsageEntry ) ; } else { commerceDiscountUsageEntry . resetOriginalValues ( ) ; } } }
Caches the commerce discount usage entries in the entity cache if it is enabled .
125
16
31,480
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceDiscountUsageEntryImpl . 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 usage entries .
99
11
31,481
@ Override public void clearCache ( CommerceDiscountUsageEntry commerceDiscountUsageEntry ) { entityCache . removeResult ( CommerceDiscountUsageEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountUsageEntryImpl . class , commerceDiscountUsageEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce discount usage entry .
121
11
31,482
@ Override public CommerceDiscountUsageEntry remove ( Serializable primaryKey ) throws NoSuchDiscountUsageEntryException { Session session = null ; try { session = openSession ( ) ; CommerceDiscountUsageEntry commerceDiscountUsageEntry = ( CommerceDiscountUsageEntry ) session . get ( CommerceDiscountUsageEntryImpl . class , primaryKey ) ; if ( commerceDiscountUsageEntry == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchDiscountUsageEntryException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceDiscountUsageEntry ) ; } catch ( NoSuchDiscountUsageEntryException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce discount usage entry with the primary key from the database . Also notifies the appropriate model listeners .
211
23
31,483
@ Override public List < CommerceDiscountUsageEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce discount usage entries .
41
8
31,484
@ Override public void cacheResult ( CPDefinitionOptionRel cpDefinitionOptionRel ) { entityCache . putResult ( CPDefinitionOptionRelModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionOptionRelImpl . class , cpDefinitionOptionRel . getPrimaryKey ( ) , cpDefinitionOptionRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDefinitionOptionRel . getUuid ( ) , cpDefinitionOptionRel . getGroupId ( ) } , cpDefinitionOptionRel ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { cpDefinitionOptionRel . getCPDefinitionId ( ) , cpDefinitionOptionRel . getCPOptionId ( ) } , cpDefinitionOptionRel ) ; cpDefinitionOptionRel . resetOriginalValues ( ) ; }
Caches the cp definition option rel in the entity cache if it is enabled .
204
16
31,485
@ Override public void cacheResult ( List < CPDefinitionOptionRel > cpDefinitionOptionRels ) { for ( CPDefinitionOptionRel cpDefinitionOptionRel : cpDefinitionOptionRels ) { if ( entityCache . getResult ( CPDefinitionOptionRelModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionOptionRelImpl . class , cpDefinitionOptionRel . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionOptionRel ) ; } else { cpDefinitionOptionRel . resetOriginalValues ( ) ; } } }
Caches the cp definition option rels in the entity cache if it is enabled .
123
17
31,486
@ Override public void clearCache ( ) { entityCache . clearCache ( CPDefinitionOptionRelImpl . 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 option rels .
100
12
31,487
@ Override public void clearCache ( CPDefinitionOptionRel cpDefinitionOptionRel ) { entityCache . removeResult ( CPDefinitionOptionRelModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionOptionRelImpl . class , cpDefinitionOptionRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDefinitionOptionRelModelImpl ) cpDefinitionOptionRel , true ) ; }
Clears the cache for the cp definition option rel .
146
11
31,488
@ Override public List < CPDefinitionOptionRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the cp definition option rels .
42
9
31,489
public void setCommerceWishListItemService ( com . liferay . commerce . wish . list . service . CommerceWishListItemService commerceWishListItemService ) { this . commerceWishListItemService = commerceWishListItemService ; }
Sets the commerce wish list item remote service .
55
10
31,490
@ Override public CommerceTierPriceEntry fetchCommerceTierPriceEntryByReferenceCode ( long companyId , String externalReferenceCode ) { return commerceTierPriceEntryPersistence . fetchByC_ERC ( companyId , null ) ; }
Returns the commerce tier price entry with the matching external reference code and company .
48
15
31,491
@ Override public List < CommerceTierPriceEntry > getCommerceTierPriceEntriesByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CommerceTierPriceEntry > orderByComparator ) { return commerceTierPriceEntryPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; }
Returns a range of commerce tier price entries matching the UUID and company .
86
15
31,492
@ Override public void cacheResult ( CommerceDiscountRule commerceDiscountRule ) { entityCache . putResult ( CommerceDiscountRuleModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRuleImpl . class , commerceDiscountRule . getPrimaryKey ( ) , commerceDiscountRule ) ; commerceDiscountRule . resetOriginalValues ( ) ; }
Caches the commerce discount rule in the entity cache if it is enabled .
79
15
31,493
@ Override public void cacheResult ( List < CommerceDiscountRule > commerceDiscountRules ) { for ( CommerceDiscountRule commerceDiscountRule : commerceDiscountRules ) { if ( entityCache . getResult ( CommerceDiscountRuleModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRuleImpl . class , commerceDiscountRule . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceDiscountRule ) ; } else { commerceDiscountRule . resetOriginalValues ( ) ; } } }
Caches the commerce discount rules in the entity cache if it is enabled .
113
15
31,494
@ Override public void clearCache ( ) { entityCache . clearCache ( CommerceDiscountRuleImpl . 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 rules .
98
10
31,495
@ Override public void clearCache ( CommerceDiscountRule commerceDiscountRule ) { entityCache . removeResult ( CommerceDiscountRuleModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRuleImpl . class , commerceDiscountRule . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; }
Clears the cache for the commerce discount rule .
116
10
31,496
@ Override public CommerceDiscountRule remove ( Serializable primaryKey ) throws NoSuchDiscountRuleException { Session session = null ; try { session = openSession ( ) ; CommerceDiscountRule commerceDiscountRule = ( CommerceDiscountRule ) session . get ( CommerceDiscountRuleImpl . class , primaryKey ) ; if ( commerceDiscountRule == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchDiscountRuleException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceDiscountRule ) ; } catch ( NoSuchDiscountRuleException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce discount rule with the primary key from the database . Also notifies the appropriate model listeners .
201
22
31,497
@ Override public List < CommerceDiscountRule > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; }
Returns all the commerce discount rules .
40
7
31,498
public void setCommerceNotificationQueueEntryService ( com . liferay . commerce . notification . service . CommerceNotificationQueueEntryService commerceNotificationQueueEntryService ) { this . commerceNotificationQueueEntryService = commerceNotificationQueueEntryService ; }
Sets the commerce notification queue entry remote service .
53
10
31,499
@ Override public com . liferay . commerce . product . model . CPDefinitionSpecificationOptionValue getCPDefinitionSpecificationOptionValue ( long CPDefinitionSpecificationOptionValueId ) throws com . liferay . portal . kernel . exception . PortalException { return _cpDefinitionSpecificationOptionValueLocalService . getCPDefinitionSpecificationOptionValue ( CPDefinitionSpecificationOptionValueId ) ; }
Returns the cp definition specification option value with the primary key .
94
12