本文整理匯總了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);
}
示例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);
}