public interface OrderEditDeleteCommand extends MetaModelReferenceExpansionDsl<OrderEdit,OrderEditDeleteCommand,OrderEditExpansionModel<OrderEdit>>, DeleteCommand<OrderEdit>
OrderEdit
.
withOrder(client(), order -> { final OrderEdit orderEdit = createOrderEdit(order); assertThat(orderEdit).isNotNull(); assertThat(orderEdit.getResult()).isNotNull(); final OrderEditDeleteCommand orderEditDeleteCommand = OrderEditDeleteCommand.of(orderEdit); client().executeBlocking(orderEditDeleteCommand); final OrderEditByIdGet orderEditByIdGet = OrderEditByIdGet.of(orderEdit.getId()); final OrderEdit deletedOrderEdit = client().executeBlocking(orderEditByIdGet); assertThat(deletedOrderEdit).isNull(); return order; });
See the test code.
OrderEdit
Modifier and Type | Method and Description |
---|---|
static OrderEditDeleteCommand |
of(Versioned<OrderEdit> versioned)
Creates a command object to delete a
OrderEdit by ID. |
static OrderEditDeleteCommand |
ofId(String id,
Long version)
Creates a command object to delete a
OrderEdit by its id. |
static OrderEditDeleteCommand |
ofKey(String key,
Long version)
Creates a command object to delete a
OrderEdit by its key. |
plusExpansionPaths, withExpansionPaths
plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths
expansionPaths
canDeserialize, deserialize, httpRequestIntent
static OrderEditDeleteCommand of(Versioned<OrderEdit> versioned)
OrderEdit
by ID.versioned
- the object to delete (so directly a OrderEdit
) or just the version/ID information of itstatic OrderEditDeleteCommand ofKey(String key, Long version)
OrderEdit
by its key.key
- the key of the OrderEdit to delete, see OrderEdit.getKey()
version
- `the current version of the OrderEdit, see OrderEdit.getVersion()
static OrderEditDeleteCommand ofId(String id, Long version)
OrderEdit
by its id.id
- the id of the OrderEdit to delete, see OrderEdit.getId()
version
- `the current version of the OrderEdit, see OrderEdit.getVersion()