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-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPAttachmentFileEntryPersistenceImpl.java | CPAttachmentFileEntryPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CPAttachmentFileEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CPAttachmentFileEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPAttachmentFileEntryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache... | Clears the cache for all cp attachment file entries.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"attachment",
"file",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPAttachmentFileEntryPersistenceImpl.java#L5102-L5109 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPAttachmentFileEntryPersistenceImpl.java | CPAttachmentFileEntryPersistenceImpl.clearCache | @Override
public void clearCache(CPAttachmentFileEntry cpAttachmentFileEntry) {
entityCache.removeResult(CPAttachmentFileEntryModelImpl.ENTITY_CACHE_ENABLED,
CPAttachmentFileEntryImpl.class,
cpAttachmentFileEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPAttachmentFileEntryModelImpl)cpAttachmentFileEntry,
true);
} | java | @Override
public void clearCache(CPAttachmentFileEntry cpAttachmentFileEntry) {
entityCache.removeResult(CPAttachmentFileEntryModelImpl.ENTITY_CACHE_ENABLED,
CPAttachmentFileEntryImpl.class,
cpAttachmentFileEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPAttachmentFileEntryModelImpl)cpAttachmentFileEntry,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPAttachmentFileEntry",
"cpAttachmentFileEntry",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPAttachmentFileEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPAttachmentFileEntryImpl",
".",
"class",
",",
"... | Clears the cache for the cp attachment file entry.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"attachment",
"file",
"entry",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPAttachmentFileEntryPersistenceImpl.java#L5118-L5129 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPAttachmentFileEntryPersistenceImpl.java | CPAttachmentFileEntryPersistenceImpl.findAll | @Override
public List<CPAttachmentFileEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPAttachmentFileEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPAttachmentFileEntry",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp attachment file entries.
@return the cp attachment file entries | [
"Returns",
"all",
"the",
"cp",
"attachment",
"file",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPAttachmentFileEntryPersistenceImpl.java#L5772-L5775 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPDefinitionLinkLocalServiceBaseImpl.java | CPDefinitionLinkLocalServiceBaseImpl.deleteCPDefinitionLink | @Indexable(type = IndexableType.DELETE)
@Override
public CPDefinitionLink deleteCPDefinitionLink(long CPDefinitionLinkId)
throws PortalException {
return cpDefinitionLinkPersistence.remove(CPDefinitionLinkId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CPDefinitionLink deleteCPDefinitionLink(long CPDefinitionLinkId)
throws PortalException {
return cpDefinitionLinkPersistence.remove(CPDefinitionLinkId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CPDefinitionLink",
"deleteCPDefinitionLink",
"(",
"long",
"CPDefinitionLinkId",
")",
"throws",
"PortalException",
"{",
"return",
"cpDefinitionLinkPersistence",
".",
"r... | Deletes the cp definition link with the primary key from the database. Also notifies the appropriate model listeners.
@param CPDefinitionLinkId the primary key of the cp definition link
@return the cp definition link that was removed
@throws PortalException if a cp definition link with the primary key could not be found | [
"Deletes",
"the",
"cp",
"definition",
"link",
"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/CPDefinitionLinkLocalServiceBaseImpl.java#L142-L147 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPDefinitionLinkLocalServiceBaseImpl.java | CPDefinitionLinkLocalServiceBaseImpl.deleteCPDefinitionLink | @Indexable(type = IndexableType.DELETE)
@Override
public CPDefinitionLink deleteCPDefinitionLink(
CPDefinitionLink cpDefinitionLink) {
return cpDefinitionLinkPersistence.remove(cpDefinitionLink);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CPDefinitionLink deleteCPDefinitionLink(
CPDefinitionLink cpDefinitionLink) {
return cpDefinitionLinkPersistence.remove(cpDefinitionLink);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CPDefinitionLink",
"deleteCPDefinitionLink",
"(",
"CPDefinitionLink",
"cpDefinitionLink",
")",
"{",
"return",
"cpDefinitionLinkPersistence",
".",
"remove",
"(",
"cpDef... | Deletes the cp definition link from the database. Also notifies the appropriate model listeners.
@param cpDefinitionLink the cp definition link
@return the cp definition link that was removed | [
"Deletes",
"the",
"cp",
"definition",
"link",
"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/CPDefinitionLinkLocalServiceBaseImpl.java#L155-L160 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPDefinitionLinkLocalServiceBaseImpl.java | CPDefinitionLinkLocalServiceBaseImpl.getCPDefinitionLinksByUuidAndCompanyId | @Override
public List<CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
String uuid, long companyId, int start, int end,
OrderByComparator<CPDefinitionLink> orderByComparator) {
return cpDefinitionLinkPersistence.findByUuid_C(uuid, companyId, start,
end, orderByComparator);
} | java | @Override
public List<CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
String uuid, long companyId, int start, int end,
OrderByComparator<CPDefinitionLink> orderByComparator) {
return cpDefinitionLinkPersistence.findByUuid_C(uuid, companyId, start,
end, orderByComparator);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPDefinitionLink",
">",
"getCPDefinitionLinksByUuidAndCompanyId",
"(",
"String",
"uuid",
",",
"long",
"companyId",
",",
"int",
"start",
",",
"int",
"end",
",",
"OrderByComparator",
"<",
"CPDefinitionLink",
">",
"orderByCompar... | Returns a range of cp definition links matching the UUID and company.
@param uuid the UUID of the cp definition links
@param companyId the primary key of the company
@param start the lower bound of the range of cp definition links
@param end the upper bound of the range of cp definition links (not inclusive)
@param orderByComparator the comparator to order the results by (optionally <code>null</code>)
@return the range of matching cp definition links, or an empty list if no matches were found | [
"Returns",
"a",
"range",
"of",
"cp",
"definition",
"links",
"matching",
"the",
"UUID",
"and",
"company",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPDefinitionLinkLocalServiceBaseImpl.java#L401-L407 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CPDefinitionLinkLocalServiceBaseImpl.java | CPDefinitionLinkLocalServiceBaseImpl.updateCPDefinitionLink | @Indexable(type = IndexableType.REINDEX)
@Override
public CPDefinitionLink updateCPDefinitionLink(
CPDefinitionLink cpDefinitionLink) {
return cpDefinitionLinkPersistence.update(cpDefinitionLink);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CPDefinitionLink updateCPDefinitionLink(
CPDefinitionLink cpDefinitionLink) {
return cpDefinitionLinkPersistence.update(cpDefinitionLink);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CPDefinitionLink",
"updateCPDefinitionLink",
"(",
"CPDefinitionLink",
"cpDefinitionLink",
")",
"{",
"return",
"cpDefinitionLinkPersistence",
".",
"update",
"(",
"cpDe... | Updates the cp definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
@param cpDefinitionLink the cp definition link
@return the cp definition link that was updated | [
"Updates",
"the",
"cp",
"definition",
"link",
"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/CPDefinitionLinkLocalServiceBaseImpl.java#L455-L460 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListAccountRelPersistenceImpl.java | CommercePriceListAccountRelPersistenceImpl.cacheResult | @Override
public void cacheResult(
CommercePriceListAccountRel commercePriceListAccountRel) {
entityCache.putResult(CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListAccountRelImpl.class,
commercePriceListAccountRel.getPrimaryKey(),
commercePriceListAccountRel);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commercePriceListAccountRel.getUuid(),
commercePriceListAccountRel.getGroupId()
}, commercePriceListAccountRel);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
new Object[] {
commercePriceListAccountRel.getCommerceAccountId(),
commercePriceListAccountRel.getCommercePriceListId()
}, commercePriceListAccountRel);
commercePriceListAccountRel.resetOriginalValues();
} | java | @Override
public void cacheResult(
CommercePriceListAccountRel commercePriceListAccountRel) {
entityCache.putResult(CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListAccountRelImpl.class,
commercePriceListAccountRel.getPrimaryKey(),
commercePriceListAccountRel);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commercePriceListAccountRel.getUuid(),
commercePriceListAccountRel.getGroupId()
}, commercePriceListAccountRel);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
new Object[] {
commercePriceListAccountRel.getCommerceAccountId(),
commercePriceListAccountRel.getCommercePriceListId()
}, commercePriceListAccountRel);
commercePriceListAccountRel.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommercePriceListAccountRel",
"commercePriceListAccountRel",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommercePriceListAccountRelModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommercePriceListAccountRelImpl",
".",... | Caches the commerce price list account rel in the entity cache if it is enabled.
@param commercePriceListAccountRel the commerce price list account rel | [
"Caches",
"the",
"commerce",
"price",
"list",
"account",
"rel",
"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/CommercePriceListAccountRelPersistenceImpl.java#L2294-L2315 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListAccountRelPersistenceImpl.java | CommercePriceListAccountRelPersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommercePriceListAccountRel> commercePriceListAccountRels) {
for (CommercePriceListAccountRel commercePriceListAccountRel : commercePriceListAccountRels) {
if (entityCache.getResult(
CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListAccountRelImpl.class,
commercePriceListAccountRel.getPrimaryKey()) == null) {
cacheResult(commercePriceListAccountRel);
}
else {
commercePriceListAccountRel.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommercePriceListAccountRel> commercePriceListAccountRels) {
for (CommercePriceListAccountRel commercePriceListAccountRel : commercePriceListAccountRels) {
if (entityCache.getResult(
CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListAccountRelImpl.class,
commercePriceListAccountRel.getPrimaryKey()) == null) {
cacheResult(commercePriceListAccountRel);
}
else {
commercePriceListAccountRel.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommercePriceListAccountRel",
">",
"commercePriceListAccountRels",
")",
"{",
"for",
"(",
"CommercePriceListAccountRel",
"commercePriceListAccountRel",
":",
"commercePriceListAccountRels",
")",
"{",
"if",
... | Caches the commerce price list account rels in the entity cache if it is enabled.
@param commercePriceListAccountRels the commerce price list account rels | [
"Caches",
"the",
"commerce",
"price",
"list",
"account",
"rels",
"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/CommercePriceListAccountRelPersistenceImpl.java#L2322-L2336 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListAccountRelPersistenceImpl.java | CommercePriceListAccountRelPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommercePriceListAccountRelImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommercePriceListAccountRelImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommercePriceListAccountRelImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clea... | Clears the cache for all commerce price list account rels.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"price",
"list",
"account",
"rels",
"."
] | 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/CommercePriceListAccountRelPersistenceImpl.java#L2345-L2352 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListAccountRelPersistenceImpl.java | CommercePriceListAccountRelPersistenceImpl.clearCache | @Override
public void clearCache(
CommercePriceListAccountRel commercePriceListAccountRel) {
entityCache.removeResult(CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListAccountRelImpl.class,
commercePriceListAccountRel.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommercePriceListAccountRelModelImpl)commercePriceListAccountRel,
true);
} | java | @Override
public void clearCache(
CommercePriceListAccountRel commercePriceListAccountRel) {
entityCache.removeResult(CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListAccountRelImpl.class,
commercePriceListAccountRel.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommercePriceListAccountRelModelImpl)commercePriceListAccountRel,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommercePriceListAccountRel",
"commercePriceListAccountRel",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommercePriceListAccountRelModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommercePriceListAccountRelImpl",
".... | Clears the cache for the commerce price list account rel.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"price",
"list",
"account",
"rel",
"."
] | 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/CommercePriceListAccountRelPersistenceImpl.java#L2361-L2373 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListAccountRelPersistenceImpl.java | CommercePriceListAccountRelPersistenceImpl.findAll | @Override
public List<CommercePriceListAccountRel> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommercePriceListAccountRel> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommercePriceListAccountRel",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce price list account rels.
@return the commerce price list account rels | [
"Returns",
"all",
"the",
"commerce",
"price",
"list",
"account",
"rels",
"."
] | 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/CommercePriceListAccountRelPersistenceImpl.java#L2958-L2961 | train |
liferay/com-liferay-commerce | commerce-discount-api/src/main/java/com/liferay/commerce/discount/service/CommerceDiscountUsageEntryLocalServiceWrapper.java | CommerceDiscountUsageEntryLocalServiceWrapper.getCommerceDiscountUsageEntry | @Override
public com.liferay.commerce.discount.model.CommerceDiscountUsageEntry getCommerceDiscountUsageEntry(
long commerceDiscountUsageEntryId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceDiscountUsageEntryLocalService.getCommerceDiscountUsageEntry(commerceDiscountUsageEntryId);
} | java | @Override
public com.liferay.commerce.discount.model.CommerceDiscountUsageEntry getCommerceDiscountUsageEntry(
long commerceDiscountUsageEntryId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceDiscountUsageEntryLocalService.getCommerceDiscountUsageEntry(commerceDiscountUsageEntryId);
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"discount",
".",
"model",
".",
"CommerceDiscountUsageEntry",
"getCommerceDiscountUsageEntry",
"(",
"long",
"commerceDiscountUsageEntryId",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".... | Returns the commerce discount usage entry with the primary key.
@param commerceDiscountUsageEntryId the primary key of the commerce discount usage entry
@return the commerce discount usage entry
@throws PortalException if a commerce discount usage entry with the primary key could not be found | [
"Returns",
"the",
"commerce",
"discount",
"usage",
"entry",
"with",
"the",
"primary",
"key",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-discount-api/src/main/java/com/liferay/commerce/discount/service/CommerceDiscountUsageEntryLocalServiceWrapper.java#L238-L243 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionOptionRelWrapper.java | CPDefinitionOptionRelWrapper.getDescription | @Override
public String getDescription(String languageId, boolean useDefault) {
return _cpDefinitionOptionRel.getDescription(languageId, useDefault);
} | java | @Override
public String getDescription(String languageId, boolean useDefault) {
return _cpDefinitionOptionRel.getDescription(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getDescription",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_cpDefinitionOptionRel",
".",
"getDescription",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized description of this cp definition option rel in the language, optionally using the default language if no localization exists for the requested language.
@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 description of this cp definition option rel | [
"Returns",
"the",
"localized",
"description",
"of",
"this",
"cp",
"definition",
"option",
"rel",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionOptionRelWrapper.java#L340-L343 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionOptionRelWrapper.java | CPDefinitionOptionRelWrapper.getName | @Override
public String getName(String languageId, boolean useDefault) {
return _cpDefinitionOptionRel.getName(languageId, useDefault);
} | java | @Override
public String getName(String languageId, boolean useDefault) {
return _cpDefinitionOptionRel.getName(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getName",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_cpDefinitionOptionRel",
".",
"getName",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized name of this cp definition option rel in the language, optionally using the default language if no localization exists for the requested language.
@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 definition option rel | [
"Returns",
"the",
"localized",
"name",
"of",
"this",
"cp",
"definition",
"option",
"rel",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionOptionRelWrapper.java#L451-L454 | train |
liferay/com-liferay-commerce | commerce-api/src/main/java/com/liferay/commerce/service/CommerceShipmentLocalServiceUtil.java | CommerceShipmentLocalServiceUtil.getCommerceShipment | public static com.liferay.commerce.model.CommerceShipment getCommerceShipment(
long commerceShipmentId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getCommerceShipment(commerceShipmentId);
} | java | public static com.liferay.commerce.model.CommerceShipment getCommerceShipment(
long commerceShipmentId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getCommerceShipment(commerceShipmentId);
} | [
"public",
"static",
"com",
".",
"liferay",
".",
"commerce",
".",
"model",
".",
"CommerceShipment",
"getCommerceShipment",
"(",
"long",
"commerceShipmentId",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"exception",
".",
"PortalExcepti... | Returns the commerce shipment with the primary key.
@param commerceShipmentId the primary key of the commerce shipment
@return the commerce shipment
@throws PortalException if a commerce shipment with the primary key could not be found | [
"Returns",
"the",
"commerce",
"shipment",
"with",
"the",
"primary",
"key",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-api/src/main/java/com/liferay/commerce/service/CommerceShipmentLocalServiceUtil.java#L202-L206 | train |
liferay/com-liferay-commerce | commerce-api/src/main/java/com/liferay/commerce/model/CommerceShippingMethodWrapper.java | CommerceShippingMethodWrapper.getDescription | @Override
public String getDescription(String languageId, boolean useDefault) {
return _commerceShippingMethod.getDescription(languageId, useDefault);
} | java | @Override
public String getDescription(String languageId, boolean useDefault) {
return _commerceShippingMethod.getDescription(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getDescription",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceShippingMethod",
".",
"getDescription",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized description of this commerce shipping method in the language, optionally using the default language if no localization exists for the requested language.
@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 description of this commerce shipping method | [
"Returns",
"the",
"localized",
"description",
"of",
"this",
"commerce",
"shipping",
"method",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-api/src/main/java/com/liferay/commerce/model/CommerceShippingMethodWrapper.java#L272-L275 | train |
liferay/com-liferay-commerce | commerce-api/src/main/java/com/liferay/commerce/model/CommerceShippingMethodWrapper.java | CommerceShippingMethodWrapper.getName | @Override
public String getName(String languageId, boolean useDefault) {
return _commerceShippingMethod.getName(languageId, useDefault);
} | java | @Override
public String getName(String languageId, boolean useDefault) {
return _commerceShippingMethod.getName(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getName",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceShippingMethod",
".",
"getName",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized name of this commerce shipping method in the language, optionally using the default language if no localization exists for the requested language.
@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 shipping method | [
"Returns",
"the",
"localized",
"name",
"of",
"this",
"commerce",
"shipping",
"method",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-api/src/main/java/com/liferay/commerce/model/CommerceShippingMethodWrapper.java#L399-L402 | train |
liferay/com-liferay-commerce | commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java | CommerceUserSegmentEntryPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceUserSegmentEntry commerceUserSegmentEntry) {
entityCache.putResult(CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceUserSegmentEntryImpl.class,
commerceUserSegmentEntry.getPrimaryKey(), commerceUserSegmentEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_K,
new Object[] {
commerceUserSegmentEntry.getGroupId(),
commerceUserSegmentEntry.getKey()
}, commerceUserSegmentEntry);
commerceUserSegmentEntry.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceUserSegmentEntry commerceUserSegmentEntry) {
entityCache.putResult(CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceUserSegmentEntryImpl.class,
commerceUserSegmentEntry.getPrimaryKey(), commerceUserSegmentEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_K,
new Object[] {
commerceUserSegmentEntry.getGroupId(),
commerceUserSegmentEntry.getKey()
}, commerceUserSegmentEntry);
commerceUserSegmentEntry.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceUserSegmentEntry",
"commerceUserSegmentEntry",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceUserSegmentEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceUserSegmentEntryImpl",
".",
"class",
... | Caches the commerce user segment entry in the entity cache if it is enabled.
@param commerceUserSegmentEntry the commerce user segment entry | [
"Caches",
"the",
"commerce",
"user",
"segment",
"entry",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java#L2192-L2205 | train |
liferay/com-liferay-commerce | commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java | CommerceUserSegmentEntryPersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommerceUserSegmentEntry> commerceUserSegmentEntries) {
for (CommerceUserSegmentEntry commerceUserSegmentEntry : commerceUserSegmentEntries) {
if (entityCache.getResult(
CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceUserSegmentEntryImpl.class,
commerceUserSegmentEntry.getPrimaryKey()) == null) {
cacheResult(commerceUserSegmentEntry);
}
else {
commerceUserSegmentEntry.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommerceUserSegmentEntry> commerceUserSegmentEntries) {
for (CommerceUserSegmentEntry commerceUserSegmentEntry : commerceUserSegmentEntries) {
if (entityCache.getResult(
CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceUserSegmentEntryImpl.class,
commerceUserSegmentEntry.getPrimaryKey()) == null) {
cacheResult(commerceUserSegmentEntry);
}
else {
commerceUserSegmentEntry.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceUserSegmentEntry",
">",
"commerceUserSegmentEntries",
")",
"{",
"for",
"(",
"CommerceUserSegmentEntry",
"commerceUserSegmentEntry",
":",
"commerceUserSegmentEntries",
")",
"{",
"if",
"(",
"enti... | Caches the commerce user segment entries in the entity cache if it is enabled.
@param commerceUserSegmentEntries the commerce user segment entries | [
"Caches",
"the",
"commerce",
"user",
"segment",
"entries",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java#L2212-L2226 | train |
liferay/com-liferay-commerce | commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java | CommerceUserSegmentEntryPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceUserSegmentEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceUserSegmentEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceUserSegmentEntryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCa... | Clears the cache for all commerce user segment entries.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"user",
"segment",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java#L2235-L2242 | train |
liferay/com-liferay-commerce | commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java | CommerceUserSegmentEntryPersistenceImpl.clearCache | @Override
public void clearCache(CommerceUserSegmentEntry commerceUserSegmentEntry) {
entityCache.removeResult(CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceUserSegmentEntryImpl.class,
commerceUserSegmentEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceUserSegmentEntryModelImpl)commerceUserSegmentEntry,
true);
} | java | @Override
public void clearCache(CommerceUserSegmentEntry commerceUserSegmentEntry) {
entityCache.removeResult(CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceUserSegmentEntryImpl.class,
commerceUserSegmentEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceUserSegmentEntryModelImpl)commerceUserSegmentEntry,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceUserSegmentEntry",
"commerceUserSegmentEntry",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceUserSegmentEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceUserSegmentEntryImpl",
".",
"class"... | Clears the cache for the commerce user segment entry.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"user",
"segment",
"entry",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java#L2251-L2262 | train |
liferay/com-liferay-commerce | commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java | CommerceUserSegmentEntryPersistenceImpl.findAll | @Override
public List<CommerceUserSegmentEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceUserSegmentEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceUserSegmentEntry",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce user segment entries.
@return the commerce user segment entries | [
"Returns",
"all",
"the",
"commerce",
"user",
"segment",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-user-segment-service/src/main/java/com/liferay/commerce/user/segment/service/persistence/impl/CommerceUserSegmentEntryPersistenceImpl.java#L2770-L2773 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java | CPDAvailabilityEstimatePersistenceImpl.cacheResult | @Override
public void cacheResult(CPDAvailabilityEstimate cpdAvailabilityEstimate) {
entityCache.putResult(CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CPDAvailabilityEstimateImpl.class,
cpdAvailabilityEstimate.getPrimaryKey(), cpdAvailabilityEstimate);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
cpdAvailabilityEstimate.getUuid(),
cpdAvailabilityEstimate.getGroupId()
}, cpdAvailabilityEstimate);
finderCache.putResult(FINDER_PATH_FETCH_BY_CPRODUCTID,
new Object[] { cpdAvailabilityEstimate.getCProductId() },
cpdAvailabilityEstimate);
cpdAvailabilityEstimate.resetOriginalValues();
} | java | @Override
public void cacheResult(CPDAvailabilityEstimate cpdAvailabilityEstimate) {
entityCache.putResult(CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CPDAvailabilityEstimateImpl.class,
cpdAvailabilityEstimate.getPrimaryKey(), cpdAvailabilityEstimate);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
cpdAvailabilityEstimate.getUuid(),
cpdAvailabilityEstimate.getGroupId()
}, cpdAvailabilityEstimate);
finderCache.putResult(FINDER_PATH_FETCH_BY_CPRODUCTID,
new Object[] { cpdAvailabilityEstimate.getCProductId() },
cpdAvailabilityEstimate);
cpdAvailabilityEstimate.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPDAvailabilityEstimate",
"cpdAvailabilityEstimate",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPDAvailabilityEstimateModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPDAvailabilityEstimateImpl",
".",
"class",
",... | Caches the cpd availability estimate in the entity cache if it is enabled.
@param cpdAvailabilityEstimate the cpd availability estimate | [
"Caches",
"the",
"cpd",
"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/CPDAvailabilityEstimatePersistenceImpl.java#L2259-L2276 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java | CPDAvailabilityEstimatePersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CPDAvailabilityEstimate> cpdAvailabilityEstimates) {
for (CPDAvailabilityEstimate cpdAvailabilityEstimate : cpdAvailabilityEstimates) {
if (entityCache.getResult(
CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CPDAvailabilityEstimateImpl.class,
cpdAvailabilityEstimate.getPrimaryKey()) == null) {
cacheResult(cpdAvailabilityEstimate);
}
else {
cpdAvailabilityEstimate.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CPDAvailabilityEstimate> cpdAvailabilityEstimates) {
for (CPDAvailabilityEstimate cpdAvailabilityEstimate : cpdAvailabilityEstimates) {
if (entityCache.getResult(
CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CPDAvailabilityEstimateImpl.class,
cpdAvailabilityEstimate.getPrimaryKey()) == null) {
cacheResult(cpdAvailabilityEstimate);
}
else {
cpdAvailabilityEstimate.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPDAvailabilityEstimate",
">",
"cpdAvailabilityEstimates",
")",
"{",
"for",
"(",
"CPDAvailabilityEstimate",
"cpdAvailabilityEstimate",
":",
"cpdAvailabilityEstimates",
")",
"{",
"if",
"(",
"entityCache... | Caches the cpd availability estimates in the entity cache if it is enabled.
@param cpdAvailabilityEstimates the cpd availability estimates | [
"Caches",
"the",
"cpd",
"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/CPDAvailabilityEstimatePersistenceImpl.java#L2283-L2297 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java | CPDAvailabilityEstimatePersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CPDAvailabilityEstimateImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CPDAvailabilityEstimateImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPDAvailabilityEstimateImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCac... | Clears the cache for all cpd availability estimates.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cpd",
"availability",
"estimates",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java#L2306-L2313 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java | CPDAvailabilityEstimatePersistenceImpl.clearCache | @Override
public void clearCache(CPDAvailabilityEstimate cpdAvailabilityEstimate) {
entityCache.removeResult(CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CPDAvailabilityEstimateImpl.class,
cpdAvailabilityEstimate.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPDAvailabilityEstimateModelImpl)cpdAvailabilityEstimate,
true);
} | java | @Override
public void clearCache(CPDAvailabilityEstimate cpdAvailabilityEstimate) {
entityCache.removeResult(CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
CPDAvailabilityEstimateImpl.class,
cpdAvailabilityEstimate.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPDAvailabilityEstimateModelImpl)cpdAvailabilityEstimate,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPDAvailabilityEstimate",
"cpdAvailabilityEstimate",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPDAvailabilityEstimateModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPDAvailabilityEstimateImpl",
".",
"class",
... | Clears the cache for the cpd availability estimate.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cpd",
"availability",
"estimate",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java#L2322-L2333 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java | CPDAvailabilityEstimatePersistenceImpl.findAll | @Override
public List<CPDAvailabilityEstimate> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPDAvailabilityEstimate> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPDAvailabilityEstimate",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cpd availability estimates.
@return the cpd availability estimates | [
"Returns",
"all",
"the",
"cpd",
"availability",
"estimates",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDAvailabilityEstimatePersistenceImpl.java#L2905-L2908 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java | CPOptionPersistenceImpl.cacheResult | @Override
public void cacheResult(CPOption cpOption) {
entityCache.putResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
CPOptionImpl.class, cpOption.getPrimaryKey(), cpOption);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] { cpOption.getUuid(), cpOption.getGroupId() }, cpOption);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_K,
new Object[] { cpOption.getGroupId(), cpOption.getKey() }, cpOption);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
new Object[] {
cpOption.getCompanyId(), cpOption.getExternalReferenceCode()
}, cpOption);
cpOption.resetOriginalValues();
} | java | @Override
public void cacheResult(CPOption cpOption) {
entityCache.putResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
CPOptionImpl.class, cpOption.getPrimaryKey(), cpOption);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] { cpOption.getUuid(), cpOption.getGroupId() }, cpOption);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_K,
new Object[] { cpOption.getGroupId(), cpOption.getKey() }, cpOption);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
new Object[] {
cpOption.getCompanyId(), cpOption.getExternalReferenceCode()
}, cpOption);
cpOption.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPOption",
"cpOption",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPOptionModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPOptionImpl",
".",
"class",
",",
"cpOption",
".",
"getPrimaryKey",
"(",
")",
"... | Caches the cp option in the entity cache if it is enabled.
@param cpOption the cp option | [
"Caches",
"the",
"cp",
"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/CPOptionPersistenceImpl.java#L2508-L2525 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java | CPOptionPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CPOption> cpOptions) {
for (CPOption cpOption : cpOptions) {
if (entityCache.getResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
CPOptionImpl.class, cpOption.getPrimaryKey()) == null) {
cacheResult(cpOption);
}
else {
cpOption.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CPOption> cpOptions) {
for (CPOption cpOption : cpOptions) {
if (entityCache.getResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
CPOptionImpl.class, cpOption.getPrimaryKey()) == null) {
cacheResult(cpOption);
}
else {
cpOption.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPOption",
">",
"cpOptions",
")",
"{",
"for",
"(",
"CPOption",
"cpOption",
":",
"cpOptions",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"(",
"CPOptionModelImpl",
".",
"ENTITY_CAC... | Caches the cp options in the entity cache if it is enabled.
@param cpOptions the cp options | [
"Caches",
"the",
"cp",
"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/CPOptionPersistenceImpl.java#L2532-L2543 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java | CPOptionPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CPOptionImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CPOptionImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPOptionImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"... | Clears the cache for all cp options.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"options",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java#L2552-L2559 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java | CPOptionPersistenceImpl.clearCache | @Override
public void clearCache(CPOption cpOption) {
entityCache.removeResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
CPOptionImpl.class, cpOption.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPOptionModelImpl)cpOption, true);
} | java | @Override
public void clearCache(CPOption cpOption) {
entityCache.removeResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
CPOptionImpl.class, cpOption.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPOptionModelImpl)cpOption, true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPOption",
"cpOption",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPOptionModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPOptionImpl",
".",
"class",
",",
"cpOption",
".",
"getPrimaryKey",
"(",
")",
... | Clears the cache for the cp option.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"option",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java#L2568-L2577 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java | CPOptionPersistenceImpl.findAll | @Override
public List<CPOption> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPOption> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPOption",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp options.
@return the cp options | [
"Returns",
"all",
"the",
"cp",
"options",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/persistence/impl/CPOptionPersistenceImpl.java#L3154-L3157 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java | CPDefinitionInventoryPersistenceImpl.cacheResult | @Override
public void cacheResult(CPDefinitionInventory cpDefinitionInventory) {
entityCache.putResult(CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionInventoryImpl.class,
cpDefinitionInventory.getPrimaryKey(), cpDefinitionInventory);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
cpDefinitionInventory.getUuid(),
cpDefinitionInventory.getGroupId()
}, cpDefinitionInventory);
finderCache.putResult(FINDER_PATH_FETCH_BY_CPDEFINITIONID,
new Object[] { cpDefinitionInventory.getCPDefinitionId() },
cpDefinitionInventory);
cpDefinitionInventory.resetOriginalValues();
} | java | @Override
public void cacheResult(CPDefinitionInventory cpDefinitionInventory) {
entityCache.putResult(CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionInventoryImpl.class,
cpDefinitionInventory.getPrimaryKey(), cpDefinitionInventory);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
cpDefinitionInventory.getUuid(),
cpDefinitionInventory.getGroupId()
}, cpDefinitionInventory);
finderCache.putResult(FINDER_PATH_FETCH_BY_CPDEFINITIONID,
new Object[] { cpDefinitionInventory.getCPDefinitionId() },
cpDefinitionInventory);
cpDefinitionInventory.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CPDefinitionInventory",
"cpDefinitionInventory",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CPDefinitionInventoryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPDefinitionInventoryImpl",
".",
"class",
",",
"cp... | Caches the cp definition inventory in the entity cache if it is enabled.
@param cpDefinitionInventory the cp definition inventory | [
"Caches",
"the",
"cp",
"definition",
"inventory",
"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/CPDefinitionInventoryPersistenceImpl.java#L1720-L1737 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java | CPDefinitionInventoryPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CPDefinitionInventory> cpDefinitionInventories) {
for (CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories) {
if (entityCache.getResult(
CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionInventoryImpl.class,
cpDefinitionInventory.getPrimaryKey()) == null) {
cacheResult(cpDefinitionInventory);
}
else {
cpDefinitionInventory.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CPDefinitionInventory> cpDefinitionInventories) {
for (CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories) {
if (entityCache.getResult(
CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionInventoryImpl.class,
cpDefinitionInventory.getPrimaryKey()) == null) {
cacheResult(cpDefinitionInventory);
}
else {
cpDefinitionInventory.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CPDefinitionInventory",
">",
"cpDefinitionInventories",
")",
"{",
"for",
"(",
"CPDefinitionInventory",
"cpDefinitionInventory",
":",
"cpDefinitionInventories",
")",
"{",
"if",
"(",
"entityCache",
"."... | Caches the cp definition inventories in the entity cache if it is enabled.
@param cpDefinitionInventories the cp definition inventories | [
"Caches",
"the",
"cp",
"definition",
"inventories",
"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/CPDefinitionInventoryPersistenceImpl.java#L1744-L1757 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java | CPDefinitionInventoryPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CPDefinitionInventoryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CPDefinitionInventoryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CPDefinitionInventoryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache... | Clears the cache for all cp definition inventories.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"cp",
"definition",
"inventories",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java#L1766-L1773 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java | CPDefinitionInventoryPersistenceImpl.clearCache | @Override
public void clearCache(CPDefinitionInventory cpDefinitionInventory) {
entityCache.removeResult(CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionInventoryImpl.class,
cpDefinitionInventory.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPDefinitionInventoryModelImpl)cpDefinitionInventory,
true);
} | java | @Override
public void clearCache(CPDefinitionInventory cpDefinitionInventory) {
entityCache.removeResult(CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
CPDefinitionInventoryImpl.class,
cpDefinitionInventory.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CPDefinitionInventoryModelImpl)cpDefinitionInventory,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CPDefinitionInventory",
"cpDefinitionInventory",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CPDefinitionInventoryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CPDefinitionInventoryImpl",
".",
"class",
",",
"... | Clears the cache for the cp definition inventory.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"cp",
"definition",
"inventory",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java#L1782-L1793 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java | CPDefinitionInventoryPersistenceImpl.findAll | @Override
public List<CPDefinitionInventory> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CPDefinitionInventory> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CPDefinitionInventory",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the cp definition inventories.
@return the cp definition inventories | [
"Returns",
"all",
"the",
"cp",
"definition",
"inventories",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CPDefinitionInventoryPersistenceImpl.java#L2331-L2334 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java | CommerceCountryPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceCountry commerceCountry) {
entityCache.putResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
CommerceCountryImpl.class, commerceCountry.getPrimaryKey(),
commerceCountry);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] { commerceCountry.getUuid(), commerceCountry.getGroupId() },
commerceCountry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_TW,
new Object[] {
commerceCountry.getGroupId(),
commerceCountry.getTwoLettersISOCode()
}, commerceCountry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_N,
new Object[] {
commerceCountry.getGroupId(),
commerceCountry.getNumericISOCode()
}, commerceCountry);
commerceCountry.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceCountry commerceCountry) {
entityCache.putResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
CommerceCountryImpl.class, commerceCountry.getPrimaryKey(),
commerceCountry);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] { commerceCountry.getUuid(), commerceCountry.getGroupId() },
commerceCountry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_TW,
new Object[] {
commerceCountry.getGroupId(),
commerceCountry.getTwoLettersISOCode()
}, commerceCountry);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_N,
new Object[] {
commerceCountry.getGroupId(),
commerceCountry.getNumericISOCode()
}, commerceCountry);
commerceCountry.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceCountry",
"commerceCountry",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceCountryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceCountryImpl",
".",
"class",
",",
"commerceCountry",
".",
... | Caches the commerce country in the entity cache if it is enabled.
@param commerceCountry the commerce country | [
"Caches",
"the",
"commerce",
"country",
"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/CommerceCountryPersistenceImpl.java#L4218-L4241 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java | CommerceCountryPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CommerceCountry> commerceCountries) {
for (CommerceCountry commerceCountry : commerceCountries) {
if (entityCache.getResult(
CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
CommerceCountryImpl.class,
commerceCountry.getPrimaryKey()) == null) {
cacheResult(commerceCountry);
}
else {
commerceCountry.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CommerceCountry> commerceCountries) {
for (CommerceCountry commerceCountry : commerceCountries) {
if (entityCache.getResult(
CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
CommerceCountryImpl.class,
commerceCountry.getPrimaryKey()) == null) {
cacheResult(commerceCountry);
}
else {
commerceCountry.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceCountry",
">",
"commerceCountries",
")",
"{",
"for",
"(",
"CommerceCountry",
"commerceCountry",
":",
"commerceCountries",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"(",
"Com... | Caches the commerce countries in the entity cache if it is enabled.
@param commerceCountries the commerce countries | [
"Caches",
"the",
"commerce",
"countries",
"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/CommerceCountryPersistenceImpl.java#L4248-L4261 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java | CommerceCountryPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceCountryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceCountryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceCountryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
"... | Clears the cache for all commerce countries.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"countries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java#L4270-L4277 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java | CommerceCountryPersistenceImpl.clearCache | @Override
public void clearCache(CommerceCountry commerceCountry) {
entityCache.removeResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
CommerceCountryImpl.class, commerceCountry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceCountryModelImpl)commerceCountry, true);
} | java | @Override
public void clearCache(CommerceCountry commerceCountry) {
entityCache.removeResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
CommerceCountryImpl.class, commerceCountry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceCountryModelImpl)commerceCountry, true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceCountry",
"commerceCountry",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceCountryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceCountryImpl",
".",
"class",
",",
"commerceCountry",
".",... | Clears the cache for the commerce country.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"country",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java#L4286-L4295 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java | CommerceCountryPersistenceImpl.findAll | @Override
public List<CommerceCountry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceCountry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceCountry",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce countries.
@return the commerce countries | [
"Returns",
"all",
"the",
"commerce",
"countries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceCountryPersistenceImpl.java#L4980-L4983 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java | CommerceNotificationTemplatePersistenceImpl.cacheResult | @Override
public void cacheResult(
CommerceNotificationTemplate commerceNotificationTemplate) {
entityCache.putResult(CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
CommerceNotificationTemplateImpl.class,
commerceNotificationTemplate.getPrimaryKey(),
commerceNotificationTemplate);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceNotificationTemplate.getUuid(),
commerceNotificationTemplate.getGroupId()
}, commerceNotificationTemplate);
commerceNotificationTemplate.resetOriginalValues();
} | java | @Override
public void cacheResult(
CommerceNotificationTemplate commerceNotificationTemplate) {
entityCache.putResult(CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
CommerceNotificationTemplateImpl.class,
commerceNotificationTemplate.getPrimaryKey(),
commerceNotificationTemplate);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceNotificationTemplate.getUuid(),
commerceNotificationTemplate.getGroupId()
}, commerceNotificationTemplate);
commerceNotificationTemplate.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceNotificationTemplate",
"commerceNotificationTemplate",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceNotificationTemplateModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceNotificationTemplateImpl",
... | Caches the commerce notification template in the entity cache if it is enabled.
@param commerceNotificationTemplate the commerce notification template | [
"Caches",
"the",
"commerce",
"notification",
"template",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java#L4473-L4488 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java | CommerceNotificationTemplatePersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommerceNotificationTemplate> commerceNotificationTemplates) {
for (CommerceNotificationTemplate commerceNotificationTemplate : commerceNotificationTemplates) {
if (entityCache.getResult(
CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
CommerceNotificationTemplateImpl.class,
commerceNotificationTemplate.getPrimaryKey()) == null) {
cacheResult(commerceNotificationTemplate);
}
else {
commerceNotificationTemplate.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommerceNotificationTemplate> commerceNotificationTemplates) {
for (CommerceNotificationTemplate commerceNotificationTemplate : commerceNotificationTemplates) {
if (entityCache.getResult(
CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
CommerceNotificationTemplateImpl.class,
commerceNotificationTemplate.getPrimaryKey()) == null) {
cacheResult(commerceNotificationTemplate);
}
else {
commerceNotificationTemplate.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceNotificationTemplate",
">",
"commerceNotificationTemplates",
")",
"{",
"for",
"(",
"CommerceNotificationTemplate",
"commerceNotificationTemplate",
":",
"commerceNotificationTemplates",
")",
"{",
"i... | Caches the commerce notification templates in the entity cache if it is enabled.
@param commerceNotificationTemplates the commerce notification templates | [
"Caches",
"the",
"commerce",
"notification",
"templates",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java#L4495-L4509 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java | CommerceNotificationTemplatePersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceNotificationTemplateImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceNotificationTemplateImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceNotificationTemplateImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"cle... | Clears the cache for all commerce notification templates.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"notification",
"templates",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java#L4518-L4525 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java | CommerceNotificationTemplatePersistenceImpl.clearCache | @Override
public void clearCache(
CommerceNotificationTemplate commerceNotificationTemplate) {
entityCache.removeResult(CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
CommerceNotificationTemplateImpl.class,
commerceNotificationTemplate.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceNotificationTemplateModelImpl)commerceNotificationTemplate,
true);
} | java | @Override
public void clearCache(
CommerceNotificationTemplate commerceNotificationTemplate) {
entityCache.removeResult(CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
CommerceNotificationTemplateImpl.class,
commerceNotificationTemplate.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceNotificationTemplateModelImpl)commerceNotificationTemplate,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceNotificationTemplate",
"commerceNotificationTemplate",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceNotificationTemplateModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceNotificationTemplateImpl",
... | Clears the cache for the commerce notification template.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"notification",
"template",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java#L4534-L4546 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java | CommerceNotificationTemplatePersistenceImpl.findAll | @Override
public List<CommerceNotificationTemplate> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceNotificationTemplate> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceNotificationTemplate",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce notification templates.
@return the commerce notification templates | [
"Returns",
"all",
"the",
"commerce",
"notification",
"templates",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/persistence/impl/CommerceNotificationTemplatePersistenceImpl.java#L5161-L5164 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java | CommerceAddressPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceAddress commerceAddress) {
entityCache.putResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressImpl.class, commerceAddress.getPrimaryKey(),
commerceAddress);
commerceAddress.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceAddress commerceAddress) {
entityCache.putResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressImpl.class, commerceAddress.getPrimaryKey(),
commerceAddress);
commerceAddress.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceAddress",
"commerceAddress",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceAddressModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceAddressImpl",
".",
"class",
",",
"commerceAddress",
".",
... | Caches the commerce address in the entity cache if it is enabled.
@param commerceAddress the commerce address | [
"Caches",
"the",
"commerce",
"address",
"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/CommerceAddressPersistenceImpl.java#L3550-L3557 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java | CommerceAddressPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CommerceAddress> commerceAddresses) {
for (CommerceAddress commerceAddress : commerceAddresses) {
if (entityCache.getResult(
CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressImpl.class,
commerceAddress.getPrimaryKey()) == null) {
cacheResult(commerceAddress);
}
else {
commerceAddress.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CommerceAddress> commerceAddresses) {
for (CommerceAddress commerceAddress : commerceAddresses) {
if (entityCache.getResult(
CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressImpl.class,
commerceAddress.getPrimaryKey()) == null) {
cacheResult(commerceAddress);
}
else {
commerceAddress.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceAddress",
">",
"commerceAddresses",
")",
"{",
"for",
"(",
"CommerceAddress",
"commerceAddress",
":",
"commerceAddresses",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"(",
"Com... | Caches the commerce addresses in the entity cache if it is enabled.
@param commerceAddresses the commerce addresses | [
"Caches",
"the",
"commerce",
"addresses",
"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/CommerceAddressPersistenceImpl.java#L3564-L3577 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java | CommerceAddressPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceAddressImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceAddressImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceAddressImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
"... | Clears the cache for all commerce addresses.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"addresses",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java#L3586-L3593 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java | CommerceAddressPersistenceImpl.clearCache | @Override
public void clearCache(CommerceAddress commerceAddress) {
entityCache.removeResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressImpl.class, commerceAddress.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache(CommerceAddress commerceAddress) {
entityCache.removeResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
CommerceAddressImpl.class, commerceAddress.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceAddress",
"commerceAddress",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceAddressModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceAddressImpl",
".",
"class",
",",
"commerceAddress",
".",... | Clears the cache for the commerce address.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"address",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java#L3602-L3609 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java | CommerceAddressPersistenceImpl.findAll | @Override
public List<CommerceAddress> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceAddress> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceAddress",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce addresses.
@return the commerce addresses | [
"Returns",
"all",
"the",
"commerce",
"addresses",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceAddressPersistenceImpl.java#L4199-L4202 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java | CommerceShippingFixedOptionServiceBaseImpl.getCommerceShippingFixedOptionLocalService | public com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionLocalService getCommerceShippingFixedOptionLocalService() {
return commerceShippingFixedOptionLocalService;
} | java | public com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionLocalService getCommerceShippingFixedOptionLocalService() {
return commerceShippingFixedOptionLocalService;
} | [
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"shipping",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceShippingFixedOptionLocalService",
"getCommerceShippingFixedOptionLocalService",
"(",
")",
"{",
"return",
"commerceShippingFixedOptionLocalService",
... | Returns the commerce shipping fixed option local service.
@return the commerce shipping fixed option local service | [
"Returns",
"the",
"commerce",
"shipping",
"fixed",
"option",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java#L64-L66 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java | CommerceShippingFixedOptionServiceBaseImpl.setCommerceShippingFixedOptionLocalService | public void setCommerceShippingFixedOptionLocalService(
com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionLocalService commerceShippingFixedOptionLocalService) {
this.commerceShippingFixedOptionLocalService = commerceShippingFixedOptionLocalService;
} | java | public void setCommerceShippingFixedOptionLocalService(
com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionLocalService commerceShippingFixedOptionLocalService) {
this.commerceShippingFixedOptionLocalService = commerceShippingFixedOptionLocalService;
} | [
"public",
"void",
"setCommerceShippingFixedOptionLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"shipping",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceShippingFixedOptionLocalService",
"commerceShippingFixedOptionLocalService",
")",
"{",
... | Sets the commerce shipping fixed option local service.
@param commerceShippingFixedOptionLocalService the commerce shipping fixed option local service | [
"Sets",
"the",
"commerce",
"shipping",
"fixed",
"option",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java#L73-L76 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java | CommerceShippingFixedOptionServiceBaseImpl.getCommerceShippingFixedOptionRelLocalService | public com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelLocalService getCommerceShippingFixedOptionRelLocalService() {
return commerceShippingFixedOptionRelLocalService;
} | java | public com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelLocalService getCommerceShippingFixedOptionRelLocalService() {
return commerceShippingFixedOptionRelLocalService;
} | [
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"shipping",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceShippingFixedOptionRelLocalService",
"getCommerceShippingFixedOptionRelLocalService",
"(",
")",
"{",
"return",
"commerceShippingFixedOptionRelLocalS... | Returns the commerce shipping fixed option rel local service.
@return the commerce shipping fixed option rel local service | [
"Returns",
"the",
"commerce",
"shipping",
"fixed",
"option",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java#L121-L123 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java | CommerceShippingFixedOptionServiceBaseImpl.setCommerceShippingFixedOptionRelLocalService | public void setCommerceShippingFixedOptionRelLocalService(
com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelLocalService commerceShippingFixedOptionRelLocalService) {
this.commerceShippingFixedOptionRelLocalService = commerceShippingFixedOptionRelLocalService;
} | java | public void setCommerceShippingFixedOptionRelLocalService(
com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelLocalService commerceShippingFixedOptionRelLocalService) {
this.commerceShippingFixedOptionRelLocalService = commerceShippingFixedOptionRelLocalService;
} | [
"public",
"void",
"setCommerceShippingFixedOptionRelLocalService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"shipping",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceShippingFixedOptionRelLocalService",
"commerceShippingFixedOptionRelLocalService",
")",
... | Sets the commerce shipping fixed option rel local service.
@param commerceShippingFixedOptionRelLocalService the commerce shipping fixed option rel local service | [
"Sets",
"the",
"commerce",
"shipping",
"fixed",
"option",
"rel",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java#L130-L133 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java | CommerceShippingFixedOptionServiceBaseImpl.getCommerceShippingFixedOptionRelService | public com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelService getCommerceShippingFixedOptionRelService() {
return commerceShippingFixedOptionRelService;
} | java | public com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelService getCommerceShippingFixedOptionRelService() {
return commerceShippingFixedOptionRelService;
} | [
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"shipping",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceShippingFixedOptionRelService",
"getCommerceShippingFixedOptionRelService",
"(",
")",
"{",
"return",
"commerceShippingFixedOptionRelService",
";",... | Returns the commerce shipping fixed option rel remote service.
@return the commerce shipping fixed option rel remote service | [
"Returns",
"the",
"commerce",
"shipping",
"fixed",
"option",
"rel",
"remote",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java#L140-L142 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java | CommerceShippingFixedOptionServiceBaseImpl.setCommerceShippingFixedOptionRelService | public void setCommerceShippingFixedOptionRelService(
com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelService commerceShippingFixedOptionRelService) {
this.commerceShippingFixedOptionRelService = commerceShippingFixedOptionRelService;
} | java | public void setCommerceShippingFixedOptionRelService(
com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionRelService commerceShippingFixedOptionRelService) {
this.commerceShippingFixedOptionRelService = commerceShippingFixedOptionRelService;
} | [
"public",
"void",
"setCommerceShippingFixedOptionRelService",
"(",
"com",
".",
"liferay",
".",
"commerce",
".",
"shipping",
".",
"engine",
".",
"fixed",
".",
"service",
".",
"CommerceShippingFixedOptionRelService",
"commerceShippingFixedOptionRelService",
")",
"{",
"this"... | Sets the commerce shipping fixed option rel remote service.
@param commerceShippingFixedOptionRelService the commerce shipping fixed option rel remote service | [
"Sets",
"the",
"commerce",
"shipping",
"fixed",
"option",
"rel",
"remote",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-service/src/main/java/com/liferay/commerce/shipping/engine/fixed/service/base/CommerceShippingFixedOptionServiceBaseImpl.java#L149-L152 | train |
liferay/com-liferay-commerce | commerce-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountRelLocalServiceBaseImpl.java | CommerceDiscountRelLocalServiceBaseImpl.addCommerceDiscountRel | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceDiscountRel addCommerceDiscountRel(
CommerceDiscountRel commerceDiscountRel) {
commerceDiscountRel.setNew(true);
return commerceDiscountRelPersistence.update(commerceDiscountRel);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceDiscountRel addCommerceDiscountRel(
CommerceDiscountRel commerceDiscountRel) {
commerceDiscountRel.setNew(true);
return commerceDiscountRelPersistence.update(commerceDiscountRel);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommerceDiscountRel",
"addCommerceDiscountRel",
"(",
"CommerceDiscountRel",
"commerceDiscountRel",
")",
"{",
"commerceDiscountRel",
".",
"setNew",
"(",
"true",
")",
... | Adds the commerce discount rel to the database. Also notifies the appropriate model listeners.
@param commerceDiscountRel the commerce discount rel
@return the commerce discount rel that was added | [
"Adds",
"the",
"commerce",
"discount",
"rel",
"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/CommerceDiscountRelLocalServiceBaseImpl.java#L87-L94 | train |
liferay/com-liferay-commerce | commerce-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountRelLocalServiceBaseImpl.java | CommerceDiscountRelLocalServiceBaseImpl.deleteCommerceDiscountRel | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceDiscountRel deleteCommerceDiscountRel(
long commerceDiscountRelId) throws PortalException {
return commerceDiscountRelPersistence.remove(commerceDiscountRelId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceDiscountRel deleteCommerceDiscountRel(
long commerceDiscountRelId) throws PortalException {
return commerceDiscountRelPersistence.remove(commerceDiscountRelId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceDiscountRel",
"deleteCommerceDiscountRel",
"(",
"long",
"commerceDiscountRelId",
")",
"throws",
"PortalException",
"{",
"return",
"commerceDiscountRelPersistence",... | Deletes the commerce discount rel with the primary key from the database. Also notifies the appropriate model listeners.
@param commerceDiscountRelId the primary key of the commerce discount rel
@return the commerce discount rel that was removed
@throws PortalException if a commerce discount rel with the primary key could not be found | [
"Deletes",
"the",
"commerce",
"discount",
"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-discount-service/src/main/java/com/liferay/commerce/discount/service/base/CommerceDiscountRelLocalServiceBaseImpl.java#L116-L121 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-api/src/main/java/com/liferay/commerce/shipping/engine/fixed/model/CommerceShippingFixedOptionWrapper.java | CommerceShippingFixedOptionWrapper.getDescription | @Override
public String getDescription(String languageId, boolean useDefault) {
return _commerceShippingFixedOption.getDescription(languageId,
useDefault);
} | java | @Override
public String getDescription(String languageId, boolean useDefault) {
return _commerceShippingFixedOption.getDescription(languageId,
useDefault);
} | [
"@",
"Override",
"public",
"String",
"getDescription",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceShippingFixedOption",
".",
"getDescription",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized description of this commerce shipping fixed option in the language, optionally using the default language if no localization exists for the requested language.
@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 description of this commerce shipping fixed option | [
"Returns",
"the",
"localized",
"description",
"of",
"this",
"commerce",
"shipping",
"fixed",
"option",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-api/src/main/java/com/liferay/commerce/shipping/engine/fixed/model/CommerceShippingFixedOptionWrapper.java#L281-L285 | train |
liferay/com-liferay-commerce | commerce-shipping-engine-fixed-api/src/main/java/com/liferay/commerce/shipping/engine/fixed/model/CommerceShippingFixedOptionWrapper.java | CommerceShippingFixedOptionWrapper.getName | @Override
public String getName(String languageId, boolean useDefault) {
return _commerceShippingFixedOption.getName(languageId, useDefault);
} | java | @Override
public String getName(String languageId, boolean useDefault) {
return _commerceShippingFixedOption.getName(languageId, useDefault);
} | [
"@",
"Override",
"public",
"String",
"getName",
"(",
"String",
"languageId",
",",
"boolean",
"useDefault",
")",
"{",
"return",
"_commerceShippingFixedOption",
".",
"getName",
"(",
"languageId",
",",
"useDefault",
")",
";",
"}"
] | Returns the localized name of this commerce shipping fixed option in the language, optionally using the default language if no localization exists for the requested language.
@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 shipping fixed option | [
"Returns",
"the",
"localized",
"name",
"of",
"this",
"commerce",
"shipping",
"fixed",
"option",
"in",
"the",
"language",
"optionally",
"using",
"the",
"default",
"language",
"if",
"no",
"localization",
"exists",
"for",
"the",
"requested",
"language",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-shipping-engine-fixed-api/src/main/java/com/liferay/commerce/shipping/engine/fixed/model/CommerceShippingFixedOptionWrapper.java#L383-L386 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/base/CommerceShipmentLocalServiceBaseImpl.java | CommerceShipmentLocalServiceBaseImpl.deleteCommerceShipment | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceShipment deleteCommerceShipment(long commerceShipmentId)
throws PortalException {
return commerceShipmentPersistence.remove(commerceShipmentId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceShipment deleteCommerceShipment(long commerceShipmentId)
throws PortalException {
return commerceShipmentPersistence.remove(commerceShipmentId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceShipment",
"deleteCommerceShipment",
"(",
"long",
"commerceShipmentId",
")",
"throws",
"PortalException",
"{",
"return",
"commerceShipmentPersistence",
".",
"r... | Deletes the commerce shipment with the primary key from the database. Also notifies the appropriate model listeners.
@param commerceShipmentId the primary key of the commerce shipment
@return the commerce shipment that was removed
@throws PortalException if a commerce shipment with the primary key could not be found | [
"Deletes",
"the",
"commerce",
"shipment",
"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/CommerceShipmentLocalServiceBaseImpl.java#L133-L138 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPRuleUserSegmentRelLocalServiceWrapper.java | CPRuleUserSegmentRelLocalServiceWrapper.getCPRuleUserSegmentRel | @Override
public com.liferay.commerce.product.model.CPRuleUserSegmentRel getCPRuleUserSegmentRel(
long CPRuleUserSegmentRelId)
throws com.liferay.portal.kernel.exception.PortalException {
return _cpRuleUserSegmentRelLocalService.getCPRuleUserSegmentRel(CPRuleUserSegmentRelId);
} | java | @Override
public com.liferay.commerce.product.model.CPRuleUserSegmentRel getCPRuleUserSegmentRel(
long CPRuleUserSegmentRelId)
throws com.liferay.portal.kernel.exception.PortalException {
return _cpRuleUserSegmentRelLocalService.getCPRuleUserSegmentRel(CPRuleUserSegmentRelId);
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"product",
".",
"model",
".",
"CPRuleUserSegmentRel",
"getCPRuleUserSegmentRel",
"(",
"long",
"CPRuleUserSegmentRelId",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".... | Returns the cp rule user segment rel with the primary key.
@param CPRuleUserSegmentRelId the primary key of the cp rule user segment rel
@return the cp rule user segment rel
@throws PortalException if a cp rule user segment rel with the primary key could not be found | [
"Returns",
"the",
"cp",
"rule",
"user",
"segment",
"rel",
"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/CPRuleUserSegmentRelLocalServiceWrapper.java#L225-L230 | train |
liferay/com-liferay-commerce | commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java | CommerceCurrencyPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceCurrency commerceCurrency) {
entityCache.putResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey(),
commerceCurrency);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceCurrency.getUuid(), commerceCurrency.getGroupId()
}, commerceCurrency);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C,
new Object[] {
commerceCurrency.getGroupId(), commerceCurrency.getCode()
}, commerceCurrency);
commerceCurrency.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceCurrency commerceCurrency) {
entityCache.putResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey(),
commerceCurrency);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceCurrency.getUuid(), commerceCurrency.getGroupId()
}, commerceCurrency);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_C,
new Object[] {
commerceCurrency.getGroupId(), commerceCurrency.getCode()
}, commerceCurrency);
commerceCurrency.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceCurrency",
"commerceCurrency",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceCurrencyModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceCurrencyImpl",
".",
"class",
",",
"commerceCurrency",
"... | Caches the commerce currency in the entity cache if it is enabled.
@param commerceCurrency the commerce currency | [
"Caches",
"the",
"commerce",
"currency",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java#L3950-L3967 | train |
liferay/com-liferay-commerce | commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java | CommerceCurrencyPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
for (CommerceCurrency commerceCurrency : commerceCurrencies) {
if (entityCache.getResult(
CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class,
commerceCurrency.getPrimaryKey()) == null) {
cacheResult(commerceCurrency);
}
else {
commerceCurrency.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
for (CommerceCurrency commerceCurrency : commerceCurrencies) {
if (entityCache.getResult(
CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class,
commerceCurrency.getPrimaryKey()) == null) {
cacheResult(commerceCurrency);
}
else {
commerceCurrency.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceCurrency",
">",
"commerceCurrencies",
")",
"{",
"for",
"(",
"CommerceCurrency",
"commerceCurrency",
":",
"commerceCurrencies",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"(",
... | Caches the commerce currencies in the entity cache if it is enabled.
@param commerceCurrencies the commerce currencies | [
"Caches",
"the",
"commerce",
"currencies",
"in",
"the",
"entity",
"cache",
"if",
"it",
"is",
"enabled",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java#L3974-L3987 | train |
liferay/com-liferay-commerce | commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java | CommerceCurrencyPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceCurrencyImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceCurrencyImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceCurrencyImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
... | Clears the cache for all commerce currencies.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"currencies",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java#L3996-L4003 | train |
liferay/com-liferay-commerce | commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java | CommerceCurrencyPersistenceImpl.clearCache | @Override
public void clearCache(CommerceCurrency commerceCurrency) {
entityCache.removeResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceCurrencyModelImpl)commerceCurrency,
true);
} | java | @Override
public void clearCache(CommerceCurrency commerceCurrency) {
entityCache.removeResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceCurrencyModelImpl)commerceCurrency,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceCurrency",
"commerceCurrency",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceCurrencyModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceCurrencyImpl",
".",
"class",
",",
"commerceCurrency",
... | Clears the cache for the commerce currency.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"currency",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java#L4012-L4022 | train |
liferay/com-liferay-commerce | commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java | CommerceCurrencyPersistenceImpl.findAll | @Override
public List<CommerceCurrency> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceCurrency> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceCurrency",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce currencies.
@return the commerce currencies | [
"Returns",
"all",
"the",
"commerce",
"currencies",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-currency-service/src/main/java/com/liferay/commerce/currency/service/persistence/impl/CommerceCurrencyPersistenceImpl.java#L4674-L4677 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/impl/CommerceTierPriceEntryLocalServiceImpl.java | CommerceTierPriceEntryLocalServiceImpl.upsertCommerceTierPriceEntry | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceTierPriceEntry upsertCommerceTierPriceEntry(
long commerceTierPriceEntryId, long commercePriceEntryId,
String externalReferenceCode, BigDecimal price,
BigDecimal promoPrice, int minQuantity,
String priceEntryExternalReferenceCode,
ServiceContext serviceContext)
throws PortalException {
// Update
if (commerceTierPriceEntryId > 0) {
try {
return updateCommerceTierPriceEntry(
commerceTierPriceEntryId, price, promoPrice, minQuantity,
serviceContext);
}
catch (NoSuchTierPriceEntryException nstpee) {
if (_log.isDebugEnabled()) {
_log.debug(
"Unable to find tier price entry with ID: " +
commerceTierPriceEntryId);
}
}
}
if (Validator.isNotNull(externalReferenceCode)) {
CommerceTierPriceEntry commerceTierPriceEntry =
commerceTierPriceEntryPersistence.fetchByC_ERC(
serviceContext.getCompanyId(), externalReferenceCode);
if (commerceTierPriceEntry != null) {
return updateCommerceTierPriceEntry(
commerceTierPriceEntry.getCommerceTierPriceEntryId(), price,
promoPrice, minQuantity, serviceContext);
}
}
// Add
if (commercePriceEntryId > 0) {
validate(0L, commercePriceEntryId, minQuantity);
CommercePriceEntry commercePriceEntry =
_commercePriceEntryPersistence.findByPrimaryKey(
commercePriceEntryId);
return addCommerceTierPriceEntry(
commercePriceEntry.getCommercePriceEntryId(),
externalReferenceCode, price, promoPrice, minQuantity,
serviceContext);
}
if (Validator.isNotNull(priceEntryExternalReferenceCode)) {
CommercePriceEntry commercePriceEntry =
_commercePriceEntryPersistence.findByC_ERC(
serviceContext.getCompanyId(),
priceEntryExternalReferenceCode);
validate(
0L, commercePriceEntry.getCommercePriceEntryId(), minQuantity);
return addCommerceTierPriceEntry(
commercePriceEntry.getCommercePriceEntryId(),
externalReferenceCode, price, promoPrice, minQuantity,
serviceContext);
}
StringBundler sb = new StringBundler(6);
sb.append("{commercePriceEntryId=");
sb.append(commercePriceEntryId);
sb.append(StringPool.COMMA_AND_SPACE);
sb.append("priceEntryExternalReferenceCode=");
sb.append(priceEntryExternalReferenceCode);
sb.append(CharPool.CLOSE_CURLY_BRACE);
throw new NoSuchPriceEntryException(sb.toString());
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceTierPriceEntry upsertCommerceTierPriceEntry(
long commerceTierPriceEntryId, long commercePriceEntryId,
String externalReferenceCode, BigDecimal price,
BigDecimal promoPrice, int minQuantity,
String priceEntryExternalReferenceCode,
ServiceContext serviceContext)
throws PortalException {
// Update
if (commerceTierPriceEntryId > 0) {
try {
return updateCommerceTierPriceEntry(
commerceTierPriceEntryId, price, promoPrice, minQuantity,
serviceContext);
}
catch (NoSuchTierPriceEntryException nstpee) {
if (_log.isDebugEnabled()) {
_log.debug(
"Unable to find tier price entry with ID: " +
commerceTierPriceEntryId);
}
}
}
if (Validator.isNotNull(externalReferenceCode)) {
CommerceTierPriceEntry commerceTierPriceEntry =
commerceTierPriceEntryPersistence.fetchByC_ERC(
serviceContext.getCompanyId(), externalReferenceCode);
if (commerceTierPriceEntry != null) {
return updateCommerceTierPriceEntry(
commerceTierPriceEntry.getCommerceTierPriceEntryId(), price,
promoPrice, minQuantity, serviceContext);
}
}
// Add
if (commercePriceEntryId > 0) {
validate(0L, commercePriceEntryId, minQuantity);
CommercePriceEntry commercePriceEntry =
_commercePriceEntryPersistence.findByPrimaryKey(
commercePriceEntryId);
return addCommerceTierPriceEntry(
commercePriceEntry.getCommercePriceEntryId(),
externalReferenceCode, price, promoPrice, minQuantity,
serviceContext);
}
if (Validator.isNotNull(priceEntryExternalReferenceCode)) {
CommercePriceEntry commercePriceEntry =
_commercePriceEntryPersistence.findByC_ERC(
serviceContext.getCompanyId(),
priceEntryExternalReferenceCode);
validate(
0L, commercePriceEntry.getCommercePriceEntryId(), minQuantity);
return addCommerceTierPriceEntry(
commercePriceEntry.getCommercePriceEntryId(),
externalReferenceCode, price, promoPrice, minQuantity,
serviceContext);
}
StringBundler sb = new StringBundler(6);
sb.append("{commercePriceEntryId=");
sb.append(commercePriceEntryId);
sb.append(StringPool.COMMA_AND_SPACE);
sb.append("priceEntryExternalReferenceCode=");
sb.append(priceEntryExternalReferenceCode);
sb.append(CharPool.CLOSE_CURLY_BRACE);
throw new NoSuchPriceEntryException(sb.toString());
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommerceTierPriceEntry",
"upsertCommerceTierPriceEntry",
"(",
"long",
"commerceTierPriceEntryId",
",",
"long",
"commercePriceEntryId",
",",
"String",
"externalReferenceCo... | This method is used to insert a new CommerceTierPriceEntry or update an
existing one
@param commerceTierPriceEntryId - <b>Only</b> used when updating an
entity; the matching one will be updated
@param commercePriceEntryId - <b>Only</b> used when adding a new entity
@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 price
@param promoPrice
@param minQuantity
@param priceEntryExternalReferenceCode - <b>Only</b> used when adding a
new entity, similar as <code>commercePriceEntryId</code> but the
external identifier code from a 3rd party system. If
commercePriceEntryId is used, it doesn't have any effect,
otherwise it tries to fetch the CommercePriceEntry against the
external code reference
@param serviceContext
@return CommerceTierPriceEntry
@throws PortalException | [
"This",
"method",
"is",
"used",
"to",
"insert",
"a",
"new",
"CommerceTierPriceEntry",
"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/CommerceTierPriceEntryLocalServiceImpl.java#L334-L413 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/impl/CommercePriceEntryLocalServiceImpl.java | CommercePriceEntryLocalServiceImpl.upsertCommercePriceEntry | @Indexable(type = IndexableType.REINDEX)
@Override
public CommercePriceEntry upsertCommercePriceEntry(
long commercePriceEntryId, long cProductId, String cpInstanceUuid,
long commercePriceListId, String externalReferenceCode,
BigDecimal price, BigDecimal promoPrice,
String skuExternalReferenceCode, ServiceContext serviceContext)
throws PortalException {
// Update
if (commercePriceEntryId > 0) {
try {
return updateCommercePriceEntry(
commercePriceEntryId, price, promoPrice, serviceContext);
}
catch (NoSuchPriceEntryException nspee) {
if (_log.isDebugEnabled()) {
_log.debug(
"Unable to find price entry with ID: " +
commercePriceEntryId);
}
}
}
if (Validator.isNotNull(externalReferenceCode)) {
CommercePriceEntry commercePriceEntry =
commercePriceEntryPersistence.fetchByC_ERC(
serviceContext.getCompanyId(), externalReferenceCode);
if (commercePriceEntry != null) {
return updateCommercePriceEntry(
commercePriceEntry.getCommercePriceEntryId(), price,
promoPrice, serviceContext);
}
}
// Add
if ((cProductId > 0) && (cpInstanceUuid != null)) {
validate(commercePriceListId, cpInstanceUuid);
return addCommercePriceEntry(
cProductId, cpInstanceUuid, commercePriceListId,
externalReferenceCode, price, promoPrice, serviceContext);
}
if (Validator.isNotNull(skuExternalReferenceCode)) {
CPInstance cpInstance =
_cpInstanceLocalService.getCPInstanceByExternalReferenceCode(
serviceContext.getCompanyId(), skuExternalReferenceCode);
validate(commercePriceListId, cpInstance.getCPInstanceUuid());
CPDefinition cpDefinition =
_cpDefinitionLocalService.getCPDefinition(
cpInstance.getCPDefinitionId());
return addCommercePriceEntry(
cpDefinition.getCProductId(), cpInstance.getCPInstanceUuid(),
commercePriceListId, externalReferenceCode, price, promoPrice,
serviceContext);
}
StringBundler sb = new StringBundler(9);
sb.append("{cProductId=");
sb.append(cProductId);
sb.append(StringPool.COMMA_AND_SPACE);
sb.append("cpInstanceUuid=");
sb.append(cpInstanceUuid);
sb.append(StringPool.COMMA_AND_SPACE);
sb.append("skuExternalReferenceCode=");
sb.append(skuExternalReferenceCode);
sb.append(CharPool.CLOSE_CURLY_BRACE);
throw new NoSuchCPInstanceException(sb.toString());
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommercePriceEntry upsertCommercePriceEntry(
long commercePriceEntryId, long cProductId, String cpInstanceUuid,
long commercePriceListId, String externalReferenceCode,
BigDecimal price, BigDecimal promoPrice,
String skuExternalReferenceCode, ServiceContext serviceContext)
throws PortalException {
// Update
if (commercePriceEntryId > 0) {
try {
return updateCommercePriceEntry(
commercePriceEntryId, price, promoPrice, serviceContext);
}
catch (NoSuchPriceEntryException nspee) {
if (_log.isDebugEnabled()) {
_log.debug(
"Unable to find price entry with ID: " +
commercePriceEntryId);
}
}
}
if (Validator.isNotNull(externalReferenceCode)) {
CommercePriceEntry commercePriceEntry =
commercePriceEntryPersistence.fetchByC_ERC(
serviceContext.getCompanyId(), externalReferenceCode);
if (commercePriceEntry != null) {
return updateCommercePriceEntry(
commercePriceEntry.getCommercePriceEntryId(), price,
promoPrice, serviceContext);
}
}
// Add
if ((cProductId > 0) && (cpInstanceUuid != null)) {
validate(commercePriceListId, cpInstanceUuid);
return addCommercePriceEntry(
cProductId, cpInstanceUuid, commercePriceListId,
externalReferenceCode, price, promoPrice, serviceContext);
}
if (Validator.isNotNull(skuExternalReferenceCode)) {
CPInstance cpInstance =
_cpInstanceLocalService.getCPInstanceByExternalReferenceCode(
serviceContext.getCompanyId(), skuExternalReferenceCode);
validate(commercePriceListId, cpInstance.getCPInstanceUuid());
CPDefinition cpDefinition =
_cpDefinitionLocalService.getCPDefinition(
cpInstance.getCPDefinitionId());
return addCommercePriceEntry(
cpDefinition.getCProductId(), cpInstance.getCPInstanceUuid(),
commercePriceListId, externalReferenceCode, price, promoPrice,
serviceContext);
}
StringBundler sb = new StringBundler(9);
sb.append("{cProductId=");
sb.append(cProductId);
sb.append(StringPool.COMMA_AND_SPACE);
sb.append("cpInstanceUuid=");
sb.append(cpInstanceUuid);
sb.append(StringPool.COMMA_AND_SPACE);
sb.append("skuExternalReferenceCode=");
sb.append(skuExternalReferenceCode);
sb.append(CharPool.CLOSE_CURLY_BRACE);
throw new NoSuchCPInstanceException(sb.toString());
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommercePriceEntry",
"upsertCommercePriceEntry",
"(",
"long",
"commercePriceEntryId",
",",
"long",
"cProductId",
",",
"String",
"cpInstanceUuid",
",",
"long",
"comm... | This method is used to insert a new CommercePriceEntry or update an
existing one
@param commercePriceEntryId - <b>Only</b> used when updating an entity
the matching one will be updated
@param cpInstanceId - <b>Only</b> used when adding a new entity
@param commercePriceListId - <b>Only</b> used when adding a new entity
to a price list
@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 price
@param promoPrice
@param skuExternalReferenceCode - <b>Only</b> used when adding a new
entity, similar as <code>cpInstanceId</code> but the external
identifier code from a 3rd party system. If cpInstanceId is used,
it doesn't have any effect, otherwise it tries to fetch the
CPInstance against the external code reference
@param serviceContext
@return CommercePriceEntry
@throws PortalException
@review | [
"This",
"method",
"is",
"used",
"to",
"insert",
"a",
"new",
"CommercePriceEntry",
"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/CommercePriceEntryLocalServiceImpl.java#L557-L634 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/base/CommerceNotificationQueueEntryLocalServiceBaseImpl.java | CommerceNotificationQueueEntryLocalServiceBaseImpl.addCommerceNotificationQueueEntry | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceNotificationQueueEntry addCommerceNotificationQueueEntry(
CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
commerceNotificationQueueEntry.setNew(true);
return commerceNotificationQueueEntryPersistence.update(commerceNotificationQueueEntry);
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CommerceNotificationQueueEntry addCommerceNotificationQueueEntry(
CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
commerceNotificationQueueEntry.setNew(true);
return commerceNotificationQueueEntryPersistence.update(commerceNotificationQueueEntry);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CommerceNotificationQueueEntry",
"addCommerceNotificationQueueEntry",
"(",
"CommerceNotificationQueueEntry",
"commerceNotificationQueueEntry",
")",
"{",
"commerceNotificationQu... | Adds the commerce notification queue entry to the database. Also notifies the appropriate model listeners.
@param commerceNotificationQueueEntry the commerce notification queue entry
@return the commerce notification queue entry that was added | [
"Adds",
"the",
"commerce",
"notification",
"queue",
"entry",
"to",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/base/CommerceNotificationQueueEntryLocalServiceBaseImpl.java#L87-L94 | train |
liferay/com-liferay-commerce | commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/base/CommerceNotificationQueueEntryLocalServiceBaseImpl.java | CommerceNotificationQueueEntryLocalServiceBaseImpl.deleteCommerceNotificationQueueEntry | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceNotificationQueueEntry deleteCommerceNotificationQueueEntry(
CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
return commerceNotificationQueueEntryPersistence.remove(commerceNotificationQueueEntry);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CommerceNotificationQueueEntry deleteCommerceNotificationQueueEntry(
CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
return commerceNotificationQueueEntryPersistence.remove(commerceNotificationQueueEntry);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CommerceNotificationQueueEntry",
"deleteCommerceNotificationQueueEntry",
"(",
"CommerceNotificationQueueEntry",
"commerceNotificationQueueEntry",
")",
"{",
"return",
"commerce... | Deletes the commerce notification queue entry from the database. Also notifies the appropriate model listeners.
@param commerceNotificationQueueEntry the commerce notification queue entry
@return the commerce notification queue entry that was removed | [
"Deletes",
"the",
"commerce",
"notification",
"queue",
"entry",
"from",
"the",
"database",
".",
"Also",
"notifies",
"the",
"appropriate",
"model",
"listeners",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-notification-service/src/main/java/com/liferay/commerce/notification/service/base/CommerceNotificationQueueEntryLocalServiceBaseImpl.java#L129-L134 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionWrapper.java | CPDefinitionWrapper.getTrashEntry | @Override
public com.liferay.trash.kernel.model.TrashEntry getTrashEntry()
throws com.liferay.portal.kernel.exception.PortalException {
return _cpDefinition.getTrashEntry();
} | java | @Override
public com.liferay.trash.kernel.model.TrashEntry getTrashEntry()
throws com.liferay.portal.kernel.exception.PortalException {
return _cpDefinition.getTrashEntry();
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"trash",
".",
"kernel",
".",
"model",
".",
"TrashEntry",
"getTrashEntry",
"(",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"exception",
".",
"PortalException",
"{",
"return... | Returns the trash entry created when this cp definition was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this cp definition.
@return the trash entry created when this cp definition was moved to the Recycle Bin | [
"Returns",
"the",
"trash",
"entry",
"created",
"when",
"this",
"cp",
"definition",
"was",
"moved",
"to",
"the",
"Recycle",
"Bin",
".",
"The",
"trash",
"entry",
"may",
"belong",
"to",
"one",
"of",
"the",
"ancestors",
"of",
"this",
"cp",
"definition",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionWrapper.java#L988-L992 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionWrapper.java | CPDefinitionWrapper.getTrashHandler | @Deprecated
@Override
public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
return _cpDefinition.getTrashHandler();
} | java | @Deprecated
@Override
public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
return _cpDefinition.getTrashHandler();
} | [
"@",
"Deprecated",
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
".",
"trash",
".",
"TrashHandler",
"getTrashHandler",
"(",
")",
"{",
"return",
"_cpDefinition",
".",
"getTrashHandler",
"(",
")",
";",
"}"
] | Returns the trash handler for this cp definition.
@return the trash handler for this cp definition
@deprecated As of 7.0.0, with no direct replacement | [
"Returns",
"the",
"trash",
"handler",
"for",
"this",
"cp",
"definition",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-api/src/main/java/com/liferay/commerce/product/model/CPDefinitionWrapper.java#L1010-L1014 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java | CommerceSubscriptionEntryPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceSubscriptionEntry commerceSubscriptionEntry) {
entityCache.putResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceSubscriptionEntryImpl.class,
commerceSubscriptionEntry.getPrimaryKey(), commerceSubscriptionEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceSubscriptionEntry.getUuid(),
commerceSubscriptionEntry.getGroupId()
}, commerceSubscriptionEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_C,
new Object[] {
commerceSubscriptionEntry.getCPInstanceUuid(),
commerceSubscriptionEntry.getCProductId(),
commerceSubscriptionEntry.getCommerceOrderItemId()
}, commerceSubscriptionEntry);
commerceSubscriptionEntry.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceSubscriptionEntry commerceSubscriptionEntry) {
entityCache.putResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceSubscriptionEntryImpl.class,
commerceSubscriptionEntry.getPrimaryKey(), commerceSubscriptionEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commerceSubscriptionEntry.getUuid(),
commerceSubscriptionEntry.getGroupId()
}, commerceSubscriptionEntry);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_C,
new Object[] {
commerceSubscriptionEntry.getCPInstanceUuid(),
commerceSubscriptionEntry.getCProductId(),
commerceSubscriptionEntry.getCommerceOrderItemId()
}, commerceSubscriptionEntry);
commerceSubscriptionEntry.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceSubscriptionEntry",
"commerceSubscriptionEntry",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceSubscriptionEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceSubscriptionEntryImpl",
".",
"clas... | Caches the commerce subscription entry in the entity cache if it is enabled.
@param commerceSubscriptionEntry the commerce subscription entry | [
"Caches",
"the",
"commerce",
"subscription",
"entry",
"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/CommerceSubscriptionEntryPersistenceImpl.java#L3412-L3432 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java | CommerceSubscriptionEntryPersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommerceSubscriptionEntry> commerceSubscriptionEntries) {
for (CommerceSubscriptionEntry commerceSubscriptionEntry : commerceSubscriptionEntries) {
if (entityCache.getResult(
CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceSubscriptionEntryImpl.class,
commerceSubscriptionEntry.getPrimaryKey()) == null) {
cacheResult(commerceSubscriptionEntry);
}
else {
commerceSubscriptionEntry.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommerceSubscriptionEntry> commerceSubscriptionEntries) {
for (CommerceSubscriptionEntry commerceSubscriptionEntry : commerceSubscriptionEntries) {
if (entityCache.getResult(
CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceSubscriptionEntryImpl.class,
commerceSubscriptionEntry.getPrimaryKey()) == null) {
cacheResult(commerceSubscriptionEntry);
}
else {
commerceSubscriptionEntry.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceSubscriptionEntry",
">",
"commerceSubscriptionEntries",
")",
"{",
"for",
"(",
"CommerceSubscriptionEntry",
"commerceSubscriptionEntry",
":",
"commerceSubscriptionEntries",
")",
"{",
"if",
"(",
... | Caches the commerce subscription entries in the entity cache if it is enabled.
@param commerceSubscriptionEntries the commerce subscription entries | [
"Caches",
"the",
"commerce",
"subscription",
"entries",
"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/CommerceSubscriptionEntryPersistenceImpl.java#L3439-L3453 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java | CommerceSubscriptionEntryPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceSubscriptionEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceSubscriptionEntryImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceSubscriptionEntryImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearC... | Clears the cache for all commerce subscription entries.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"subscription",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java#L3462-L3469 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java | CommerceSubscriptionEntryPersistenceImpl.clearCache | @Override
public void clearCache(CommerceSubscriptionEntry commerceSubscriptionEntry) {
entityCache.removeResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceSubscriptionEntryImpl.class,
commerceSubscriptionEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceSubscriptionEntryModelImpl)commerceSubscriptionEntry,
true);
} | java | @Override
public void clearCache(CommerceSubscriptionEntry commerceSubscriptionEntry) {
entityCache.removeResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
CommerceSubscriptionEntryImpl.class,
commerceSubscriptionEntry.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceSubscriptionEntryModelImpl)commerceSubscriptionEntry,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceSubscriptionEntry",
"commerceSubscriptionEntry",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceSubscriptionEntryModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceSubscriptionEntryImpl",
".",
"cl... | Clears the cache for the commerce subscription entry.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"subscription",
"entry",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java#L3478-L3489 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java | CommerceSubscriptionEntryPersistenceImpl.findAll | @Override
public List<CommerceSubscriptionEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceSubscriptionEntry> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceSubscriptionEntry",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce subscription entries.
@return the commerce subscription entries | [
"Returns",
"all",
"the",
"commerce",
"subscription",
"entries",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceSubscriptionEntryPersistenceImpl.java#L4125-L4128 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/impl/CPDefinitionLocalServiceImpl.java | CPDefinitionLocalServiceImpl.moveCPDefinitionToTrash | @Override
public CPDefinition moveCPDefinitionToTrash(
long userId, long cpDefinitionId)
throws PortalException {
CPDefinition cpDefinition = cpDefinitionPersistence.findByPrimaryKey(
cpDefinitionId);
return cpDefinitionLocalService.moveCPDefinitionToTrash(
userId, cpDefinition);
} | java | @Override
public CPDefinition moveCPDefinitionToTrash(
long userId, long cpDefinitionId)
throws PortalException {
CPDefinition cpDefinition = cpDefinitionPersistence.findByPrimaryKey(
cpDefinitionId);
return cpDefinitionLocalService.moveCPDefinitionToTrash(
userId, cpDefinition);
} | [
"@",
"Override",
"public",
"CPDefinition",
"moveCPDefinitionToTrash",
"(",
"long",
"userId",
",",
"long",
"cpDefinitionId",
")",
"throws",
"PortalException",
"{",
"CPDefinition",
"cpDefinition",
"=",
"cpDefinitionPersistence",
".",
"findByPrimaryKey",
"(",
"cpDefinitionId... | Moves the commerce product definition with the ID to the recycle bin.
@param userId the primary key of the user moving the commerce product
definition
@param cpDefinitionId the primary key of the commerce product definition
to be moved
@return the moved commerce product definition | [
"Moves",
"the",
"commerce",
"product",
"definition",
"with",
"the",
"ID",
"to",
"the",
"recycle",
"bin",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/impl/CPDefinitionLocalServiceImpl.java#L1439-L1449 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/impl/CPDefinitionLocalServiceImpl.java | CPDefinitionLocalServiceImpl.restoreCPDefinitionFromTrash | @Indexable(type = IndexableType.REINDEX)
@Override
public CPDefinition restoreCPDefinitionFromTrash(
long userId, long cpDefinitionId)
throws PortalException {
CPDefinition cpDefinition = cpDefinitionPersistence.findByPrimaryKey(
cpDefinitionId);
if (!cpDefinition.isInTrash()) {
throw new RestoreEntryException(
RestoreEntryException.INVALID_STATUS);
}
TrashEntry trashEntry = trashEntryLocalService.getEntry(
CPDefinition.class.getName(), cpDefinitionId);
cpDefinition = updateStatus(
userId, cpDefinitionId, trashEntry.getStatus(),
new ServiceContext(), new HashMap<String, Serializable>());
return cpDefinition;
} | java | @Indexable(type = IndexableType.REINDEX)
@Override
public CPDefinition restoreCPDefinitionFromTrash(
long userId, long cpDefinitionId)
throws PortalException {
CPDefinition cpDefinition = cpDefinitionPersistence.findByPrimaryKey(
cpDefinitionId);
if (!cpDefinition.isInTrash()) {
throw new RestoreEntryException(
RestoreEntryException.INVALID_STATUS);
}
TrashEntry trashEntry = trashEntryLocalService.getEntry(
CPDefinition.class.getName(), cpDefinitionId);
cpDefinition = updateStatus(
userId, cpDefinitionId, trashEntry.getStatus(),
new ServiceContext(), new HashMap<String, Serializable>());
return cpDefinition;
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"REINDEX",
")",
"@",
"Override",
"public",
"CPDefinition",
"restoreCPDefinitionFromTrash",
"(",
"long",
"userId",
",",
"long",
"cpDefinitionId",
")",
"throws",
"PortalException",
"{",
"CPDefinition",
"cpDefin... | Restores the commerce product definition with the ID from the recycle
bin.
@param userId the primary key of the user restoring the commerce product
definition
@param cpDefinitionId the primary key of the commerce product definition
to be restored
@return the restored commerce product definition from the recycle bin | [
"Restores",
"the",
"commerce",
"product",
"definition",
"with",
"the",
"ID",
"from",
"the",
"recycle",
"bin",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/impl/CPDefinitionLocalServiceImpl.java#L1461-L1483 | train |
liferay/com-liferay-commerce | commerce-product-api/src/main/java/com/liferay/commerce/product/service/CPSpecificationOptionLocalServiceWrapper.java | CPSpecificationOptionLocalServiceWrapper.getCPSpecificationOption | @Override
public com.liferay.commerce.product.model.CPSpecificationOption getCPSpecificationOption(
long CPSpecificationOptionId)
throws com.liferay.portal.kernel.exception.PortalException {
return _cpSpecificationOptionLocalService.getCPSpecificationOption(CPSpecificationOptionId);
} | java | @Override
public com.liferay.commerce.product.model.CPSpecificationOption getCPSpecificationOption(
long CPSpecificationOptionId)
throws com.liferay.portal.kernel.exception.PortalException {
return _cpSpecificationOptionLocalService.getCPSpecificationOption(CPSpecificationOptionId);
} | [
"@",
"Override",
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"product",
".",
"model",
".",
"CPSpecificationOption",
"getCPSpecificationOption",
"(",
"long",
"CPSpecificationOptionId",
")",
"throws",
"com",
".",
"liferay",
".",
"portal",
".",
"kernel",
... | Returns the cp specification option with the primary key.
@param CPSpecificationOptionId the primary key of the cp specification option
@return the cp specification option
@throws PortalException if a cp specification option with the primary key could not be found | [
"Returns",
"the",
"cp",
"specification",
"option",
"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/CPSpecificationOptionLocalServiceWrapper.java#L242-L247 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-order-service/src/main/java/com/liferay/commerce/product/type/virtual/order/service/base/CommerceVirtualOrderItemServiceBaseImpl.java | CommerceVirtualOrderItemServiceBaseImpl.getCommerceVirtualOrderItemLocalService | public com.liferay.commerce.product.type.virtual.order.service.CommerceVirtualOrderItemLocalService getCommerceVirtualOrderItemLocalService() {
return commerceVirtualOrderItemLocalService;
} | java | public com.liferay.commerce.product.type.virtual.order.service.CommerceVirtualOrderItemLocalService getCommerceVirtualOrderItemLocalService() {
return commerceVirtualOrderItemLocalService;
} | [
"public",
"com",
".",
"liferay",
".",
"commerce",
".",
"product",
".",
"type",
".",
"virtual",
".",
"order",
".",
"service",
".",
"CommerceVirtualOrderItemLocalService",
"getCommerceVirtualOrderItemLocalService",
"(",
")",
"{",
"return",
"commerceVirtualOrderItemLocalSe... | Returns the commerce virtual order item local service.
@return the commerce virtual order item local service | [
"Returns",
"the",
"commerce",
"virtual",
"order",
"item",
"local",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-order-service/src/main/java/com/liferay/commerce/product/type/virtual/order/service/base/CommerceVirtualOrderItemServiceBaseImpl.java#L63-L65 | train |
liferay/com-liferay-commerce | commerce-product-type-virtual-order-service/src/main/java/com/liferay/commerce/product/type/virtual/order/service/base/CommerceVirtualOrderItemServiceBaseImpl.java | CommerceVirtualOrderItemServiceBaseImpl.setDLAppService | public void setDLAppService(
com.liferay.document.library.kernel.service.DLAppService dlAppService) {
this.dlAppService = dlAppService;
} | java | public void setDLAppService(
com.liferay.document.library.kernel.service.DLAppService dlAppService) {
this.dlAppService = dlAppService;
} | [
"public",
"void",
"setDLAppService",
"(",
"com",
".",
"liferay",
".",
"document",
".",
"library",
".",
"kernel",
".",
"service",
".",
"DLAppService",
"dlAppService",
")",
"{",
"this",
".",
"dlAppService",
"=",
"dlAppService",
";",
"}"
] | Sets the dl app remote service.
@param dlAppService the dl app remote service | [
"Sets",
"the",
"dl",
"app",
"remote",
"service",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-type-virtual-order-service/src/main/java/com/liferay/commerce/product/type/virtual/order/service/base/CommerceVirtualOrderItemServiceBaseImpl.java#L318-L321 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListPersistenceImpl.java | CommercePriceListPersistenceImpl.cacheResult | @Override
public void cacheResult(CommercePriceList commercePriceList) {
entityCache.putResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListImpl.class, commercePriceList.getPrimaryKey(),
commercePriceList);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commercePriceList.getUuid(), commercePriceList.getGroupId()
}, commercePriceList);
finderCache.putResult(FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID,
new Object[] { commercePriceList.getParentCommercePriceListId() },
commercePriceList);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
new Object[] {
commercePriceList.getCompanyId(),
commercePriceList.getExternalReferenceCode()
}, commercePriceList);
commercePriceList.resetOriginalValues();
} | java | @Override
public void cacheResult(CommercePriceList commercePriceList) {
entityCache.putResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListImpl.class, commercePriceList.getPrimaryKey(),
commercePriceList);
finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
new Object[] {
commercePriceList.getUuid(), commercePriceList.getGroupId()
}, commercePriceList);
finderCache.putResult(FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID,
new Object[] { commercePriceList.getParentCommercePriceListId() },
commercePriceList);
finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
new Object[] {
commercePriceList.getCompanyId(),
commercePriceList.getExternalReferenceCode()
}, commercePriceList);
commercePriceList.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommercePriceList",
"commercePriceList",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommercePriceListModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommercePriceListImpl",
".",
"class",
",",
"commercePriceList"... | Caches the commerce price list in the entity cache if it is enabled.
@param commercePriceList the commerce price list | [
"Caches",
"the",
"commerce",
"price",
"list",
"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/CommercePriceListPersistenceImpl.java#L5190-L5212 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListPersistenceImpl.java | CommercePriceListPersistenceImpl.cacheResult | @Override
public void cacheResult(List<CommercePriceList> commercePriceLists) {
for (CommercePriceList commercePriceList : commercePriceLists) {
if (entityCache.getResult(
CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListImpl.class,
commercePriceList.getPrimaryKey()) == null) {
cacheResult(commercePriceList);
}
else {
commercePriceList.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(List<CommercePriceList> commercePriceLists) {
for (CommercePriceList commercePriceList : commercePriceLists) {
if (entityCache.getResult(
CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListImpl.class,
commercePriceList.getPrimaryKey()) == null) {
cacheResult(commercePriceList);
}
else {
commercePriceList.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommercePriceList",
">",
"commercePriceLists",
")",
"{",
"for",
"(",
"CommercePriceList",
"commercePriceList",
":",
"commercePriceLists",
")",
"{",
"if",
"(",
"entityCache",
".",
"getResult",
"("... | Caches the commerce price lists in the entity cache if it is enabled.
@param commercePriceLists the commerce price lists | [
"Caches",
"the",
"commerce",
"price",
"lists",
"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/CommercePriceListPersistenceImpl.java#L5219-L5232 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListPersistenceImpl.java | CommercePriceListPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommercePriceListImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommercePriceListImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommercePriceListImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCache",
... | Clears the cache for all commerce price lists.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"price",
"lists",
"."
] | 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/CommercePriceListPersistenceImpl.java#L5241-L5248 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListPersistenceImpl.java | CommercePriceListPersistenceImpl.clearCache | @Override
public void clearCache(CommercePriceList commercePriceList) {
entityCache.removeResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListImpl.class, commercePriceList.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommercePriceListModelImpl)commercePriceList,
true);
} | java | @Override
public void clearCache(CommercePriceList commercePriceList) {
entityCache.removeResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
CommercePriceListImpl.class, commercePriceList.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommercePriceListModelImpl)commercePriceList,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommercePriceList",
"commercePriceList",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommercePriceListModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommercePriceListImpl",
".",
"class",
",",
"commercePriceLis... | Clears the cache for the commerce price list.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"price",
"list",
"."
] | 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/CommercePriceListPersistenceImpl.java#L5257-L5267 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListPersistenceImpl.java | CommercePriceListPersistenceImpl.remove | @Override
public CommercePriceList remove(Serializable primaryKey)
throws NoSuchPriceListException {
Session session = null;
try {
session = openSession();
CommercePriceList commercePriceList = (CommercePriceList)session.get(CommercePriceListImpl.class,
primaryKey);
if (commercePriceList == null) {
if (_log.isDebugEnabled()) {
_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
}
throw new NoSuchPriceListException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
primaryKey);
}
return remove(commercePriceList);
}
catch (NoSuchPriceListException nsee) {
throw nsee;
}
catch (Exception e) {
throw processException(e);
}
finally {
closeSession(session);
}
} | java | @Override
public CommercePriceList remove(Serializable primaryKey)
throws NoSuchPriceListException {
Session session = null;
try {
session = openSession();
CommercePriceList commercePriceList = (CommercePriceList)session.get(CommercePriceListImpl.class,
primaryKey);
if (commercePriceList == null) {
if (_log.isDebugEnabled()) {
_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
}
throw new NoSuchPriceListException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
primaryKey);
}
return remove(commercePriceList);
}
catch (NoSuchPriceListException nsee) {
throw nsee;
}
catch (Exception e) {
throw processException(e);
}
finally {
closeSession(session);
}
} | [
"@",
"Override",
"public",
"CommercePriceList",
"remove",
"(",
"Serializable",
"primaryKey",
")",
"throws",
"NoSuchPriceListException",
"{",
"Session",
"session",
"=",
"null",
";",
"try",
"{",
"session",
"=",
"openSession",
"(",
")",
";",
"CommercePriceList",
"com... | Removes the commerce price list with the primary key from the database. Also notifies the appropriate model listeners.
@param primaryKey the primary key of the commerce price list
@return the commerce price list that was removed
@throws NoSuchPriceListException if a commerce price list with the primary key could not be found | [
"Removes",
"the",
"commerce",
"price",
"list",
"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/CommercePriceListPersistenceImpl.java#L5426-L5457 | train |
liferay/com-liferay-commerce | commerce-price-list-service/src/main/java/com/liferay/commerce/price/list/service/persistence/impl/CommercePriceListPersistenceImpl.java | CommercePriceListPersistenceImpl.findAll | @Override
public List<CommercePriceList> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommercePriceList> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommercePriceList",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce price lists.
@return the commerce price lists | [
"Returns",
"all",
"the",
"commerce",
"price",
"lists",
"."
] | 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/CommercePriceListPersistenceImpl.java#L5942-L5945 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CProductLocalServiceBaseImpl.java | CProductLocalServiceBaseImpl.deleteCProduct | @Indexable(type = IndexableType.DELETE)
@Override
public CProduct deleteCProduct(long CProductId) throws PortalException {
return cProductPersistence.remove(CProductId);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CProduct deleteCProduct(long CProductId) throws PortalException {
return cProductPersistence.remove(CProductId);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CProduct",
"deleteCProduct",
"(",
"long",
"CProductId",
")",
"throws",
"PortalException",
"{",
"return",
"cProductPersistence",
".",
"remove",
"(",
"CProductId",
... | Deletes the c product with the primary key from the database. Also notifies the appropriate model listeners.
@param CProductId the primary key of the c product
@return the c product that was removed
@throws PortalException if a c product with the primary key could not be found | [
"Deletes",
"the",
"c",
"product",
"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/CProductLocalServiceBaseImpl.java#L138-L142 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CProductLocalServiceBaseImpl.java | CProductLocalServiceBaseImpl.deleteCProduct | @Indexable(type = IndexableType.DELETE)
@Override
public CProduct deleteCProduct(CProduct cProduct) {
return cProductPersistence.remove(cProduct);
} | java | @Indexable(type = IndexableType.DELETE)
@Override
public CProduct deleteCProduct(CProduct cProduct) {
return cProductPersistence.remove(cProduct);
} | [
"@",
"Indexable",
"(",
"type",
"=",
"IndexableType",
".",
"DELETE",
")",
"@",
"Override",
"public",
"CProduct",
"deleteCProduct",
"(",
"CProduct",
"cProduct",
")",
"{",
"return",
"cProductPersistence",
".",
"remove",
"(",
"cProduct",
")",
";",
"}"
] | Deletes the c product from the database. Also notifies the appropriate model listeners.
@param cProduct the c product
@return the c product that was removed | [
"Deletes",
"the",
"c",
"product",
"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/CProductLocalServiceBaseImpl.java#L150-L154 | train |
liferay/com-liferay-commerce | commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CProductLocalServiceBaseImpl.java | CProductLocalServiceBaseImpl.getCProductsByUuidAndCompanyId | @Override
public List<CProduct> getCProductsByUuidAndCompanyId(String uuid,
long companyId, int start, int end,
OrderByComparator<CProduct> orderByComparator) {
return cProductPersistence.findByUuid_C(uuid, companyId, start, end,
orderByComparator);
} | java | @Override
public List<CProduct> getCProductsByUuidAndCompanyId(String uuid,
long companyId, int start, int end,
OrderByComparator<CProduct> orderByComparator) {
return cProductPersistence.findByUuid_C(uuid, companyId, start, end,
orderByComparator);
} | [
"@",
"Override",
"public",
"List",
"<",
"CProduct",
">",
"getCProductsByUuidAndCompanyId",
"(",
"String",
"uuid",
",",
"long",
"companyId",
",",
"int",
"start",
",",
"int",
"end",
",",
"OrderByComparator",
"<",
"CProduct",
">",
"orderByComparator",
")",
"{",
"... | Returns a range of c products matching the UUID and company.
@param uuid the UUID of the c products
@param companyId the primary key of the company
@param start the lower bound of the range of c products
@param end the upper bound of the range of c products (not inclusive)
@param orderByComparator the comparator to order the results by (optionally <code>null</code>)
@return the range of matching c products, or an empty list if no matches were found | [
"Returns",
"a",
"range",
"of",
"c",
"products",
"matching",
"the",
"UUID",
"and",
"company",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-product-service/src/main/java/com/liferay/commerce/product/service/base/CProductLocalServiceBaseImpl.java#L391-L397 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java | CommerceShippingMethodPersistenceImpl.cacheResult | @Override
public void cacheResult(CommerceShippingMethod commerceShippingMethod) {
entityCache.putResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceShippingMethodImpl.class,
commerceShippingMethod.getPrimaryKey(), commerceShippingMethod);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
new Object[] {
commerceShippingMethod.getGroupId(),
commerceShippingMethod.getEngineKey()
}, commerceShippingMethod);
commerceShippingMethod.resetOriginalValues();
} | java | @Override
public void cacheResult(CommerceShippingMethod commerceShippingMethod) {
entityCache.putResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceShippingMethodImpl.class,
commerceShippingMethod.getPrimaryKey(), commerceShippingMethod);
finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
new Object[] {
commerceShippingMethod.getGroupId(),
commerceShippingMethod.getEngineKey()
}, commerceShippingMethod);
commerceShippingMethod.resetOriginalValues();
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"CommerceShippingMethod",
"commerceShippingMethod",
")",
"{",
"entityCache",
".",
"putResult",
"(",
"CommerceShippingMethodModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceShippingMethodImpl",
".",
"class",
",",
... | Caches the commerce shipping method in the entity cache if it is enabled.
@param commerceShippingMethod the commerce shipping method | [
"Caches",
"the",
"commerce",
"shipping",
"method",
"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/CommerceShippingMethodPersistenceImpl.java#L1433-L1446 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java | CommerceShippingMethodPersistenceImpl.cacheResult | @Override
public void cacheResult(
List<CommerceShippingMethod> commerceShippingMethods) {
for (CommerceShippingMethod commerceShippingMethod : commerceShippingMethods) {
if (entityCache.getResult(
CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceShippingMethodImpl.class,
commerceShippingMethod.getPrimaryKey()) == null) {
cacheResult(commerceShippingMethod);
}
else {
commerceShippingMethod.resetOriginalValues();
}
}
} | java | @Override
public void cacheResult(
List<CommerceShippingMethod> commerceShippingMethods) {
for (CommerceShippingMethod commerceShippingMethod : commerceShippingMethods) {
if (entityCache.getResult(
CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceShippingMethodImpl.class,
commerceShippingMethod.getPrimaryKey()) == null) {
cacheResult(commerceShippingMethod);
}
else {
commerceShippingMethod.resetOriginalValues();
}
}
} | [
"@",
"Override",
"public",
"void",
"cacheResult",
"(",
"List",
"<",
"CommerceShippingMethod",
">",
"commerceShippingMethods",
")",
"{",
"for",
"(",
"CommerceShippingMethod",
"commerceShippingMethod",
":",
"commerceShippingMethods",
")",
"{",
"if",
"(",
"entityCache",
... | Caches the commerce shipping methods in the entity cache if it is enabled.
@param commerceShippingMethods the commerce shipping methods | [
"Caches",
"the",
"commerce",
"shipping",
"methods",
"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/CommerceShippingMethodPersistenceImpl.java#L1453-L1467 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java | CommerceShippingMethodPersistenceImpl.clearCache | @Override
public void clearCache() {
entityCache.clearCache(CommerceShippingMethodImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | java | @Override
public void clearCache() {
entityCache.clearCache(CommerceShippingMethodImpl.class);
finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
")",
"{",
"entityCache",
".",
"clearCache",
"(",
"CommerceShippingMethodImpl",
".",
"class",
")",
";",
"finderCache",
".",
"clearCache",
"(",
"FINDER_CLASS_NAME_ENTITY",
")",
";",
"finderCache",
".",
"clearCach... | Clears the cache for all commerce shipping methods.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"all",
"commerce",
"shipping",
"methods",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java#L1476-L1483 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java | CommerceShippingMethodPersistenceImpl.clearCache | @Override
public void clearCache(CommerceShippingMethod commerceShippingMethod) {
entityCache.removeResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceShippingMethodImpl.class,
commerceShippingMethod.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceShippingMethodModelImpl)commerceShippingMethod,
true);
} | java | @Override
public void clearCache(CommerceShippingMethod commerceShippingMethod) {
entityCache.removeResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceShippingMethodImpl.class,
commerceShippingMethod.getPrimaryKey());
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache((CommerceShippingMethodModelImpl)commerceShippingMethod,
true);
} | [
"@",
"Override",
"public",
"void",
"clearCache",
"(",
"CommerceShippingMethod",
"commerceShippingMethod",
")",
"{",
"entityCache",
".",
"removeResult",
"(",
"CommerceShippingMethodModelImpl",
".",
"ENTITY_CACHE_ENABLED",
",",
"CommerceShippingMethodImpl",
".",
"class",
",",... | Clears the cache for the commerce shipping method.
<p>
The {@link EntityCache} and {@link FinderCache} are both cleared by this method.
</p> | [
"Clears",
"the",
"cache",
"for",
"the",
"commerce",
"shipping",
"method",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java#L1492-L1503 | train |
liferay/com-liferay-commerce | commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java | CommerceShippingMethodPersistenceImpl.findAll | @Override
public List<CommerceShippingMethod> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | java | @Override
public List<CommerceShippingMethod> findAll() {
return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@",
"Override",
"public",
"List",
"<",
"CommerceShippingMethod",
">",
"findAll",
"(",
")",
"{",
"return",
"findAll",
"(",
"QueryUtil",
".",
"ALL_POS",
",",
"QueryUtil",
".",
"ALL_POS",
",",
"null",
")",
";",
"}"
] | Returns all the commerce shipping methods.
@return the commerce shipping methods | [
"Returns",
"all",
"the",
"commerce",
"shipping",
"methods",
"."
] | 9e54362d7f59531fc684016ba49ee7cdc3a2f22b | https://github.com/liferay/com-liferay-commerce/blob/9e54362d7f59531fc684016ba49ee7cdc3a2f22b/commerce-service/src/main/java/com/liferay/commerce/service/persistence/impl/CommerceShippingMethodPersistenceImpl.java#L2007-L2010 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.