idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
31,100 | @ Override 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 . | 97 | 10 |
31,101 | @ Override 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 . | 131 | 10 |
31,102 | @ Override public List < CommerceOrderItem > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce order items . | 39 | 7 |
31,103 | @ Override 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 . | 219 | 16 |
31,104 | @ Override 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 . | 133 | 16 |
31,105 | @ Override 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 . | 101 | 11 |
31,106 | @ Override 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 . | 153 | 11 |
31,107 | @ Override public List < CPDefinitionGroupedEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp definition grouped entries . | 43 | 8 |
31,108 | @ Override 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 . | 34 | 26 |
31,109 | @ Indexable ( type = IndexableType . DELETE ) @ Override 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 . | 62 | 23 |
31,110 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceDiscountUsageEntry deleteCommerceDiscountUsageEntry ( CommerceDiscountUsageEntry commerceDiscountUsageEntry ) { return commerceDiscountUsageEntryPersistence . remove ( commerceDiscountUsageEntry ) ; } | Deletes the commerce discount usage entry from the database . Also notifies the appropriate model listeners . | 61 | 19 |
31,111 | @ Indexable ( type = IndexableType . REINDEX ) @ Override 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 . | 61 | 28 |
31,112 | @ Override 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 . | 79 | 15 |
31,113 | @ Override 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 . | 115 | 16 |
31,114 | @ Override 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 . | 98 | 11 |
31,115 | @ Override 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 . | 116 | 10 |
31,116 | @ Override public List < CommerceDiscountRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce discount rels . | 40 | 8 |
31,117 | @ Indexable ( type = IndexableType . DELETE ) @ Override 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 . | 47 | 21 |
31,118 | @ Override 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 . | 78 | 13 |
31,119 | public void setWorkflowDefinitionLinkLocalService ( com . liferay . portal . kernel . service . WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService ) { this . workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService ; } | Sets the workflow definition link local service . | 50 | 9 |
31,120 | @ Override 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 . | 65 | 14 |
31,121 | @ Override 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 . | 93 | 14 |
31,122 | @ Override 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 . | 96 | 9 |
31,123 | @ Override 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 . | 106 | 9 |
31,124 | @ Override public List < CPRule > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp rules . | 38 | 6 |
31,125 | @ Indexable ( type = IndexableType . DELETE ) @ Override 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 . | 52 | 21 |
31,126 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceCurrency deleteCommerceCurrency ( CommerceCurrency commerceCurrency ) { return commerceCurrencyPersistence . remove ( commerceCurrency ) ; } | Deletes the commerce currency from the database . Also notifies the appropriate model listeners . | 49 | 17 |
31,127 | @ Override 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 . | 168 | 14 |
31,128 | @ Override 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 . | 95 | 14 |
31,129 | @ Override 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 . | 96 | 9 |
31,130 | @ Override 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 . | 124 | 9 |
31,131 | @ Override public List < CommerceRegion > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce regions . | 38 | 6 |
31,132 | @ Indexable ( type = IndexableType . DELETE ) @ Override 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 . | 55 | 21 |
31,133 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CPDefinition deleteCPDefinition ( CPDefinition cpDefinition ) throws PortalException { return cpDefinitionPersistence . remove ( cpDefinition ) ; } | Deletes the cp definition from the database . Also notifies the appropriate model listeners . | 52 | 17 |
31,134 | @ Override 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 . | 83 | 13 |
31,135 | @ Override 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 . | 72 | 10 |
31,136 | @ Override 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 . | 74 | 10 |
31,137 | @ Override 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 . | 79 | 16 |
31,138 | @ Override 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 . | 115 | 17 |
31,139 | @ Override 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 . | 98 | 12 |
31,140 | @ Override 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 . | 116 | 11 |
31,141 | @ Override public List < CommerceAccountUserRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce account user rels . | 40 | 9 |
31,142 | @ Override 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 . | 33 | 25 |
31,143 | @ Override public void setName ( String name , java . util . Locale locale ) { _commerceCountry . setName ( name , locale ) ; } | Sets the localized name of this commerce country in the language . | 33 | 13 |
31,144 | @ Override 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 . | 175 | 14 |
31,145 | @ Override 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 . | 103 | 14 |
31,146 | @ Override 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 . | 98 | 9 |
31,147 | @ Override 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 . | 132 | 9 |
31,148 | @ Override public List < CPDefinition > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp definitions . | 40 | 6 |
31,149 | @ Override 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 . | 36 | 26 |
31,150 | @ Override public String getName ( String languageId , boolean useDefault ) { return _commerceCurrency . getName ( languageId , useDefault ) ; } | Returns the localized name of this commerce currency in the language optionally using the default language if no localization exists for the requested language . | 34 | 25 |
31,151 | @ Override public void setFormatPattern ( String formatPattern , java . util . Locale locale , java . util . Locale defaultLocale ) { _commerceCurrency . setFormatPattern ( formatPattern , locale , defaultLocale ) ; } | Sets the localized format pattern of this commerce currency in the language and sets the default locale . | 52 | 19 |
31,152 | @ Override public void setFormatPatternMap ( Map < java . util . Locale , String > formatPatternMap ) { _commerceCurrency . setFormatPatternMap ( formatPatternMap ) ; } | Sets the localized format patterns of this commerce currency from the map of locales and localized format patterns . | 42 | 21 |
31,153 | @ Override public void setFormatPatternMap ( Map < java . util . Locale , String > formatPatternMap , java . util . Locale defaultLocale ) { _commerceCurrency . setFormatPatternMap ( formatPatternMap , defaultLocale ) ; } | Sets the localized format patterns of this commerce currency from the map of locales and localized format patterns and sets the default locale . | 56 | 26 |
31,154 | @ Override public void cacheResult ( CPDisplayLayout cpDisplayLayout ) { entityCache . putResult ( CPDisplayLayoutModelImpl . ENTITY_CACHE_ENABLED , CPDisplayLayoutImpl . class , cpDisplayLayout . getPrimaryKey ( ) , cpDisplayLayout ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpDisplayLayout . getUuid ( ) , cpDisplayLayout . getGroupId ( ) } , cpDisplayLayout ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { cpDisplayLayout . getClassNameId ( ) , cpDisplayLayout . getClassPK ( ) } , cpDisplayLayout ) ; cpDisplayLayout . resetOriginalValues ( ) ; } | Caches the cp display layout in the entity cache if it is enabled . | 188 | 15 |
31,155 | @ Override public void cacheResult ( List < CPDisplayLayout > cpDisplayLayouts ) { for ( CPDisplayLayout cpDisplayLayout : cpDisplayLayouts ) { if ( entityCache . getResult ( CPDisplayLayoutModelImpl . ENTITY_CACHE_ENABLED , CPDisplayLayoutImpl . class , cpDisplayLayout . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDisplayLayout ) ; } else { cpDisplayLayout . resetOriginalValues ( ) ; } } } | Caches the cp display layouts in the entity cache if it is enabled . | 113 | 15 |
31,156 | @ Override public void clearCache ( ) { entityCache . clearCache ( CPDisplayLayoutImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all cp display layouts . | 99 | 10 |
31,157 | @ Override public void clearCache ( CPDisplayLayout cpDisplayLayout ) { entityCache . removeResult ( CPDisplayLayoutModelImpl . ENTITY_CACHE_ENABLED , CPDisplayLayoutImpl . class , cpDisplayLayout . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPDisplayLayoutModelImpl ) cpDisplayLayout , true ) ; } | Clears the cache for the cp display layout . | 139 | 10 |
31,158 | @ Override public List < CPDisplayLayout > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp display layouts . | 41 | 7 |
31,159 | @ Override public com . liferay . commerce . model . CommerceOrderItem getCommerceOrderItem ( long commerceOrderItemId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceOrderItemLocalService . getCommerceOrderItem ( commerceOrderItemId ) ; } | Returns the commerce order item with the primary key . | 64 | 10 |
31,160 | @ Override public void cacheResult ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel ) { entityCache . putResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) , cpRuleAssetCategoryRel ) ; cpRuleAssetCategoryRel . resetOriginalValues ( ) ; } | Caches the cp rule asset category rel in the entity cache if it is enabled . | 86 | 17 |
31,161 | @ Override public void cacheResult ( List < CPRuleAssetCategoryRel > cpRuleAssetCategoryRels ) { for ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel : cpRuleAssetCategoryRels ) { if ( entityCache . getResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) ) == null ) { cacheResult ( cpRuleAssetCategoryRel ) ; } else { cpRuleAssetCategoryRel . resetOriginalValues ( ) ; } } } | Caches the cp rule asset category rels in the entity cache if it is enabled . | 125 | 18 |
31,162 | @ Override public void clearCache ( ) { entityCache . clearCache ( CPRuleAssetCategoryRelImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all cp rule asset category rels . | 99 | 13 |
31,163 | @ Override public void clearCache ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel ) { entityCache . removeResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for the cp rule asset category rel . | 121 | 12 |
31,164 | @ Override public CPRuleAssetCategoryRel remove ( Serializable primaryKey ) throws NoSuchCPRuleAssetCategoryRelException { Session session = null ; try { session = openSession ( ) ; CPRuleAssetCategoryRel cpRuleAssetCategoryRel = ( CPRuleAssetCategoryRel ) session . get ( CPRuleAssetCategoryRelImpl . class , primaryKey ) ; if ( cpRuleAssetCategoryRel == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPRuleAssetCategoryRelException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( cpRuleAssetCategoryRel ) ; } catch ( NoSuchCPRuleAssetCategoryRelException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } } | Removes the cp rule asset category rel with the primary key from the database . Also notifies the appropriate model listeners . | 217 | 24 |
31,165 | @ Override public List < CPRuleAssetCategoryRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp rule asset category rels . | 41 | 10 |
31,166 | @ Override public void cacheResult ( CPSpecificationOption cpSpecificationOption ) { entityCache . putResult ( CPSpecificationOptionModelImpl . ENTITY_CACHE_ENABLED , CPSpecificationOptionImpl . class , cpSpecificationOption . getPrimaryKey ( ) , cpSpecificationOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpSpecificationOption . getUuid ( ) , cpSpecificationOption . getGroupId ( ) } , cpSpecificationOption ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K , new Object [ ] { cpSpecificationOption . getGroupId ( ) , cpSpecificationOption . getKey ( ) } , cpSpecificationOption ) ; cpSpecificationOption . resetOriginalValues ( ) ; } | Caches the cp specification option in the entity cache if it is enabled . | 193 | 15 |
31,167 | @ Override public void cacheResult ( List < CPSpecificationOption > cpSpecificationOptions ) { for ( CPSpecificationOption cpSpecificationOption : cpSpecificationOptions ) { if ( entityCache . getResult ( CPSpecificationOptionModelImpl . ENTITY_CACHE_ENABLED , CPSpecificationOptionImpl . class , cpSpecificationOption . getPrimaryKey ( ) ) == null ) { cacheResult ( cpSpecificationOption ) ; } else { cpSpecificationOption . resetOriginalValues ( ) ; } } } | Caches the cp specification options in the entity cache if it is enabled . | 113 | 15 |
31,168 | @ Override public void clearCache ( ) { entityCache . clearCache ( CPSpecificationOptionImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all cp specification options . | 98 | 10 |
31,169 | @ Override public void clearCache ( CPSpecificationOption cpSpecificationOption ) { entityCache . removeResult ( CPSpecificationOptionModelImpl . ENTITY_CACHE_ENABLED , CPSpecificationOptionImpl . class , cpSpecificationOption . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPSpecificationOptionModelImpl ) cpSpecificationOption , true ) ; } | Clears the cache for the cp specification option . | 138 | 10 |
31,170 | @ Override public CPSpecificationOption remove ( Serializable primaryKey ) throws NoSuchCPSpecificationOptionException { Session session = null ; try { session = openSession ( ) ; CPSpecificationOption cpSpecificationOption = ( CPSpecificationOption ) session . get ( CPSpecificationOptionImpl . class , primaryKey ) ; if ( cpSpecificationOption == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPSpecificationOptionException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( cpSpecificationOption ) ; } catch ( NoSuchCPSpecificationOptionException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } } | Removes the cp specification option with the primary key from the database . Also notifies the appropriate model listeners . | 207 | 22 |
31,171 | @ Override public List < CPSpecificationOption > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp specification options . | 40 | 7 |
31,172 | @ Override public void cacheResult ( CommercePriceEntry commercePriceEntry ) { entityCache . putResult ( CommercePriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommercePriceEntryImpl . class , commercePriceEntry . getPrimaryKey ( ) , commercePriceEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { commercePriceEntry . getUuid ( ) , commercePriceEntry . getGroupId ( ) } , commercePriceEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_C , new Object [ ] { commercePriceEntry . getCommercePriceListId ( ) , commercePriceEntry . getCPInstanceUuid ( ) } , commercePriceEntry ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commercePriceEntry . getCompanyId ( ) , commercePriceEntry . getExternalReferenceCode ( ) } , commercePriceEntry ) ; commercePriceEntry . resetOriginalValues ( ) ; } | Caches the commerce price entry in the entity cache if it is enabled . | 240 | 15 |
31,173 | @ Override public void cacheResult ( List < CommercePriceEntry > commercePriceEntries ) { for ( CommercePriceEntry commercePriceEntry : commercePriceEntries ) { if ( entityCache . getResult ( CommercePriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommercePriceEntryImpl . class , commercePriceEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceEntry ) ; } else { commercePriceEntry . resetOriginalValues ( ) ; } } } | Caches the commerce price entries in the entity cache if it is enabled . | 105 | 15 |
31,174 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommercePriceEntryImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce price entries . | 97 | 10 |
31,175 | @ Override public void clearCache ( CommercePriceEntry commercePriceEntry ) { entityCache . removeResult ( CommercePriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommercePriceEntryImpl . class , commercePriceEntry . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CommercePriceEntryModelImpl ) commercePriceEntry , true ) ; } | Clears the cache for the commerce price entry . | 131 | 10 |
31,176 | @ Override public CommercePriceEntry remove ( Serializable primaryKey ) throws NoSuchPriceEntryException { Session session = null ; try { session = openSession ( ) ; CommercePriceEntry commercePriceEntry = ( CommercePriceEntry ) session . get ( CommercePriceEntryImpl . class , primaryKey ) ; if ( commercePriceEntry == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchPriceEntryException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commercePriceEntry ) ; } catch ( NoSuchPriceEntryException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } } | Removes the commerce price entry with the primary key from the database . Also notifies the appropriate model listeners . | 191 | 22 |
31,177 | @ Override public List < CommercePriceEntry > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce price entries . | 39 | 7 |
31,178 | @ Override public com . liferay . commerce . account . service . persistence . CommerceAccountUserRelPK getPrimaryKey ( ) { return _commerceAccountUserRel . getPrimaryKey ( ) ; } | Returns the primary key of this commerce account user rel . | 43 | 11 |
31,179 | @ Override public void setPrimaryKey ( com . liferay . commerce . account . service . persistence . CommerceAccountUserRelPK primaryKey ) { _commerceAccountUserRel . setPrimaryKey ( primaryKey ) ; } | Sets the primary key of this commerce account user rel . | 47 | 12 |
31,180 | @ Override public CommerceAccount fetchCommerceAccountByReferenceCode ( long companyId , String externalReferenceCode ) { return commerceAccountPersistence . fetchByC_ERC ( companyId , null ) ; } | Returns the commerce account with the matching external reference code and company . | 42 | 13 |
31,181 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceAccount updateCommerceAccount ( CommerceAccount commerceAccount ) { return commerceAccountPersistence . update ( commerceAccount ) ; } | Updates the commerce account in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners . | 43 | 26 |
31,182 | public void setCommerceAccountOrganizationRelLocalService ( com . liferay . commerce . account . service . CommerceAccountOrganizationRelLocalService commerceAccountOrganizationRelLocalService ) { this . commerceAccountOrganizationRelLocalService = commerceAccountOrganizationRelLocalService ; } | Sets the commerce account organization rel local service . | 58 | 10 |
31,183 | public void setCommerceAccountUserRelLocalService ( com . liferay . commerce . account . service . CommerceAccountUserRelLocalService commerceAccountUserRelLocalService ) { this . commerceAccountUserRelLocalService = commerceAccountUserRelLocalService ; } | Sets the commerce account user rel local service . | 53 | 10 |
31,184 | @ Override public void cacheResult ( CPOptionCategory cpOptionCategory ) { entityCache . putResult ( CPOptionCategoryModelImpl . ENTITY_CACHE_ENABLED , CPOptionCategoryImpl . class , cpOptionCategory . getPrimaryKey ( ) , cpOptionCategory ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpOptionCategory . getUuid ( ) , cpOptionCategory . getGroupId ( ) } , cpOptionCategory ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_G_K , new Object [ ] { cpOptionCategory . getGroupId ( ) , cpOptionCategory . getKey ( ) } , cpOptionCategory ) ; cpOptionCategory . resetOriginalValues ( ) ; } | Caches the cp option category in the entity cache if it is enabled . | 183 | 15 |
31,185 | @ Override public void cacheResult ( List < CPOptionCategory > cpOptionCategories ) { for ( CPOptionCategory cpOptionCategory : cpOptionCategories ) { if ( entityCache . getResult ( CPOptionCategoryModelImpl . ENTITY_CACHE_ENABLED , CPOptionCategoryImpl . class , cpOptionCategory . getPrimaryKey ( ) ) == null ) { cacheResult ( cpOptionCategory ) ; } else { cpOptionCategory . resetOriginalValues ( ) ; } } } | Caches the cp option categories in the entity cache if it is enabled . | 109 | 15 |
31,186 | @ Override public void clearCache ( ) { entityCache . clearCache ( CPOptionCategoryImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all cp option categories . | 98 | 10 |
31,187 | @ Override public void clearCache ( CPOptionCategory cpOptionCategory ) { entityCache . removeResult ( CPOptionCategoryModelImpl . ENTITY_CACHE_ENABLED , CPOptionCategoryImpl . class , cpOptionCategory . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPOptionCategoryModelImpl ) cpOptionCategory , true ) ; } | Clears the cache for the cp option category . | 135 | 10 |
31,188 | @ Override public List < CPOptionCategory > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp option categories . | 40 | 7 |
31,189 | @ Override public String getTermsOfUseContent ( java . util . Locale locale ) { return _cpDefinitionVirtualSetting . getTermsOfUseContent ( locale ) ; } | Returns the localized terms of use content of this cp definition virtual setting in the language . Uses the default language if no localization exists for the requested language . | 39 | 30 |
31,190 | @ Override public String getTermsOfUseContent ( String languageId , boolean useDefault ) { return _cpDefinitionVirtualSetting . getTermsOfUseContent ( languageId , useDefault ) ; } | Returns the localized terms of use content of this cp definition virtual setting in the language optionally using the default language if no localization exists for the requested language . | 43 | 30 |
31,191 | @ Override public void setTermsOfUseContent ( String termsOfUseContent , java . util . Locale locale , java . util . Locale defaultLocale ) { _cpDefinitionVirtualSetting . setTermsOfUseContent ( termsOfUseContent , locale , defaultLocale ) ; } | Sets the localized terms of use content of this cp definition virtual setting in the language and sets the default locale . | 63 | 23 |
31,192 | @ Override public void setTermsOfUseContentMap ( Map < java . util . Locale , String > termsOfUseContentMap ) { _cpDefinitionVirtualSetting . setTermsOfUseContentMap ( termsOfUseContentMap ) ; } | Sets the localized terms of use contents of this cp definition virtual setting from the map of locales and localized terms of use contents . | 53 | 27 |
31,193 | @ Override public void setTermsOfUseContentMap ( Map < java . util . Locale , String > termsOfUseContentMap , java . util . Locale defaultLocale ) { _cpDefinitionVirtualSetting . setTermsOfUseContentMap ( termsOfUseContentMap , defaultLocale ) ; } | Sets the localized terms of use contents of this cp definition virtual setting from the map of locales and localized terms of use contents and sets the default locale . | 67 | 32 |
31,194 | @ Override public String getName ( String languageId , boolean useDefault ) { return _cpMeasurementUnit . getName ( languageId , useDefault ) ; } | Returns the localized name of this cp measurement unit in the language optionally using the default language if no localization exists for the requested language . | 35 | 26 |
31,195 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceDiscount addCommerceDiscount ( CommerceDiscount commerceDiscount ) { commerceDiscount . setNew ( true ) ; return commerceDiscountPersistence . update ( commerceDiscount ) ; } | Adds the commerce discount to the database . Also notifies the appropriate model listeners . | 59 | 16 |
31,196 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceDiscount deleteCommerceDiscount ( long commerceDiscountId ) throws PortalException { return commerceDiscountPersistence . remove ( commerceDiscountId ) ; } | Deletes the commerce discount with the primary key from the database . Also notifies the appropriate model listeners . | 52 | 21 |
31,197 | public void setCommercePriceListAccountRelService ( com . liferay . commerce . price . list . service . CommercePriceListAccountRelService commercePriceListAccountRelService ) { this . commercePriceListAccountRelService = commercePriceListAccountRelService ; } | Sets the commerce price list account rel remote service . | 55 | 11 |
31,198 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceUserSegmentEntry deleteCommerceUserSegmentEntry ( long commerceUserSegmentEntryId ) throws PortalException { return commerceUserSegmentEntryPersistence . remove ( commerceUserSegmentEntryId ) ; } | Deletes the commerce user segment entry with the primary key from the database . Also notifies the appropriate model listeners . | 62 | 23 |
31,199 | public void setCommerceWishListLocalService ( com . liferay . commerce . wish . list . service . CommerceWishListLocalService commerceWishListLocalService ) { this . commerceWishListLocalService = commerceWishListLocalService ; } | Sets the commerce wish list local service . | 55 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.