當前位置: 首頁>>代碼示例>>Java>>正文


Java ProductTypeDeleteCommand類代碼示例

本文整理匯總了Java中io.sphere.sdk.producttypes.commands.ProductTypeDeleteCommand的典型用法代碼示例。如果您正苦於以下問題:Java ProductTypeDeleteCommand類的具體用法?Java ProductTypeDeleteCommand怎麽用?Java ProductTypeDeleteCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProductTypeDeleteCommand類屬於io.sphere.sdk.producttypes.commands包,在下文中一共展示了ProductTypeDeleteCommand類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: productTypeDeleteItemWriter

import io.sphere.sdk.producttypes.commands.ProductTypeDeleteCommand; //導入依賴的package包/類
@Bean
public ItemWriter<ProductType> productTypeDeleteItemWriter(final BlockingSphereClient sphereClient) {
    return items -> items.forEach(item -> sphereClient.executeBlocking(ProductTypeDeleteCommand.of(item)));
}
 
開發者ID:commercetools,項目名稱:commercetools-sunrise-data,代碼行數:5,代碼來源:ProductTypesDeleteJobConfiguration.java

示例2: deleteProductTypeWithRetry

import io.sphere.sdk.producttypes.commands.ProductTypeDeleteCommand; //導入依賴的package包/類
public static void deleteProductTypeWithRetry(final BlockingSphereClient client, final ProductType productTypeAfterTest) {
    deleteWithRetry(client, productTypeAfterTest, ProductTypeDeleteCommand::of, DEFAULT_DELETE_TTL);
}
 
開發者ID:commercetools,項目名稱:commercetools-sunrise-java,代碼行數:4,代碼來源:ProductTypeTestFixtures.java

示例3: deleteProductTypes

import io.sphere.sdk.producttypes.commands.ProductTypeDeleteCommand; //導入依賴的package包/類
/**
 * Deletes all product types from the CTP project defined by the {@code ctpClient}.
 *
 * @param ctpClient defines the CTP project to delete the categories from.
 */
public static void deleteProductTypes(@Nonnull final SphereClient ctpClient) {
    queryAndApply(ctpClient, ProductTypeQuery::of, ProductTypeDeleteCommand::of);
}
 
開發者ID:commercetools,項目名稱:commercetools-sync-java,代碼行數:9,代碼來源:ProductTypeITUtils.java


注:本文中的io.sphere.sdk.producttypes.commands.ProductTypeDeleteCommand類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。