本文整理汇总了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);
}