repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
liferay/com-liferay-commerce | commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java | CommerceCurrencyWrapper.getName | @Override
public String getName(String languageId, boolean useDefault) {
return _commerceCurrency.getName(languageId, useDefault);
} | java | @Override
public String getName(String languageId, boolean useDefault) {
return _commerceCurrency.getName(languageId, useDefault);
} | [
"@",
"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.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized name of this commerce currency | [
"Returns",
"the",
"localized",
"name",
"of",
"this",
"commerce",
"currency",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java#L457-L460 | train |
liferay/com-liferay-commerce | commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java | CommerceCurrencyWrapper.setFormatPattern | @Override
public void setFormatPattern(String formatPattern, java.util.Locale locale,
java.util.Locale defaultLocale) {
_commerceCurrency.setFormatPattern(formatPattern, locale, defaultLocale);
} | java | @Override
public void setFormatPattern(String formatPattern, java.util.Locale locale,
java.util.Locale defaultLocale) {
_commerceCurrency.setFormatPattern(formatPattern, locale, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setFormatPattern",
"(",
"String",
"formatPattern",
",",
"java",
".",
"util",
".",
"Locale",
"locale",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_commerceCurrency",
".",
"setFormatPattern",
"(",
"fo... | Sets the localized format pattern of this commerce currency in the language, and sets the default locale.
@param formatPattern the localized format pattern of this commerce currency
@param locale the locale of the language
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"format",
"pattern",
"of",
"this",
"commerce",
"currency",
"in",
"the",
"language",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java#L744-L748 | train |
liferay/com-liferay-commerce | commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java | CommerceCurrencyWrapper.setFormatPatternMap | @Override
public void setFormatPatternMap(
Map<java.util.Locale, String> formatPatternMap) {
_commerceCurrency.setFormatPatternMap(formatPatternMap);
} | java | @Override
public void setFormatPatternMap(
Map<java.util.Locale, String> formatPatternMap) {
_commerceCurrency.setFormatPatternMap(formatPatternMap);
} | [
"@",
"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.
@param formatPatternMap the locales and localized format patterns of this commerce currency | [
"Sets",
"the",
"localized",
"format",
"patterns",
"of",
"this",
"commerce",
"currency",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"format",
"patterns",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java#L760-L764 | train |
liferay/com-liferay-commerce | commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java | CommerceCurrencyWrapper.setFormatPatternMap | @Override
public void setFormatPatternMap(
Map<java.util.Locale, String> formatPatternMap,
java.util.Locale defaultLocale) {
_commerceCurrency.setFormatPatternMap(formatPatternMap, defaultLocale);
} | java | @Override
public void setFormatPatternMap(
Map<java.util.Locale, String> formatPatternMap,
java.util.Locale defaultLocale) {
_commerceCurrency.setFormatPatternMap(formatPatternMap, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setFormatPatternMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"formatPatternMap",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_commerceCurrency",
".",
"setFormatPatte... | Sets the localized format patterns of this commerce currency from the map of locales and localized format patterns, and sets the default locale.
@param formatPatternMap the locales and localized format patterns of this commerce currency
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"format",
"patterns",
"of",
"this",
"commerce",
"currency",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"format",
"patterns",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-api/src/main/java/com/liferay/commerce/currency/model/CommerceCurrencyWrapper.java#L772-L777 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java | CPDisplayLayoutPersistenceImpl.cacheResult | @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();
} | java | @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();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPDisplayLayout",
"cpDisplayLayout",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPDisplayLayoutModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPDisplayLayoutImpl",
".",
"class",
",",
"cpDisplayLayout",
".",
... | Caches the cp display layout in the entity cache if it is enabled.
@param cpDisplayLayout the cp display layout | [
"Caches",
"the",
"cp",
"display",
"layout",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java#L1727-L1743 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java | CPDisplayLayoutPersistenceImpl.cacheResult | @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();
}
}
} | java | @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();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPDisplayLayout",
">",
"cpDisplayLayouts",
")",
"{",
"for",
"(",
"CPDisplayLayout",
"cpDisplayLayout",
":",
"cpDisplayLayouts",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"(",
"CPDis... | Caches the cp display layouts in the entity cache if it is enabled.
@param cpDisplayLayouts the cp display layouts | [
"Caches",
"the",
"cp",
"display",
"layouts",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java#L1750-L1763 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java | CPDisplayLayoutPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPDisplayLayoutImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
"... | Clears the cache for all cp display layouts.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"display",
"layouts",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java#L1772-L1779 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java | CPDisplayLayoutPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPDisplayLayout",
"cpDisplayLayout",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPDisplayLayoutModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPDisplayLayoutImpl",
".",
"class",
",",
"cpDisplayLayout",
".",... | Clears the cache for the cp display layout.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"display",
"layout",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java#L1788-L1797 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java | CPDisplayLayoutPersistenceImpl.findAll | @Override
public List<CPDisplayLayout> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPDisplayLayout> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPDisplayLayout",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp display layouts.
@return the cp display layouts | [
"Returns",
"all",
"the",
"cp",
"display",
"layouts",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPDisplayLayoutPersistenceImpl.java#L2332-L2335 | train |
liferay/com-liferay-commerce | commerce-api/src/main/java/com/liferay/commerce/service/CommerceOrderItemLocalServiceWrapper.java | CommerceOrderItemLocalServiceWrapper.getCommerceOrderItem | @Override
public com.liferay.commerce.model.CommerceOrderItem getCommerceOrderItem(
long commerceOrderItemId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceOrderItemLocalService.getCommerceOrderItem(commerceOrderItemId);
} | java | @Override
public com.liferay.commerce.model.CommerceOrderItem getCommerceOrderItem(
long commerceOrderItemId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceOrderItemLocalService.getCommerceOrderItem(commerceOrderItemId);
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"model",
".",
"CommerceOrderItem",
"getCommerceOrderItem",
"(",
"long",
"commerceOrderItemId",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"exception",
".",
"P... | Returns the commerce order item with the primary key.
@param commerceOrderItemId the primary key of the commerce order item
@return the commerce order item
@throws PortalException if a commerce order item with the primary key could not be found | [
"Returns",
"the",
"commerce",
"order",
"item",
"with",
"the",
"primary",
"key",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-api/src/main/java/com/liferay/commerce/service/CommerceOrderItemLocalServiceWrapper.java#L264-L269 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java | CPRuleAssetCategoryRelPersistenceImpl.cacheResult | @Override
public void cacheResult(CPRuleAssetCategoryRel cpRuleAssetCategoryRel) {
entityCache.putResult(CPRuleAssetCategoryRelModelImpl.ENTITY_CACHE_ENABLED,
CPRuleAssetCategoryRelImpl.class,
cpRuleAssetCategoryRel.getPrimaryKey(), cpRuleAssetCategoryRel);
cpRuleAssetCategoryRel.resetOriginalValues();
} | java | @Override
public void cacheResult(CPRuleAssetCategoryRel cpRuleAssetCategoryRel) {
entityCache.putResult(CPRuleAssetCategoryRelModelImpl.ENTITY_CACHE_ENABLED,
CPRuleAssetCategoryRelImpl.class,
cpRuleAssetCategoryRel.getPrimaryKey(), cpRuleAssetCategoryRel);
cpRuleAssetCategoryRel.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPRuleAssetCategoryRel",
"cpRuleAssetCategoryRel",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPRuleAssetCategoryRelModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPRuleAssetCategoryRelImpl",
".",
"class",
",",
... | Caches the cp rule asset category rel in the entity cache if it is enabled.
@param cpRuleAssetCategoryRel the cp rule asset category rel | [
"Caches",
"the",
"cp",
"rule",
"asset",
"category",
"rel",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java#L1143-L1150 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java | CPRuleAssetCategoryRelPersistenceImpl.cacheResult | @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();
}
}
} | java | @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();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPRuleAssetCategoryRel",
">",
"cpRuleAssetCategoryRels",
")",
"{",
"for",
"(",
"CPRuleAssetCategoryRel",
"cpRuleAssetCategoryRel",
":",
"cpRuleAssetCategoryRels",
")",
"{",
"if",
"(",
"entityCache",
... | Caches the cp rule asset category rels in the entity cache if it is enabled.
@param cpRuleAssetCategoryRels the cp rule asset category rels | [
"Caches",
"the",
"cp",
"rule",
"asset",
"category",
"rels",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java#L1157-L1171 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java | CPRuleAssetCategoryRelPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPRuleAssetCategoryRelImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCach... | Clears the cache for all cp rule asset category rels.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"rule",
"asset",
"category",
"rels",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java#L1180-L1187 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java | CPRuleAssetCategoryRelPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPRuleAssetCategoryRel",
"cpRuleAssetCategoryRel",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPRuleAssetCategoryRelModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPRuleAssetCategoryRelImpl",
".",
"class",
",",... | Clears the cache for the cp rule asset category rel.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"rule",
"asset",
"category",
"rel",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java#L1196-L1204 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java | CPRuleAssetCategoryRelPersistenceImpl.remove | @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);
}
} | java | @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);
}
} | [
"@",
"Override",
"public",
"CPRuleAssetCategoryRel",
"remove",
"(",
"Serializable",
"primaryKey",
")",
"throws",
"NoSuchCPRuleAssetCategoryRelException",
"{",
"Session",
"session",
"=",
"null",
";",
"try",
"{",
"session",
"=",
"openSession",
"(",
")",
";",
"CPRuleAs... | Removes the cp rule asset category rel with the primary key from the database. Also notifies the appropriate model listeners.
@param primaryKey the primary key of the cp rule asset category rel
@return the cp rule asset category rel that was removed
@throws NoSuchCPRuleAssetCategoryRelException if a cp rule asset category rel with the primary key could not be found | [
"Removes",
"the",
"cp",
"rule",
"asset",
"category",
"rel",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java#L1256-L1287 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java | CPRuleAssetCategoryRelPersistenceImpl.findAll | @Override
public List<CPRuleAssetCategoryRel> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPRuleAssetCategoryRel> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPRuleAssetCategoryRel",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp rule asset category rels.
@return the cp rule asset category rels | [
"Returns",
"all",
"the",
"cp",
"rule",
"asset",
"category",
"rels",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPRuleAssetCategoryRelPersistenceImpl.java#L1666-L1669 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java | CPSpecificationOptionPersistenceImpl.cacheResult | @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();
} | java | @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();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPSpecificationOption",
"cpSpecificationOption",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPSpecificationOptionModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPSpecificationOptionImpl",
".",
"class",
",",
"cp... | Caches the cp specification option in the entity cache if it is enabled.
@param cpSpecificationOption the cp specification option | [
"Caches",
"the",
"cp",
"specification",
"option",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java#L2808-L2827 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java | CPSpecificationOptionPersistenceImpl.cacheResult | @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();
}
}
} | java | @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();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPSpecificationOption",
">",
"cpSpecificationOptions",
")",
"{",
"for",
"(",
"CPSpecificationOption",
"cpSpecificationOption",
":",
"cpSpecificationOptions",
")",
"{",
"if",
"(",
"entityCache",
".",
... | Caches the cp specification options in the entity cache if it is enabled.
@param cpSpecificationOptions the cp specification options | [
"Caches",
"the",
"cp",
"specification",
"options",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java#L2834-L2847 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java | CPSpecificationOptionPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPSpecificationOptionImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache... | Clears the cache for all cp specification options.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"specification",
"options",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java#L2856-L2863 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java | CPSpecificationOptionPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPSpecificationOption",
"cpSpecificationOption",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPSpecificationOptionModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPSpecificationOptionImpl",
".",
"class",
",",
"... | Clears the cache for the cp specification option.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"specification",
"option",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java#L2872-L2883 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java | CPSpecificationOptionPersistenceImpl.remove | @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);
}
} | java | @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);
}
} | [
"@",
"Override",
"public",
"CPSpecificationOption",
"remove",
"(",
"Serializable",
"primaryKey",
")",
"throws",
"NoSuchCPSpecificationOptionException",
"{",
"Session",
"session",
"=",
"null",
";",
"try",
"{",
"session",
"=",
"openSession",
"(",
")",
";",
"CPSpecific... | Removes the cp specification option with the primary key from the database. Also notifies the appropriate model listeners.
@param primaryKey the primary key of the cp specification option
@return the cp specification option that was removed
@throws NoSuchCPSpecificationOptionException if a cp specification option with the primary key could not be found | [
"Removes",
"the",
"cp",
"specification",
"option",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java#L3011-L3042 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java | CPSpecificationOptionPersistenceImpl.findAll | @Override
public List<CPSpecificationOption> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPSpecificationOption> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPSpecificationOption",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp specification options.
@return the cp specification options | [
"Returns",
"all",
"the",
"cp",
"specification",
"options",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPSpecificationOptionPersistenceImpl.java#L3479-L3482 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java | CommercePriceEntryPersistenceImpl.cacheResult | @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();
} | java | @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();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommercePriceEntry",
"commercePriceEntry",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommercePriceEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommercePriceEntryImpl",
".",
"class",
",",
"commercePriceE... | Caches the commerce price entry in the entity cache if it is enabled.
@param commercePriceEntry the commerce price entry | [
"Caches",
"the",
"commerce",
"price",
"entry",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java#L4147-L4171 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java | CommercePriceEntryPersistenceImpl.cacheResult | @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();
}
}
} | java | @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();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommercePriceEntry",
">",
"commercePriceEntries",
")",
"{",
"for",
"(",
"CommercePriceEntry",
"commercePriceEntry",
":",
"commercePriceEntries",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult"... | Caches the commerce price entries in the entity cache if it is enabled.
@param commercePriceEntries the commerce price entries | [
"Caches",
"the",
"commerce",
"price",
"entries",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java#L4178-L4191 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java | CommercePriceEntryPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommercePriceEntryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
... | Clears the cache for all commerce price entries.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"price",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java#L4200-L4207 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java | CommercePriceEntryPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommercePriceEntry",
"commercePriceEntry",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommercePriceEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommercePriceEntryImpl",
".",
"class",
",",
"commercePric... | Clears the cache for the commerce price entry.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"price",
"entry",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java#L4216-L4226 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java | CommercePriceEntryPersistenceImpl.remove | @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);
}
} | java | @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);
}
} | [
"@",
"Override",
"public",
"CommercePriceEntry",
"remove",
"(",
"Serializable",
"primaryKey",
")",
"throws",
"NoSuchPriceEntryException",
"{",
"Session",
"session",
"=",
"null",
";",
"try",
"{",
"session",
"=",
"openSession",
"(",
")",
";",
"CommercePriceEntry",
"... | Removes the commerce price entry with the primary key from the database. Also notifies the appropriate model listeners.
@param primaryKey the primary key of the commerce price entry
@return the commerce price entry that was removed
@throws NoSuchPriceEntryException if a commerce price entry with the primary key could not be found | [
"Removes",
"the",
"commerce",
"price",
"entry",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java#L4384-L4415 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java | CommercePriceEntryPersistenceImpl.findAll | @Override
public List<CommercePriceEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommercePriceEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommercePriceEntry",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce price entries.
@return the commerce price entries | [
"Returns",
"all",
"the",
"commerce",
"price",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceEntryPersistenceImpl.java#L4899-L4902 | train |
liferay/com-liferay-commerce | commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountUserRelWrapper.java | CommerceAccountUserRelWrapper.getPrimaryKey | @Override
public com.liferay.commerce.account.service.persistence.CommerceAccountUserRelPK getPrimaryKey() {
return _commerceAccountUserRel.getPrimaryKey();
} | java | @Override
public com.liferay.commerce.account.service.persistence.CommerceAccountUserRelPK getPrimaryKey() {
return _commerceAccountUserRel.getPrimaryKey();
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"account",
".",
"service",
".",
"persistence",
".",
"CommerceAccountUserRelPK",
"getPrimaryKey",
"(",
")",
"{",
"return",
"_commerceAccountUserRel",
".",
"getPrimaryKey",
"(",
")",
";",
"}"
... | Returns the primary key of this commerce account user rel.
@return the primary key of this commerce account user rel | [
"Returns",
"the",
"primary",
"key",
"of",
"this",
"commerce",
"account",
"user",
"rel",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountUserRelWrapper.java#L199-L202 | train |
liferay/com-liferay-commerce | commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountUserRelWrapper.java | CommerceAccountUserRelWrapper.setPrimaryKey | @Override
public void setPrimaryKey(
com.liferay.commerce.account.service.persistence.CommerceAccountUserRelPK primaryKey) {
_commerceAccountUserRel.setPrimaryKey(primaryKey);
} | java | @Override
public void setPrimaryKey(
com.liferay.commerce.account.service.persistence.CommerceAccountUserRelPK primaryKey) {
_commerceAccountUserRel.setPrimaryKey(primaryKey);
} | [
"@",
"Override",
"public",
"void",
"setPrimaryKey",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"account",
".",
"service",
".",
"persistence",
".",
"CommerceAccountUserRelPK",
"primaryKey",
")",
"{",
"_commerceAccountUserRel",
".",
"setPrimaryKey",
"(",
"pri... | Sets the primary key of this commerce account user rel.
@param primaryKey the primary key of this commerce account user rel | [
"Sets",
"the",
"primary",
"key",
"of",
"this",
"commerce",
"account",
"user",
"rel",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountUserRelWrapper.java#L367-L371 | train |
liferay/com-liferay-commerce | commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java | CommerceAccountLocalServiceBaseImpl.fetchCommerceAccountByReferenceCode | @Override
public CommerceAccount fetchCommerceAccountByReferenceCode(long companyId,
String externalReferenceCode) {
return commerceAccountPersistence.fetchByC_ERC(companyId, null);
} | java | @Override
public CommerceAccount fetchCommerceAccountByReferenceCode(long companyId,
String externalReferenceCode) {
return commerceAccountPersistence.fetchByC_ERC(companyId, null);
} | [
"@",
"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.
@param companyId the primary key of the company
@param externalReferenceCode the commerce account's external reference code
@return the matching commerce account, or <code>null</code> if a matching commerce account could not be found | [
"Returns",
"the",
"commerce",
"account",
"with",
"the",
"matching",
"external",
"reference",
"code",
"and",
"company",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java#L233-L237 | train |
liferay/com-liferay-commerce | commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java | CommerceAccountLocalServiceBaseImpl.updateCommerceAccount | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceAccount updateCommerceAccount(
CommerceAccount commerceAccount) {
return commerceAccountPersistence.update(commerceAccount);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceAccount updateCommerceAccount(
CommerceAccount commerceAccount) {
return commerceAccountPersistence.update(commerceAccount);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommerceAccount",
"updateCommerceAccount",
"(",
"CommerceAccount",
"commerceAccount",
")",
"{",
"return",
"commerceAccountPersistence",
".",
"update",
"(",
"commerceA... | Updates the commerce account in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
@param commerceAccount the commerce account
@return the commerce account that was updated | [
"Updates",
"the",
"commerce",
"account",
"in",
"the",
"database",
"or",
"adds",
"it",
"if",
"it",
"does",
"not",
"yet",
"exist",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java#L335-L340 | train |
liferay/com-liferay-commerce | commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java | CommerceAccountLocalServiceBaseImpl.setCommerceAccountOrganizationRelLocalService | public void setCommerceAccountOrganizationRelLocalService(
com.liferay.commerce.account.service.CommerceAccountOrganizationRelLocalService commerceAccountOrganizationRelLocalService) {
this.commerceAccountOrganizationRelLocalService = commerceAccountOrganizationRelLocalService;
} | java | public void setCommerceAccountOrganizationRelLocalService(
com.liferay.commerce.account.service.CommerceAccountOrganizationRelLocalService commerceAccountOrganizationRelLocalService) {
this.commerceAccountOrganizationRelLocalService = commerceAccountOrganizationRelLocalService;
} | [
"public",
"void",
"setCommerceAccountOrganizationRelLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"account",
".",
"service",
".",
"CommerceAccountOrganizationRelLocalService",
"commerceAccountOrganizationRelLocalService",
")",
"{",
"this",
".",
"commerceAcc... | Sets the commerce account organization rel local service.
@param commerceAccountOrganizationRelLocalService the commerce account organization rel local service | [
"Sets",
"the",
"commerce",
"account",
"organization",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java#L413-L416 | train |
liferay/com-liferay-commerce | commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java | CommerceAccountLocalServiceBaseImpl.setCommerceAccountUserRelLocalService | public void setCommerceAccountUserRelLocalService(
com.liferay.commerce.account.service.CommerceAccountUserRelLocalService commerceAccountUserRelLocalService) {
this.commerceAccountUserRelLocalService = commerceAccountUserRelLocalService;
} | java | public void setCommerceAccountUserRelLocalService(
com.liferay.commerce.account.service.CommerceAccountUserRelLocalService commerceAccountUserRelLocalService) {
this.commerceAccountUserRelLocalService = commerceAccountUserRelLocalService;
} | [
"public",
"void",
"setCommerceAccountUserRelLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"account",
".",
"service",
".",
"CommerceAccountUserRelLocalService",
"commerceAccountUserRelLocalService",
")",
"{",
"this",
".",
"commerceAccountUserRelLocalService"... | Sets the commerce account user rel local service.
@param commerceAccountUserRelLocalService the commerce account user rel local service | [
"Sets",
"the",
"commerce",
"account",
"user",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-service/src/main/java/com/liferay/commerce/account/service/base/CommerceAccountLocalServiceBaseImpl.java#L451-L454 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java | CPOptionCategoryPersistenceImpl.cacheResult | @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();
} | java | @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();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPOptionCategory",
"cpOptionCategory",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPOptionCategoryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPOptionCategoryImpl",
".",
"class",
",",
"cpOptionCategory",
"... | Caches the cp option category in the entity cache if it is enabled.
@param cpOptionCategory the cp option category | [
"Caches",
"the",
"cp",
"option",
"category",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java#L2782-L2799 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java | CPOptionCategoryPersistenceImpl.cacheResult | @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();
}
}
} | java | @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();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPOptionCategory",
">",
"cpOptionCategories",
")",
"{",
"for",
"(",
"CPOptionCategory",
"cpOptionCategory",
":",
"cpOptionCategories",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"(",
... | Caches the cp option categories in the entity cache if it is enabled.
@param cpOptionCategories the cp option categories | [
"Caches",
"the",
"cp",
"option",
"categories",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java#L2806-L2819 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java | CPOptionCategoryPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPOptionCategoryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
... | Clears the cache for all cp option categories.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"option",
"categories",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java#L2828-L2835 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java | CPOptionCategoryPersistenceImpl.clearCache | @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);
} | java | @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);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPOptionCategory",
"cpOptionCategory",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPOptionCategoryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPOptionCategoryImpl",
".",
"class",
",",
"cpOptionCategory",
... | Clears the cache for the cp option category.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"option",
"category",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java#L2844-L2854 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java | CPOptionCategoryPersistenceImpl.findAll | @Override
public List<CPOptionCategory> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPOptionCategory> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPOptionCategory",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp option categories.
@return the cp option categories | [
"Returns",
"all",
"the",
"cp",
"option",
"categories",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionCategoryPersistenceImpl.java#L3436-L3439 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java | CPDefinitionVirtualSettingWrapper.getTermsOfUseContent | @Override
public String getTermsOfUseContent(java.util.Locale locale) {
return _cpDefinitionVirtualSetting.getTermsOfUseContent(locale);
} | java | @Override
public String getTermsOfUseContent(java.util.Locale locale) {
return _cpDefinitionVirtualSetting.getTermsOfUseContent(locale);
} | [
"@",
"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.
@param locale the locale of the language
@return the localized terms of use content of this cp definition virtual setting | [
"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",
"langua... | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java#L466-L469 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java | CPDefinitionVirtualSettingWrapper.getTermsOfUseContent | @Override
public String getTermsOfUseContent(String languageId, boolean useDefault) {
return _cpDefinitionVirtualSetting.getTermsOfUseContent(languageId,
useDefault);
} | java | @Override
public String getTermsOfUseContent(String languageId, boolean useDefault) {
return _cpDefinitionVirtualSetting.getTermsOfUseContent(languageId,
useDefault);
} | [
"@",
"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.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized terms of use content of this cp definition virtual setting | [
"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",... | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java#L503-L507 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java | CPDefinitionVirtualSettingWrapper.setTermsOfUseContent | @Override
public void setTermsOfUseContent(String termsOfUseContent,
java.util.Locale locale, java.util.Locale defaultLocale) {
_cpDefinitionVirtualSetting.setTermsOfUseContent(termsOfUseContent,
locale, defaultLocale);
} | java | @Override
public void setTermsOfUseContent(String termsOfUseContent,
java.util.Locale locale, java.util.Locale defaultLocale) {
_cpDefinitionVirtualSetting.setTermsOfUseContent(termsOfUseContent,
locale, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setTermsOfUseContent",
"(",
"String",
"termsOfUseContent",
",",
"java",
".",
"util",
".",
"Locale",
"locale",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_cpDefinitionVirtualSetting",
".",
"setTermsOfUse... | Sets the localized terms of use content of this cp definition virtual setting in the language, and sets the default locale.
@param termsOfUseContent the localized terms of use content of this cp definition virtual setting
@param locale the locale of the language
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"terms",
"of",
"use",
"content",
"of",
"this",
"cp",
"definition",
"virtual",
"setting",
"in",
"the",
"language",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java#L925-L930 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java | CPDefinitionVirtualSettingWrapper.setTermsOfUseContentMap | @Override
public void setTermsOfUseContentMap(
Map<java.util.Locale, String> termsOfUseContentMap) {
_cpDefinitionVirtualSetting.setTermsOfUseContentMap(termsOfUseContentMap);
} | java | @Override
public void setTermsOfUseContentMap(
Map<java.util.Locale, String> termsOfUseContentMap) {
_cpDefinitionVirtualSetting.setTermsOfUseContentMap(termsOfUseContentMap);
} | [
"@",
"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.
@param termsOfUseContentMap the locales and localized terms of use contents of this cp definition virtual setting | [
"Sets",
"the",
"localized",
"terms",
"of",
"use",
"contents",
"of",
"this",
"cp",
"definition",
"virtual",
"setting",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"terms",
"of",
"use",
"contents",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java#L942-L946 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java | CPDefinitionVirtualSettingWrapper.setTermsOfUseContentMap | @Override
public void setTermsOfUseContentMap(
Map<java.util.Locale, String> termsOfUseContentMap,
java.util.Locale defaultLocale) {
_cpDefinitionVirtualSetting.setTermsOfUseContentMap(termsOfUseContentMap,
defaultLocale);
} | java | @Override
public void setTermsOfUseContentMap(
Map<java.util.Locale, String> termsOfUseContentMap,
java.util.Locale defaultLocale) {
_cpDefinitionVirtualSetting.setTermsOfUseContentMap(termsOfUseContentMap,
defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setTermsOfUseContentMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"termsOfUseContentMap",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_cpDefinitionVirtualSetting",
".",... | 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.
@param termsOfUseContentMap the locales and localized terms of use contents of this cp definition virtual setting
@param defaultLocale the default locale | [
"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",
"."
... | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-api/src/main/java/com/liferay/commerce/product/type/virtual/model/CPDefinitionVirtualSettingWrapper.java#L954-L960 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPMeasurementUnitWrapper.java | CPMeasurementUnitWrapper.getName | @Override
public String getName(String languageId, boolean useDefault) {
return _cpMeasurementUnit.getName(languageId, useDefault);
} | java | @Override
public String getName(String languageId, boolean useDefault) {
return _cpMeasurementUnit.getName(languageId, useDefault);
} | [
"@",
"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.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized name of this cp measurement unit | [
"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",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPMeasurementUnitWrapper.java#L321-L324 | train |
liferay/com-liferay-commerce | commerce-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountLocalServiceBaseImpl.java | CommerceDiscountLocalServiceBaseImpl.addCommerceDiscount | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceDiscount addCommerceDiscount(
CommerceDiscount commerceDiscount) {
commerceDiscount.setNew(true);
return commerceDiscountPersistence.update(commerceDiscount);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceDiscount addCommerceDiscount(
CommerceDiscount commerceDiscount) {
commerceDiscount.setNew(true);
return commerceDiscountPersistence.update(commerceDiscount);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommerceDiscount",
"addCommerceDiscount",
"(",
"CommerceDiscount",
"commerceDiscount",
")",
"{",
"commerceDiscount",
".",
"setNew",
"(",
"true",
")",
";",
"return... | Adds the commerce discount to the database. Also notifies the appropriate model listeners.
@param commerceDiscount the commerce discount
@return the commerce discount that was added | [
"Adds",
"the",
"commerce",
"discount",
"to",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountLocalServiceBaseImpl.java#L106-L113 | train |
liferay/com-liferay-commerce | commerce-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountLocalServiceBaseImpl.java | CommerceDiscountLocalServiceBaseImpl.deleteCommerceDiscount | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceDiscount deleteCommerceDiscount(long commerceDiscountId)
throws PortalException {
return commerceDiscountPersistence.remove(commerceDiscountId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceDiscount deleteCommerceDiscount(long commerceDiscountId)
throws PortalException {
return commerceDiscountPersistence.remove(commerceDiscountId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceDiscount",
"deleteCommerceDiscount",
"(",
"long",
"commerceDiscountId",
")",
"throws",
"PortalException",
"{",
"return",
"commerceDiscountPersistence",
".",
"r... | Deletes the commerce discount with the primary key from the database. Also notifies the appropriate model listeners.
@param commerceDiscountId the primary key of the commerce discount
@return the commerce discount that was removed
@throws PortalException if a commerce discount with the primary key could not be found | [
"Deletes",
"the",
"commerce",
"discount",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountLocalServiceBaseImpl.java#L134-L139 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/base/CommercePriceEntryServiceBaseImpl.java | CommercePriceEntryServiceBaseImpl.setCommercePriceListAccountRelService | public void setCommercePriceListAccountRelService(
com.liferay.commerce.price.list.service.CommercePriceListAccountRelService commercePriceListAccountRelService) {
this.commercePriceListAccountRelService = commercePriceListAccountRelService;
} | java | public void setCommercePriceListAccountRelService(
com.liferay.commerce.price.list.service.CommercePriceListAccountRelService commercePriceListAccountRelService) {
this.commercePriceListAccountRelService = commercePriceListAccountRelService;
} | [
"public",
"void",
"setCommercePriceListAccountRelService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"price",
".",
"list",
".",
"service",
".",
"CommercePriceListAccountRelService",
"commercePriceListAccountRelService",
")",
"{",
"this",
".",
"commercePriceListAcc... | Sets the commerce price list account rel remote service.
@param commercePriceListAccountRelService the commerce price list account rel remote service | [
"Sets",
"the",
"commerce",
"price",
"list",
"account",
"rel",
"remote",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/base/CommercePriceEntryServiceBaseImpl.java#L229-L232 | train |
liferay/com-liferay-commerce | commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/base/CommerceUserSegmentEntryLocalServiceBaseImpl.java | CommerceUserSegmentEntryLocalServiceBaseImpl.deleteCommerceUserSegmentEntry | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceUserSegmentEntry deleteCommerceUserSegmentEntry(
long commerceUserSegmentEntryId) throws PortalException {
return commerceUserSegmentEntryPersistence.remove(commerceUserSegmentEntryId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceUserSegmentEntry deleteCommerceUserSegmentEntry(
long commerceUserSegmentEntryId) throws PortalException {
return commerceUserSegmentEntryPersistence.remove(commerceUserSegmentEntryId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceUserSegmentEntry",
"deleteCommerceUserSegmentEntry",
"(",
"long",
"commerceUserSegmentEntryId",
")",
"throws",
"PortalException",
"{",
"return",
"commerceUserSegme... | Deletes the commerce user segment entry with the primary key from the database. Also notifies the appropriate model listeners.
@param commerceUserSegmentEntryId the primary key of the commerce user segment entry
@return the commerce user segment entry that was removed
@throws PortalException if a commerce user segment entry with the primary key could not be found | [
"Deletes",
"the",
"commerce",
"user",
"segment",
"entry",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/base/CommerceUserSegmentEntryLocalServiceBaseImpl.java#L117-L122 | train |
liferay/com-liferay-commerce | commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/base/CommerceWishListItemServiceBaseImpl.java | CommerceWishListItemServiceBaseImpl.setCommerceWishListLocalService | public void setCommerceWishListLocalService(
com.liferay.commerce.wish.list.service.CommerceWishListLocalService commerceWishListLocalService) {
this.commerceWishListLocalService = commerceWishListLocalService;
} | java | public void setCommerceWishListLocalService(
com.liferay.commerce.wish.list.service.CommerceWishListLocalService commerceWishListLocalService) {
this.commerceWishListLocalService = commerceWishListLocalService;
} | [
"public",
"void",
"setCommerceWishListLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"wish",
".",
"list",
".",
"service",
".",
"CommerceWishListLocalService",
"commerceWishListLocalService",
")",
"{",
"this",
".",
"commerceWishListLocalService",
"=",
... | Sets the commerce wish list local service.
@param commerceWishListLocalService the commerce wish list local service | [
"Sets",
"the",
"commerce",
"wish",
"list",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/base/CommerceWishListItemServiceBaseImpl.java#L72-L75 | train |
liferay/com-liferay-commerce | commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/base/CommerceWishListItemServiceBaseImpl.java | CommerceWishListItemServiceBaseImpl.setCommerceWishListService | public void setCommerceWishListService(
com.liferay.commerce.wish.list.service.CommerceWishListService commerceWishListService) {
this.commerceWishListService = commerceWishListService;
} | java | public void setCommerceWishListService(
com.liferay.commerce.wish.list.service.CommerceWishListService commerceWishListService) {
this.commerceWishListService = commerceWishListService;
} | [
"public",
"void",
"setCommerceWishListService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"wish",
".",
"list",
".",
"service",
".",
"CommerceWishListService",
"commerceWishListService",
")",
"{",
"this",
".",
"commerceWishListService",
"=",
"commerceWishListSe... | Sets the commerce wish list remote service.
@param commerceWishListService the commerce wish list remote service | [
"Sets",
"the",
"commerce",
"wish",
"list",
"remote",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-wish-list-service/src/main/java/com/liferay/commerce/wish/list/service/base/CommerceWishListItemServiceBaseImpl.java#L91-L94 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.getBody | @Override
public String getBody(String languageId, boolean useDefault) {
return _commerceNotificationTemplate.getBody(languageId, useDefault);
} | java | @Override
public String getBody(String languageId, boolean useDefault) {
return _commerceNotificationTemplate.getBody(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getBody",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceNotificationTemplate",
".",
"getBody",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized body of this commerce notification template in the language, optionally using the default language if no localization exists for the requested language.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized body of this commerce notification template | [
"Returns",
"the",
"localized",
"body",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L277-L280 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.getFromName | @Override
public String getFromName(String languageId, boolean useDefault) {
return _commerceNotificationTemplate.getFromName(languageId, useDefault);
} | java | @Override
public String getFromName(String languageId, boolean useDefault) {
return _commerceNotificationTemplate.getFromName(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getFromName",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceNotificationTemplate",
".",
"getFromName",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized from name of this commerce notification template in the language, optionally using the default language if no localization exists for the requested language.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized from name of this commerce notification template | [
"Returns",
"the",
"localized",
"from",
"name",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L433-L436 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.getSubject | @Override
public String getSubject(java.util.Locale locale) {
return _commerceNotificationTemplate.getSubject(locale);
} | java | @Override
public String getSubject(java.util.Locale locale) {
return _commerceNotificationTemplate.getSubject(locale);
} | [
"@",
"Override",
"public",
"String",
"getSubject",
"(",
"java",
".",
"util",
".",
"Locale",
"locale",
")",
"{",
"return",
"_commerceNotificationTemplate",
".",
"getSubject",
"(",
"locale",
")",
";",
"}"
] | Returns the localized subject of this commerce notification template in the language. Uses the default language if no localization exists for the requested language.
@param locale the locale of the language
@return the localized subject of this commerce notification template | [
"Returns",
"the",
"localized",
"subject",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
".",
"Uses",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L519-L522 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.getSubject | @Override
public String getSubject(String languageId, boolean useDefault) {
return _commerceNotificationTemplate.getSubject(languageId, useDefault);
} | java | @Override
public String getSubject(String languageId, boolean useDefault) {
return _commerceNotificationTemplate.getSubject(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getSubject",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceNotificationTemplate",
".",
"getSubject",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized subject of this commerce notification template in the language, optionally using the default language if no localization exists for the requested language.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized subject of this commerce notification template | [
"Returns",
"the",
"localized",
"subject",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L554-L557 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setBody | @Override
public void setBody(String body, java.util.Locale locale,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setBody(body, locale, defaultLocale);
} | java | @Override
public void setBody(String body, java.util.Locale locale,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setBody(body, locale, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setBody",
"(",
"String",
"body",
",",
"java",
".",
"util",
".",
"Locale",
"locale",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_commerceNotificationTemplate",
".",
"setBody",
"(",
"body",
",",
"... | Sets the localized body of this commerce notification template in the language, and sets the default locale.
@param body the localized body of this commerce notification template
@param locale the locale of the language
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"body",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L715-L719 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setBodyMap | @Override
public void setBodyMap(Map<java.util.Locale, String> bodyMap) {
_commerceNotificationTemplate.setBodyMap(bodyMap);
} | java | @Override
public void setBodyMap(Map<java.util.Locale, String> bodyMap) {
_commerceNotificationTemplate.setBodyMap(bodyMap);
} | [
"@",
"Override",
"public",
"void",
"setBodyMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"bodyMap",
")",
"{",
"_commerceNotificationTemplate",
".",
"setBodyMap",
"(",
"bodyMap",
")",
";",
"}"
] | Sets the localized bodies of this commerce notification template from the map of locales and localized bodies.
@param bodyMap the locales and localized bodies of this commerce notification template | [
"Sets",
"the",
"localized",
"bodies",
"of",
"this",
"commerce",
"notification",
"template",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"bodies",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L731-L734 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setBodyMap | @Override
public void setBodyMap(Map<java.util.Locale, String> bodyMap,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setBodyMap(bodyMap, defaultLocale);
} | java | @Override
public void setBodyMap(Map<java.util.Locale, String> bodyMap,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setBodyMap(bodyMap, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setBodyMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"bodyMap",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_commerceNotificationTemplate",
".",
"setBodyMap",
"(",
... | Sets the localized bodies of this commerce notification template from the map of locales and localized bodies, and sets the default locale.
@param bodyMap the locales and localized bodies of this commerce notification template
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"bodies",
"of",
"this",
"commerce",
"notification",
"template",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"bodies",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L742-L746 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setFromName | @Override
public void setFromName(String fromName, java.util.Locale locale) {
_commerceNotificationTemplate.setFromName(fromName, locale);
} | java | @Override
public void setFromName(String fromName, java.util.Locale locale) {
_commerceNotificationTemplate.setFromName(fromName, locale);
} | [
"@",
"Override",
"public",
"void",
"setFromName",
"(",
"String",
"fromName",
",",
"java",
".",
"util",
".",
"Locale",
"locale",
")",
"{",
"_commerceNotificationTemplate",
".",
"setFromName",
"(",
"fromName",
",",
"locale",
")",
";",
"}"
] | Sets the localized from name of this commerce notification template in the language.
@param fromName the localized from name of this commerce notification template
@param locale the locale of the language | [
"Sets",
"the",
"localized",
"from",
"name",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L856-L859 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setFromNameMap | @Override
public void setFromNameMap(Map<java.util.Locale, String> fromNameMap) {
_commerceNotificationTemplate.setFromNameMap(fromNameMap);
} | java | @Override
public void setFromNameMap(Map<java.util.Locale, String> fromNameMap) {
_commerceNotificationTemplate.setFromNameMap(fromNameMap);
} | [
"@",
"Override",
"public",
"void",
"setFromNameMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"fromNameMap",
")",
"{",
"_commerceNotificationTemplate",
".",
"setFromNameMap",
"(",
"fromNameMap",
")",
";",
"}"
] | Sets the localized from names of this commerce notification template from the map of locales and localized from names.
@param fromNameMap the locales and localized from names of this commerce notification template | [
"Sets",
"the",
"localized",
"from",
"names",
"of",
"this",
"commerce",
"notification",
"template",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"from",
"names",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L885-L888 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setFromNameMap | @Override
public void setFromNameMap(Map<java.util.Locale, String> fromNameMap,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setFromNameMap(fromNameMap, defaultLocale);
} | java | @Override
public void setFromNameMap(Map<java.util.Locale, String> fromNameMap,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setFromNameMap(fromNameMap, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setFromNameMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"fromNameMap",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_commerceNotificationTemplate",
".",
"setFromNameM... | Sets the localized from names of this commerce notification template from the map of locales and localized from names, and sets the default locale.
@param fromNameMap the locales and localized from names of this commerce notification template
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"from",
"names",
"of",
"this",
"commerce",
"notification",
"template",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"from",
"names",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L896-L900 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setSubject | @Override
public void setSubject(String subject, java.util.Locale locale) {
_commerceNotificationTemplate.setSubject(subject, locale);
} | java | @Override
public void setSubject(String subject, java.util.Locale locale) {
_commerceNotificationTemplate.setSubject(subject, locale);
} | [
"@",
"Override",
"public",
"void",
"setSubject",
"(",
"String",
"subject",
",",
"java",
".",
"util",
".",
"Locale",
"locale",
")",
"{",
"_commerceNotificationTemplate",
".",
"setSubject",
"(",
"subject",
",",
"locale",
")",
";",
"}"
] | Sets the localized subject of this commerce notification template in the language.
@param subject the localized subject of this commerce notification template
@param locale the locale of the language | [
"Sets",
"the",
"localized",
"subject",
"of",
"this",
"commerce",
"notification",
"template",
"in",
"the",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L968-L971 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setSubjectMap | @Override
public void setSubjectMap(Map<java.util.Locale, String> subjectMap) {
_commerceNotificationTemplate.setSubjectMap(subjectMap);
} | java | @Override
public void setSubjectMap(Map<java.util.Locale, String> subjectMap) {
_commerceNotificationTemplate.setSubjectMap(subjectMap);
} | [
"@",
"Override",
"public",
"void",
"setSubjectMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"subjectMap",
")",
"{",
"_commerceNotificationTemplate",
".",
"setSubjectMap",
"(",
"subjectMap",
")",
";",
"}"
] | Sets the localized subjects of this commerce notification template from the map of locales and localized subjects.
@param subjectMap the locales and localized subjects of this commerce notification template | [
"Sets",
"the",
"localized",
"subjects",
"of",
"this",
"commerce",
"notification",
"template",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"subjects",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L996-L999 | train |
liferay/com-liferay-commerce | commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java | CommerceNotificationTemplateWrapper.setSubjectMap | @Override
public void setSubjectMap(Map<java.util.Locale, String> subjectMap,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setSubjectMap(subjectMap, defaultLocale);
} | java | @Override
public void setSubjectMap(Map<java.util.Locale, String> subjectMap,
java.util.Locale defaultLocale) {
_commerceNotificationTemplate.setSubjectMap(subjectMap, defaultLocale);
} | [
"@",
"Override",
"public",
"void",
"setSubjectMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"subjectMap",
",",
"java",
".",
"util",
".",
"Locale",
"defaultLocale",
")",
"{",
"_commerceNotificationTemplate",
".",
"setSubjectMap"... | Sets the localized subjects of this commerce notification template from the map of locales and localized subjects, and sets the default locale.
@param subjectMap the locales and localized subjects of this commerce notification template
@param defaultLocale the default locale | [
"Sets",
"the",
"localized",
"subjects",
"of",
"this",
"commerce",
"notification",
"template",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"subjects",
"and",
"sets",
"the",
"default",
"locale",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-api/src/main/java/com/liferay/commerce/notification/model/CommerceNotificationTemplateWrapper.java#L1007-L1011 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/impl/CommercePriceListLocalServiceImpl.java | CommercePriceListLocalServiceImpl.upsertCommercePriceList | @Indexable(type = IndexableType.REINDEX)
@Override
public CommercePriceList upsertCommercePriceList(
long commercePriceListId, long commerceCurrencyId,
long parentCommercePriceListId, String name, double priority,
int displayDateMonth, int displayDateDay, int displayDateYear,
int displayDateHour, int displayDateMinute, int expirationDateMonth,
int expirationDateDay, int expirationDateYear,
int expirationDateHour, int expirationDateMinute,
String externalReferenceCode, boolean neverExpire,
ServiceContext serviceContext)
throws PortalException {
// Update
if (commercePriceListId > 0) {
try {
return updateCommercePriceList(
commercePriceListId, commerceCurrencyId,
parentCommercePriceListId, name, priority, displayDateMonth,
displayDateDay, displayDateYear, displayDateHour,
displayDateMinute, expirationDateMonth, expirationDateDay,
expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, serviceContext);
}
catch (NoSuchPriceListException nsple) {
if (_log.isDebugEnabled()) {
_log.debug(
"Unable to find price list with ID: " +
commercePriceListId);
}
}
}
if (Validator.isNotNull(externalReferenceCode)) {
CommercePriceList commercePriceList =
commercePriceListPersistence.fetchByC_ERC(
serviceContext.getCompanyId(), externalReferenceCode);
if (commercePriceList != null) {
return updateCommercePriceList(
commercePriceList.getCommercePriceListId(),
commerceCurrencyId, parentCommercePriceListId, name,
priority, displayDateMonth, displayDateDay, displayDateYear,
displayDateHour, displayDateMinute, expirationDateMonth,
expirationDateDay, expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, serviceContext);
}
}
// Add
return addCommercePriceList(
commerceCurrencyId, parentCommercePriceListId, name, priority,
displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
displayDateMinute, expirationDateMonth, expirationDateDay,
expirationDateYear, expirationDateHour, expirationDateMinute,
externalReferenceCode, neverExpire, serviceContext);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommercePriceList upsertCommercePriceList(
long commercePriceListId, long commerceCurrencyId,
long parentCommercePriceListId, String name, double priority,
int displayDateMonth, int displayDateDay, int displayDateYear,
int displayDateHour, int displayDateMinute, int expirationDateMonth,
int expirationDateDay, int expirationDateYear,
int expirationDateHour, int expirationDateMinute,
String externalReferenceCode, boolean neverExpire,
ServiceContext serviceContext)
throws PortalException {
// Update
if (commercePriceListId > 0) {
try {
return updateCommercePriceList(
commercePriceListId, commerceCurrencyId,
parentCommercePriceListId, name, priority, displayDateMonth,
displayDateDay, displayDateYear, displayDateHour,
displayDateMinute, expirationDateMonth, expirationDateDay,
expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, serviceContext);
}
catch (NoSuchPriceListException nsple) {
if (_log.isDebugEnabled()) {
_log.debug(
"Unable to find price list with ID: " +
commercePriceListId);
}
}
}
if (Validator.isNotNull(externalReferenceCode)) {
CommercePriceList commercePriceList =
commercePriceListPersistence.fetchByC_ERC(
serviceContext.getCompanyId(), externalReferenceCode);
if (commercePriceList != null) {
return updateCommercePriceList(
commercePriceList.getCommercePriceListId(),
commerceCurrencyId, parentCommercePriceListId, name,
priority, displayDateMonth, displayDateDay, displayDateYear,
displayDateHour, displayDateMinute, expirationDateMonth,
expirationDateDay, expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, serviceContext);
}
}
// Add
return addCommercePriceList(
commerceCurrencyId, parentCommercePriceListId, name, priority,
displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
displayDateMinute, expirationDateMonth, expirationDateDay,
expirationDateYear, expirationDateHour, expirationDateMinute,
externalReferenceCode, neverExpire, serviceContext);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommercePriceList",
"upsertCommercePriceList",
"(",
"long",
"commercePriceListId",
",",
"long",
"commerceCurrencyId",
",",
"long",
"parentCommercePriceListId",
",",
"... | This method is used to insert a new CommercePriceList or update an
existing one
@param commercePriceListId - <b>Only</b> used when updating an entity;
the matching one will be updated
@param commerceCurrencyId
@param parentCommercePriceListId
@param name
@param priority
@param displayDateMonth
@param displayDateDay
@param displayDateYear
@param displayDateHour
@param displayDateMinute
@param expirationDateMonth
@param expirationDateDay
@param expirationDateYear
@param expirationDateHour
@param expirationDateMinute
@param externalReferenceCode - The external identifier code from a 3rd
party system to be able to locate the same entity in the portal
<b>Only</b> used when updating an entity; the first entity with a
matching reference code one will be updated
@param neverExpire
@param serviceContext
@return
@throws PortalException | [
"This",
"method",
"is",
"used",
"to",
"insert",
"a",
"new",
"CommercePriceList",
"or",
"update",
"an",
"existing",
"one"
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/impl/CommercePriceListLocalServiceImpl.java#L612-L670 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPRuleLocalServiceBaseImpl.java | CPRuleLocalServiceBaseImpl.updateCPRule | @Indexable(type = IndexableType.REINDEX)
@Override
public CPRule updateCPRule(CPRule cpRule) {
return cpRulePersistence.update(cpRule);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CPRule updateCPRule(CPRule cpRule) {
return cpRulePersistence.update(cpRule);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CPRule",
"updateCPRule",
"(",
"CPRule",
"cpRule",
")",
"{",
"return",
"cpRulePersistence",
".",
"update",
"(",
"cpRule",
")",
";",
"}"
] | Updates the cp rule in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
@param cpRule the cp rule
@return the cp rule that was updated | [
"Updates",
"the",
"cp",
"rule",
"in",
"the",
"database",
"or",
"adds",
"it",
"if",
"it",
"does",
"not",
"yet",
"exist",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPRuleLocalServiceBaseImpl.java#L333-L337 | train |
liferay/com-liferay-commerce | commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java | CommerceTaxFixedRateLocalServiceBaseImpl.deleteCommerceTaxFixedRate | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceTaxFixedRate deleteCommerceTaxFixedRate(
long commerceTaxFixedRateId) throws PortalException {
return commerceTaxFixedRatePersistence.remove(commerceTaxFixedRateId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceTaxFixedRate deleteCommerceTaxFixedRate(
long commerceTaxFixedRateId) throws PortalException {
return commerceTaxFixedRatePersistence.remove(commerceTaxFixedRateId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceTaxFixedRate",
"deleteCommerceTaxFixedRate",
"(",
"long",
"commerceTaxFixedRateId",
")",
"throws",
"PortalException",
"{",
"return",
"commerceTaxFixedRatePersisten... | Deletes the commerce tax fixed rate with the primary key from the database. Also notifies the appropriate model listeners.
@param commerceTaxFixedRateId the primary key of the commerce tax fixed rate
@return the commerce tax fixed rate that was removed
@throws PortalException if a commerce tax fixed rate with the primary key could not be found | [
"Deletes",
"the",
"commerce",
"tax",
"fixed",
"rate",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java#L114-L119 | train |
liferay/com-liferay-commerce | commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java | CommerceTaxFixedRateLocalServiceBaseImpl.deleteCommerceTaxFixedRate | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceTaxFixedRate deleteCommerceTaxFixedRate(
CommerceTaxFixedRate commerceTaxFixedRate) {
return commerceTaxFixedRatePersistence.remove(commerceTaxFixedRate);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceTaxFixedRate deleteCommerceTaxFixedRate(
CommerceTaxFixedRate commerceTaxFixedRate) {
return commerceTaxFixedRatePersistence.remove(commerceTaxFixedRate);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceTaxFixedRate",
"deleteCommerceTaxFixedRate",
"(",
"CommerceTaxFixedRate",
"commerceTaxFixedRate",
")",
"{",
"return",
"commerceTaxFixedRatePersistence",
".",
"remo... | Deletes the commerce tax fixed rate from the database. Also notifies the appropriate model listeners.
@param commerceTaxFixedRate the commerce tax fixed rate
@return the commerce tax fixed rate that was removed | [
"Deletes",
"the",
"commerce",
"tax",
"fixed",
"rate",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java#L127-L132 | train |
liferay/com-liferay-commerce | commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java | CommerceTaxFixedRateLocalServiceBaseImpl.getCommerceTaxFixedRateAddressRelLocalService | public com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelLocalService getCommerceTaxFixedRateAddressRelLocalService() {
return commerceTaxFixedRateAddressRelLocalService;
} | java | public com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelLocalService getCommerceTaxFixedRateAddressRelLocalService() {
return commerceTaxFixedRateAddressRelLocalService;
} | [
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"tax",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceTaxFixedRateAddressRelLocalService",
"getCommerceTaxFixedRateAddressRelLocalService",
"(",
")",
"{",
"return",
"commerceTaxFixedRateAddressRelLocalServic... | Returns the commerce tax fixed rate address rel local service.
@return the commerce tax fixed rate address rel local service | [
"Returns",
"the",
"commerce",
"tax",
"fixed",
"rate",
"address",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java#L372-L374 | train |
liferay/com-liferay-commerce | commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java | CommerceTaxFixedRateLocalServiceBaseImpl.setCommerceTaxFixedRateAddressRelLocalService | public void setCommerceTaxFixedRateAddressRelLocalService(
com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelLocalService commerceTaxFixedRateAddressRelLocalService) {
this.commerceTaxFixedRateAddressRelLocalService = commerceTaxFixedRateAddressRelLocalService;
} | java | public void setCommerceTaxFixedRateAddressRelLocalService(
com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelLocalService commerceTaxFixedRateAddressRelLocalService) {
this.commerceTaxFixedRateAddressRelLocalService = commerceTaxFixedRateAddressRelLocalService;
} | [
"public",
"void",
"setCommerceTaxFixedRateAddressRelLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"tax",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceTaxFixedRateAddressRelLocalService",
"commerceTaxFixedRateAddressRelLocalService",
")",
"{"... | Sets the commerce tax fixed rate address rel local service.
@param commerceTaxFixedRateAddressRelLocalService the commerce tax fixed rate address rel local service | [
"Sets",
"the",
"commerce",
"tax",
"fixed",
"rate",
"address",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-engine-fixed-service/src/main/java/com/liferay/commerce/tax/engine/fixed/service/base/CommerceTaxFixedRateLocalServiceBaseImpl.java#L381-L384 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPDisplayLayoutLocalServiceWrapper.java | CPDisplayLayoutLocalServiceWrapper.getCPDisplayLayout | @Override
public com.liferay.commerce.product.model.CPDisplayLayout getCPDisplayLayout(
long CPDisplayLayoutId)
throws com.liferay.portal.kernel.exception.PortalException {
return _cpDisplayLayoutLocalService.getCPDisplayLayout(CPDisplayLayoutId);
} | java | @Override
public com.liferay.commerce.product.model.CPDisplayLayout getCPDisplayLayout(
long CPDisplayLayoutId)
throws com.liferay.portal.kernel.exception.PortalException {
return _cpDisplayLayoutLocalService.getCPDisplayLayout(CPDisplayLayoutId);
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"product",
".",
"model",
".",
"CPDisplayLayout",
"getCPDisplayLayout",
"(",
"long",
"CPDisplayLayoutId",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"exception... | Returns the cp display layout with the primary key.
@param CPDisplayLayoutId the primary key of the cp display layout
@return the cp display layout
@throws PortalException if a cp display layout with the primary key could not be found | [
"Returns",
"the",
"cp",
"display",
"layout",
"with",
"the",
"primary",
"key",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPDisplayLayoutLocalServiceWrapper.java#L234-L239 | train |
liferay/com-liferay-commerce | commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java | CommerceTaxMethodPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceTaxMethod commerceTaxMethod) {
entityCache.putResult(CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class, commerceTaxMethod.getPrimaryKey(),
commerceTaxMethod);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
new Object[] {
commerceTaxMethod.getGroupId(), commerceTaxMethod.getEngineKey()
}, commerceTaxMethod);
commerceTaxMethod.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceTaxMethod commerceTaxMethod) {
entityCache.putResult(CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class, commerceTaxMethod.getPrimaryKey(),
commerceTaxMethod);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
new Object[] {
commerceTaxMethod.getGroupId(), commerceTaxMethod.getEngineKey()
}, commerceTaxMethod);
commerceTaxMethod.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceTaxMethod",
"commerceTaxMethod",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceTaxMethodModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceTaxMethodImpl",
".",
"class",
",",
"commerceTaxMethod"... | Caches the commerce tax method in the entity cache if it is enabled.
@param commerceTaxMethod the commerce tax method | [
"Caches",
"the",
"commerce",
"tax",
"method",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java#L1426-L1438 | train |
liferay/com-liferay-commerce | commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java | CommerceTaxMethodPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CommerceTaxMethod> commerceTaxMethods) {
for (CommerceTaxMethod commerceTaxMethod : commerceTaxMethods) {
if (entityCache.getResult(
CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class,
commerceTaxMethod.getPrimaryKey()) == null) {
cacheResult(commerceTaxMethod);
}
else {
commerceTaxMethod.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CommerceTaxMethod> commerceTaxMethods) {
for (CommerceTaxMethod commerceTaxMethod : commerceTaxMethods) {
if (entityCache.getResult(
CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class,
commerceTaxMethod.getPrimaryKey()) == null) {
cacheResult(commerceTaxMethod);
}
else {
commerceTaxMethod.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceTaxMethod",
">",
"commerceTaxMethods",
")",
"{",
"for",
"(",
"CommerceTaxMethod",
"commerceTaxMethod",
":",
"commerceTaxMethods",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"("... | Caches the commerce tax methods in the entity cache if it is enabled.
@param commerceTaxMethods the commerce tax methods | [
"Caches",
"the",
"commerce",
"tax",
"methods",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java#L1445-L1458 | train |
liferay/com-liferay-commerce | commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java | CommerceTaxMethodPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceTaxMethodImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceTaxMethodImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceTaxMethodImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
... | Clears the cache for all commerce tax methods.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"tax",
"methods",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java#L1467-L1474 | train |
liferay/com-liferay-commerce | commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java | CommerceTaxMethodPersistenceImpl.clearCache | @Override
public void clearCache(CommerceTaxMethod commerceTaxMethod) {
entityCache.removeResult(CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class, commerceTaxMethod.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceTaxMethodModelImpl)commerceTaxMethod,
true);
} | java | @Override
public void clearCache(CommerceTaxMethod commerceTaxMethod) {
entityCache.removeResult(CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class, commerceTaxMethod.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceTaxMethodModelImpl)commerceTaxMethod,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceTaxMethod",
"commerceTaxMethod",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceTaxMethodModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceTaxMethodImpl",
".",
"class",
",",
"commerceTaxMetho... | Clears the cache for the commerce tax method.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"tax",
"method",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java#L1483-L1493 | train |
liferay/com-liferay-commerce | commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java | CommerceTaxMethodPersistenceImpl.findAll | @Override
public List<CommerceTaxMethod> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceTaxMethod> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceTaxMethod",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce tax methods.
@return the commerce tax methods | [
"Returns",
"all",
"the",
"commerce",
"tax",
"methods",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-tax-service/src/main/java/com/liferay/commerce/tax/service/persistence/impl/CommerceTaxMethodPersistenceImpl.java#L1989-L1992 | train |
liferay/com-liferay-commerce | commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountOrganizationRelWrapper.java | CommerceAccountOrganizationRelWrapper.getPrimaryKey | @Override
public com.liferay.commerce.account.service.persistence.CommerceAccountOrganizationRelPK getPrimaryKey() {
return _commerceAccountOrganizationRel.getPrimaryKey();
} | java | @Override
public com.liferay.commerce.account.service.persistence.CommerceAccountOrganizationRelPK getPrimaryKey() {
return _commerceAccountOrganizationRel.getPrimaryKey();
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"account",
".",
"service",
".",
"persistence",
".",
"CommerceAccountOrganizationRelPK",
"getPrimaryKey",
"(",
")",
"{",
"return",
"_commerceAccountOrganizationRel",
".",
"getPrimaryKey",
"(",
")... | Returns the primary key of this commerce account organization rel.
@return the primary key of this commerce account organization rel | [
"Returns",
"the",
"primary",
"key",
"of",
"this",
"commerce",
"account",
"organization",
"rel",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountOrganizationRelWrapper.java#L196-L199 | train |
liferay/com-liferay-commerce | commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountOrganizationRelWrapper.java | CommerceAccountOrganizationRelWrapper.setPrimaryKey | @Override
public void setPrimaryKey(
com.liferay.commerce.account.service.persistence.CommerceAccountOrganizationRelPK primaryKey) {
_commerceAccountOrganizationRel.setPrimaryKey(primaryKey);
} | java | @Override
public void setPrimaryKey(
com.liferay.commerce.account.service.persistence.CommerceAccountOrganizationRelPK primaryKey) {
_commerceAccountOrganizationRel.setPrimaryKey(primaryKey);
} | [
"@",
"Override",
"public",
"void",
"setPrimaryKey",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"account",
".",
"service",
".",
"persistence",
".",
"CommerceAccountOrganizationRelPK",
"primaryKey",
")",
"{",
"_commerceAccountOrganizationRel",
".",
"setPrimaryKey... | Sets the primary key of this commerce account organization rel.
@param primaryKey the primary key of this commerce account organization rel | [
"Sets",
"the",
"primary",
"key",
"of",
"this",
"commerce",
"account",
"organization",
"rel",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-account-api/src/main/java/com/liferay/commerce/account/model/CommerceAccountOrganizationRelWrapper.java#L342-L346 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java | CPFriendlyURLEntryPersistenceImpl.cacheResult | @Override
public void cacheResult(CPFriendlyURLEntry cpFriendlyURLEntry) {
entityCache.putResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
CPFriendlyURLEntryImpl.class, cpFriendlyURLEntry.getPrimaryKey(),
cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
cpFriendlyURLEntry.getUuid(), cpFriendlyURLEntry.getGroupId()
}, cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C_L_U,
new Object[] {
cpFriendlyURLEntry.getGroupId(),
cpFriendlyURLEntry.getClassNameId(),
cpFriendlyURLEntry.getLanguageId(),
cpFriendlyURLEntry.getUrlTitle()
}, cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C_C_L_U,
new Object[] {
cpFriendlyURLEntry.getGroupId(),
cpFriendlyURLEntry.getClassNameId(),
cpFriendlyURLEntry.getClassPK(),
cpFriendlyURLEntry.getLanguageId(),
cpFriendlyURLEntry.getUrlTitle()
}, cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C_C_L_M,
new Object[] {
cpFriendlyURLEntry.getGroupId(),
cpFriendlyURLEntry.getClassNameId(),
cpFriendlyURLEntry.getClassPK(),
cpFriendlyURLEntry.getLanguageId(), cpFriendlyURLEntry.isMain()
}, cpFriendlyURLEntry);
cpFriendlyURLEntry.resetOriginalValues();
} | java | @Override
public void cacheResult(CPFriendlyURLEntry cpFriendlyURLEntry) {
entityCache.putResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
CPFriendlyURLEntryImpl.class, cpFriendlyURLEntry.getPrimaryKey(),
cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
cpFriendlyURLEntry.getUuid(), cpFriendlyURLEntry.getGroupId()
}, cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C_L_U,
new Object[] {
cpFriendlyURLEntry.getGroupId(),
cpFriendlyURLEntry.getClassNameId(),
cpFriendlyURLEntry.getLanguageId(),
cpFriendlyURLEntry.getUrlTitle()
}, cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C_C_L_U,
new Object[] {
cpFriendlyURLEntry.getGroupId(),
cpFriendlyURLEntry.getClassNameId(),
cpFriendlyURLEntry.getClassPK(),
cpFriendlyURLEntry.getLanguageId(),
cpFriendlyURLEntry.getUrlTitle()
}, cpFriendlyURLEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C_C_L_M,
new Object[] {
cpFriendlyURLEntry.getGroupId(),
cpFriendlyURLEntry.getClassNameId(),
cpFriendlyURLEntry.getClassPK(),
cpFriendlyURLEntry.getLanguageId(), cpFriendlyURLEntry.isMain()
}, cpFriendlyURLEntry);
cpFriendlyURLEntry.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPFriendlyURLEntry",
"cpFriendlyURLEntry",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPFriendlyURLEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPFriendlyURLEntryImpl",
".",
"class",
",",
"cpFriendlyURLE... | Caches the cp friendly url entry in the entity cache if it is enabled.
@param cpFriendlyURLEntry the cp friendly url entry | [
"Caches",
"the",
"cp",
"friendly",
"url",
"entry",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java#L4969-L5006 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java | CPFriendlyURLEntryPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CPFriendlyURLEntry> cpFriendlyURLEntries) {
for (CPFriendlyURLEntry cpFriendlyURLEntry : cpFriendlyURLEntries) {
if (entityCache.getResult(
CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
CPFriendlyURLEntryImpl.class,
cpFriendlyURLEntry.getPrimaryKey()) == null) {
cacheResult(cpFriendlyURLEntry);
}
else {
cpFriendlyURLEntry.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CPFriendlyURLEntry> cpFriendlyURLEntries) {
for (CPFriendlyURLEntry cpFriendlyURLEntry : cpFriendlyURLEntries) {
if (entityCache.getResult(
CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
CPFriendlyURLEntryImpl.class,
cpFriendlyURLEntry.getPrimaryKey()) == null) {
cacheResult(cpFriendlyURLEntry);
}
else {
cpFriendlyURLEntry.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPFriendlyURLEntry",
">",
"cpFriendlyURLEntries",
")",
"{",
"for",
"(",
"CPFriendlyURLEntry",
"cpFriendlyURLEntry",
":",
"cpFriendlyURLEntries",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult"... | Caches the cp friendly url entries in the entity cache if it is enabled.
@param cpFriendlyURLEntries the cp friendly url entries | [
"Caches",
"the",
"cp",
"friendly",
"url",
"entries",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java#L5013-L5026 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java | CPFriendlyURLEntryPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CPFriendlyURLEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CPFriendlyURLEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPFriendlyURLEntryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
... | Clears the cache for all cp friendly url entries.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"friendly",
"url",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java#L5035-L5042 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java | CPFriendlyURLEntryPersistenceImpl.clearCache | @Override
public void clearCache(CPFriendlyURLEntry cpFriendlyURLEntry) {
entityCache.removeResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
CPFriendlyURLEntryImpl.class, cpFriendlyURLEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPFriendlyURLEntryModelImpl)cpFriendlyURLEntry,
true);
} | java | @Override
public void clearCache(CPFriendlyURLEntry cpFriendlyURLEntry) {
entityCache.removeResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
CPFriendlyURLEntryImpl.class, cpFriendlyURLEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPFriendlyURLEntryModelImpl)cpFriendlyURLEntry,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPFriendlyURLEntry",
"cpFriendlyURLEntry",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPFriendlyURLEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPFriendlyURLEntryImpl",
".",
"class",
",",
"cpFriendlyUR... | Clears the cache for the cp friendly url entry.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"friendly",
"url",
"entry",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java#L5051-L5061 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java | CPFriendlyURLEntryPersistenceImpl.findAll | @Override
public List<CPFriendlyURLEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPFriendlyURLEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPFriendlyURLEntry",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp friendly url entries.
@return the cp friendly url entries | [
"Returns",
"all",
"the",
"cp",
"friendly",
"url",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPFriendlyURLEntryPersistenceImpl.java#L5818-L5821 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java | CommerceAvailabilityEstimatePersistenceImpl.cacheResult | @Override
public void cacheResult(
CommerceAvailabilityEstimate commerceAvailabilityEstimate) {
entityCache.putResult(CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CommerceAvailabilityEstimateImpl.class,
commerceAvailabilityEstimate.getPrimaryKey(),
commerceAvailabilityEstimate);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceAvailabilityEstimate.getUuid(),
commerceAvailabilityEstimate.getGroupId()
}, commerceAvailabilityEstimate);
commerceAvailabilityEstimate.resetOriginalValues();
} | java | @Override
public void cacheResult(
CommerceAvailabilityEstimate commerceAvailabilityEstimate) {
entityCache.putResult(CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CommerceAvailabilityEstimateImpl.class,
commerceAvailabilityEstimate.getPrimaryKey(),
commerceAvailabilityEstimate);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceAvailabilityEstimate.getUuid(),
commerceAvailabilityEstimate.getGroupId()
}, commerceAvailabilityEstimate);
commerceAvailabilityEstimate.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceAvailabilityEstimate",
"commerceAvailabilityEstimate",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceAvailabilityEstimateModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceAvailabilityEstimateImpl",
... | Caches the commerce availability estimate in the entity cache if it is enabled.
@param commerceAvailabilityEstimate the commerce availability estimate | [
"Caches",
"the",
"commerce",
"availability",
"estimate",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java#L2053-L2068 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java | CommerceAvailabilityEstimatePersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) {
for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates) {
if (entityCache.getResult(
CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CommerceAvailabilityEstimateImpl.class,
commerceAvailabilityEstimate.getPrimaryKey()) == null) {
cacheResult(commerceAvailabilityEstimate);
}
else {
commerceAvailabilityEstimate.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) {
for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates) {
if (entityCache.getResult(
CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CommerceAvailabilityEstimateImpl.class,
commerceAvailabilityEstimate.getPrimaryKey()) == null) {
cacheResult(commerceAvailabilityEstimate);
}
else {
commerceAvailabilityEstimate.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceAvailabilityEstimate",
">",
"commerceAvailabilityEstimates",
")",
"{",
"for",
"(",
"CommerceAvailabilityEstimate",
"commerceAvailabilityEstimate",
":",
"commerceAvailabilityEstimates",
")",
"{",
"i... | Caches the commerce availability estimates in the entity cache if it is enabled.
@param commerceAvailabilityEstimates the commerce availability estimates | [
"Caches",
"the",
"commerce",
"availability",
"estimates",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java#L2075-L2089 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java | CommerceAvailabilityEstimatePersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceAvailabilityEstimateImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceAvailabilityEstimateImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceAvailabilityEstimateImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"cle... | Clears the cache for all commerce availability estimates.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"availability",
"estimates",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java#L2098-L2105 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java | CommerceAvailabilityEstimatePersistenceImpl.findAll | @Override
public List<CommerceAvailabilityEstimate> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceAvailabilityEstimate> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceAvailabilityEstimate",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce availability estimates.
@return the commerce availability estimates | [
"Returns",
"all",
"the",
"commerce",
"availability",
"estimates",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAvailabilityEstimatePersistenceImpl.java#L2678-L2681 | train |
liferay/com-liferay-commerce | commerce-payment-service/src/main/java/com/liferay/commerce/payment/service/base/CommercePaymentMethodGroupRelServiceBaseImpl.java | CommercePaymentMethodGroupRelServiceBaseImpl.setCommercePaymentMethodGroupRelLocalService | public void setCommercePaymentMethodGroupRelLocalService(
com.liferay.commerce.payment.service.CommercePaymentMethodGroupRelLocalService commercePaymentMethodGroupRelLocalService) {
this.commercePaymentMethodGroupRelLocalService = commercePaymentMethodGroupRelLocalService;
} | java | public void setCommercePaymentMethodGroupRelLocalService(
com.liferay.commerce.payment.service.CommercePaymentMethodGroupRelLocalService commercePaymentMethodGroupRelLocalService) {
this.commercePaymentMethodGroupRelLocalService = commercePaymentMethodGroupRelLocalService;
} | [
"public",
"void",
"setCommercePaymentMethodGroupRelLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"payment",
".",
"service",
".",
"CommercePaymentMethodGroupRelLocalService",
"commercePaymentMethodGroupRelLocalService",
")",
"{",
"this",
".",
"commercePaymen... | Sets the commerce payment method group rel local service.
@param commercePaymentMethodGroupRelLocalService the commerce payment method group rel local service | [
"Sets",
"the",
"commerce",
"payment",
"method",
"group",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-payment-service/src/main/java/com/liferay/commerce/payment/service/base/CommercePaymentMethodGroupRelServiceBaseImpl.java#L72-L75 | train |
liferay/com-liferay-commerce | commerce-payment-service/src/main/java/com/liferay/commerce/payment/service/base/CommercePaymentMethodGroupRelServiceBaseImpl.java | CommercePaymentMethodGroupRelServiceBaseImpl.setImageLocalService | public void setImageLocalService(
com.liferay.portal.kernel.service.ImageLocalService imageLocalService) {
this.imageLocalService = imageLocalService;
} | java | public void setImageLocalService(
com.liferay.portal.kernel.service.ImageLocalService imageLocalService) {
this.imageLocalService = imageLocalService;
} | [
"public",
"void",
"setImageLocalService",
"(",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"service",
".",
"ImageLocalService",
"imageLocalService",
")",
"{",
"this",
".",
"imageLocalService",
"=",
"imageLocalService",
";",
"}"
] | Sets the image local service.
@param imageLocalService the image local service | [
"Sets",
"the",
"image",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-payment-service/src/main/java/com/liferay/commerce/payment/service/base/CommercePaymentMethodGroupRelServiceBaseImpl.java#L205-L208 | train |
liferay/com-liferay-commerce | commerce-payment-service/src/main/java/com/liferay/commerce/payment/service/base/CommercePaymentMethodGroupRelServiceBaseImpl.java | CommercePaymentMethodGroupRelServiceBaseImpl.setImageService | public void setImageService(
com.liferay.portal.kernel.service.ImageService imageService) {
this.imageService = imageService;
} | java | public void setImageService(
com.liferay.portal.kernel.service.ImageService imageService) {
this.imageService = imageService;
} | [
"public",
"void",
"setImageService",
"(",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"service",
".",
"ImageService",
"imageService",
")",
"{",
"this",
".",
"imageService",
"=",
"imageService",
";",
"}"
] | Sets the image remote service.
@param imageService the image remote service | [
"Sets",
"the",
"image",
"remote",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-payment-service/src/main/java/com/liferay/commerce/payment/service/base/CommercePaymentMethodGroupRelServiceBaseImpl.java#L224-L227 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java | CommerceAddressRestrictionPersistenceImpl.cacheResult | @Override
public void cacheResult(
CommerceAddressRestriction commerceAddressRestriction) {
entityCache.putResult(CommerceAddressRestrictionModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressRestrictionImpl.class,
commerceAddressRestriction.getPrimaryKey(),
commerceAddressRestriction);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_C,
new Object[] {
commerceAddressRestriction.getClassNameId(),
commerceAddressRestriction.getClassPK(),
commerceAddressRestriction.getCommerceCountryId()
}, commerceAddressRestriction);
commerceAddressRestriction.resetOriginalValues();
} | java | @Override
public void cacheResult(
CommerceAddressRestriction commerceAddressRestriction) {
entityCache.putResult(CommerceAddressRestrictionModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressRestrictionImpl.class,
commerceAddressRestriction.getPrimaryKey(),
commerceAddressRestriction);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_C,
new Object[] {
commerceAddressRestriction.getClassNameId(),
commerceAddressRestriction.getClassPK(),
commerceAddressRestriction.getCommerceCountryId()
}, commerceAddressRestriction);
commerceAddressRestriction.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceAddressRestriction",
"commerceAddressRestriction",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceAddressRestrictionModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceAddressRestrictionImpl",
".",
"... | Caches the commerce address restriction in the entity cache if it is enabled.
@param commerceAddressRestriction the commerce address restriction | [
"Caches",
"the",
"commerce",
"address",
"restriction",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java#L1441-L1457 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java | CommerceAddressRestrictionPersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommerceAddressRestriction> commerceAddressRestrictions) {
for (CommerceAddressRestriction commerceAddressRestriction : commerceAddressRestrictions) {
if (entityCache.getResult(
CommerceAddressRestrictionModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressRestrictionImpl.class,
commerceAddressRestriction.getPrimaryKey()) == null) {
cacheResult(commerceAddressRestriction);
}
else {
commerceAddressRestriction.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommerceAddressRestriction> commerceAddressRestrictions) {
for (CommerceAddressRestriction commerceAddressRestriction : commerceAddressRestrictions) {
if (entityCache.getResult(
CommerceAddressRestrictionModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressRestrictionImpl.class,
commerceAddressRestriction.getPrimaryKey()) == null) {
cacheResult(commerceAddressRestriction);
}
else {
commerceAddressRestriction.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceAddressRestriction",
">",
"commerceAddressRestrictions",
")",
"{",
"for",
"(",
"CommerceAddressRestriction",
"commerceAddressRestriction",
":",
"commerceAddressRestrictions",
")",
"{",
"if",
"(",... | Caches the commerce address restrictions in the entity cache if it is enabled.
@param commerceAddressRestrictions the commerce address restrictions | [
"Caches",
"the",
"commerce",
"address",
"restrictions",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java#L1464-L1478 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java | CommerceAddressRestrictionPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceAddressRestrictionImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceAddressRestrictionImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceAddressRestrictionImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clear... | Clears the cache for all commerce address restrictions.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"address",
"restrictions",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java#L1487-L1494 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java | CommerceAddressRestrictionPersistenceImpl.findAll | @Override
public List<CommerceAddressRestriction> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceAddressRestriction> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceAddressRestriction",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce address restrictions.
@return the commerce address restrictions | [
"Returns",
"all",
"the",
"commerce",
"address",
"restrictions",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressRestrictionPersistenceImpl.java#L2030-L2033 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/base/CommerceOrderPaymentLocalServiceBaseImpl.java | CommerceOrderPaymentLocalServiceBaseImpl.deleteCommerceOrderPayment | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceOrderPayment deleteCommerceOrderPayment(
long commerceOrderPaymentId) throws PortalException {
return commerceOrderPaymentPersistence.remove(commerceOrderPaymentId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceOrderPayment deleteCommerceOrderPayment(
long commerceOrderPaymentId) throws PortalException {
return commerceOrderPaymentPersistence.remove(commerceOrderPaymentId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceOrderPayment",
"deleteCommerceOrderPayment",
"(",
"long",
"commerceOrderPaymentId",
")",
"throws",
"PortalException",
"{",
"return",
"commerceOrderPaymentPersisten... | Deletes the commerce order payment with the primary key from the database. Also notifies the appropriate model listeners.
@param commerceOrderPaymentId the primary key of the commerce order payment
@return the commerce order payment that was removed
@throws PortalException if a commerce order payment with the primary key could not be found | [
"Deletes",
"the",
"commerce",
"order",
"payment",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/base/CommerceOrderPaymentLocalServiceBaseImpl.java#L134-L139 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-service/src/main/java/com/liferay/commerce/product/type/virtual/service/base/CPDefinitionVirtualSettingServiceBaseImpl.java | CPDefinitionVirtualSettingServiceBaseImpl.getCPDefinitionVirtualSettingLocalService | public com.liferay.commerce.product.type.virtual.service.CPDefinitionVirtualSettingLocalService getCPDefinitionVirtualSettingLocalService() {
return cpDefinitionVirtualSettingLocalService;
} | java | public com.liferay.commerce.product.type.virtual.service.CPDefinitionVirtualSettingLocalService getCPDefinitionVirtualSettingLocalService() {
return cpDefinitionVirtualSettingLocalService;
} | [
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"product",
".",
"type",
".",
"virtual",
".",
"service",
".",
"CPDefinitionVirtualSettingLocalService",
"getCPDefinitionVirtualSettingLocalService",
"(",
")",
"{",
"return",
"cpDefinitionVirtualSettingLocalService",
";... | Returns the cp definition virtual setting local service.
@return the cp definition virtual setting local service | [
"Returns",
"the",
"cp",
"definition",
"virtual",
"setting",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-service/src/main/java/com/liferay/commerce/product/type/virtual/service/base/CPDefinitionVirtualSettingServiceBaseImpl.java#L64-L66 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-service/src/main/java/com/liferay/commerce/product/type/virtual/service/base/CPDefinitionVirtualSettingServiceBaseImpl.java | CPDefinitionVirtualSettingServiceBaseImpl.setCPDefinitionVirtualSettingLocalService | public void setCPDefinitionVirtualSettingLocalService(
com.liferay.commerce.product.type.virtual.service.CPDefinitionVirtualSettingLocalService cpDefinitionVirtualSettingLocalService) {
this.cpDefinitionVirtualSettingLocalService = cpDefinitionVirtualSettingLocalService;
} | java | public void setCPDefinitionVirtualSettingLocalService(
com.liferay.commerce.product.type.virtual.service.CPDefinitionVirtualSettingLocalService cpDefinitionVirtualSettingLocalService) {
this.cpDefinitionVirtualSettingLocalService = cpDefinitionVirtualSettingLocalService;
} | [
"public",
"void",
"setCPDefinitionVirtualSettingLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"product",
".",
"type",
".",
"virtual",
".",
"service",
".",
"CPDefinitionVirtualSettingLocalService",
"cpDefinitionVirtualSettingLocalService",
")",
"{",
"thi... | Sets the cp definition virtual setting local service.
@param cpDefinitionVirtualSettingLocalService the cp definition virtual setting local service | [
"Sets",
"the",
"cp",
"definition",
"virtual",
"setting",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-service/src/main/java/com/liferay/commerce/product/type/virtual/service/base/CPDefinitionVirtualSettingServiceBaseImpl.java#L73-L76 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPRuleUserSegmentRelLocalServiceBaseImpl.java | CPRuleUserSegmentRelLocalServiceBaseImpl.deleteCPRuleUserSegmentRel | @Indexable(type = IndexableType.DELETE)
@Override
public CPRuleUserSegmentRel deleteCPRuleUserSegmentRel(
long CPRuleUserSegmentRelId) throws PortalException {
return cpRuleUserSegmentRelPersistence.remove(CPRuleUserSegmentRelId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CPRuleUserSegmentRel deleteCPRuleUserSegmentRel(
long CPRuleUserSegmentRelId) throws PortalException {
return cpRuleUserSegmentRelPersistence.remove(CPRuleUserSegmentRelId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CPRuleUserSegmentRel",
"deleteCPRuleUserSegmentRel",
"(",
"long",
"CPRuleUserSegmentRelId",
")",
"throws",
"PortalException",
"{",
"return",
"cpRuleUserSegmentRelPersisten... | Deletes the cp rule user segment rel with the primary key from the database. Also notifies the appropriate model listeners.
@param CPRuleUserSegmentRelId the primary key of the cp rule user segment rel
@return the cp rule user segment rel that was removed
@throws PortalException if a cp rule user segment rel with the primary key could not be found | [
"Deletes",
"the",
"cp",
"rule",
"user",
"segment",
"rel",
"with",
"the",
"primary",
"key",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPRuleUserSegmentRelLocalServiceBaseImpl.java#L134-L139 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPAttachmentFileEntryWrapper.java | CPAttachmentFileEntryWrapper.getTitle | @Override
public String getTitle(String languageId, boolean useDefault) {
return _cpAttachmentFileEntry.getTitle(languageId, useDefault);
} | java | @Override
public String getTitle(String languageId, boolean useDefault) {
return _cpAttachmentFileEntry.getTitle(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getTitle",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_cpAttachmentFileEntry",
".",
"getTitle",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized title of this cp attachment file entry in the language, optionally using the default language if no localization exists for the requested language.
@param languageId the ID of the language
@param useDefault whether to use the default language if no localization exists for the requested language
@return the localized title of this cp attachment file entry | [
"Returns",
"the",
"localized",
"title",
"of",
"this",
"cp",
"attachment",
"file",
"entry",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPAttachmentFileEntryWrapper.java#L531-L534 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPAttachmentFileEntryWrapper.java | CPAttachmentFileEntryWrapper.setTitleMap | @Override
public void setTitleMap(Map<java.util.Locale, String> titleMap) {
_cpAttachmentFileEntry.setTitleMap(titleMap);
} | java | @Override
public void setTitleMap(Map<java.util.Locale, String> titleMap) {
_cpAttachmentFileEntry.setTitleMap(titleMap);
} | [
"@",
"Override",
"public",
"void",
"setTitleMap",
"(",
"Map",
"<",
"java",
".",
"util",
".",
"Locale",
",",
"String",
">",
"titleMap",
")",
"{",
"_cpAttachmentFileEntry",
".",
"setTitleMap",
"(",
"titleMap",
")",
";",
"}"
] | Sets the localized titles of this cp attachment file entry from the map of locales and localized titles.
@param titleMap the locales and localized titles of this cp attachment file entry | [
"Sets",
"the",
"localized",
"titles",
"of",
"this",
"cp",
"attachment",
"file",
"entry",
"from",
"the",
"map",
"of",
"locales",
"and",
"localized",
"titles",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPAttachmentFileEntryWrapper.java#L1004-L1007 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.