public interface ProductDeleteCommand extends MetaModelReferenceExpansionDsl<Product,ProductDeleteCommand,ProductExpansionModel<Product>>, DeleteCommand<Product>
Product
.
final DeleteCommand<Product> command = ProductDeleteCommand.of(product); final CompletionStage<Product> deletedProduct = client.execute(command);
See the test code.
Product
Modifier and Type | Method and Description |
---|---|
static ProductDeleteCommand |
of(Versioned<Product> versioned)
Creates a command object to delete a
Product by ID. |
static ProductDeleteCommand |
ofKey(String key,
Long version)
Creates a command object to delete a
Product by its key. |
plusExpansionPaths, withExpansionPaths
plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths
expansionPaths
canDeserialize, deserialize, httpRequestIntent
static ProductDeleteCommand of(Versioned<Product> versioned)
Product
by ID.versioned
- the object to delete (so directly a Product
) or just the version/ID information of itstatic ProductDeleteCommand ofKey(String key, Long version)
Product
by its key.key
- the key of the Product to delete, see ProductLike.getKey()
version
- `the current version of the Product, see ResourceView.getVersion()