Class FluentHelperDelete<FluentHelperT,EntityT extends VdmEntity<?>>
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic<FluentHelperT,EntityT,ModificationResponse<EntityT>>
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperModification<FluentHelperT,EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperDelete<FluentHelperT,EntityT>
- Type Parameters:
FluentHelperT
- The fluent helper type.EntityT
- The type of the entity to delete.
- All Implemented Interfaces:
FluentHelperExecutable<Object>
public abstract class FluentHelperDelete<FluentHelperT,EntityT extends VdmEntity<?>>
extends FluentHelperModification<FluentHelperT,EntityT>
Representation of an OData delete request as a fluent interface for further configuring the request and
executing
it.-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
csrfTokenRetriever, entityCollection
-
Constructor Summary
ConstructorDescriptionFluentHelperDelete
(String servicePath, String entityCollection) Instantiates this fluent helper using the given service path and entity collection to send the requests. -
Method Summary
Modifier and TypeMethodDescriptionThe delete request will ignore any version identifier present on the entity and not send an `If-Match` header.executeRequest
(Destination destination) Executes this request.protected abstract EntityT
The entity object to be deleted by calling theexecuteRequest(Destination)
method.Returns a class object of the type this fluent helper works with.The delete request will ignore any version identifier present on the entity and delete the entity, regardless of any changes on the remote entity.Translate this OData v2 request into a OData request object extendingODataRequestGeneric
.Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperModification
withoutCsrfToken
Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
getCsrfTokenRetriever, getHeaders, getParametersForRequestOnly, getServicePath, getThis, withHeader, withHeaders, withQueryParameter
-
Constructor Details
-
FluentHelperDelete
Instantiates this fluent helper using the given service path and entity collection to send the requests.- Parameters:
servicePath
- The service path to direct the requests to.entityCollection
- The entity collection to direct the requests to.
-
-
Method Details
-
getEntity
The entity object to be deleted by calling theexecuteRequest(Destination)
method.- Returns:
- The entity to be deleted.
-
getEntityClass
Description copied from class:FluentHelperBasic
Returns a class object of the type this fluent helper works with.- Specified by:
getEntityClass
in classFluentHelperBasic<FluentHelperT,
EntityT extends VdmEntity<?>, ModificationResponse<EntityT extends VdmEntity<?>>> - Returns:
- A class object of the handled type.
-
disableVersionIdentifier
The delete request will ignore any version identifier present on the entity and not send an `If-Match` header.Warning: This might lead to a response from the remote system that the `If-Match` header is missing.
It depends on the implementation of the remote system whether the `If-Match` header is expected.
- Returns:
- The same request builder that will not send the `If-Match` header in the update request
-
matchAnyVersionIdentifier
The delete request will ignore any version identifier present on the entity and delete the entity, regardless of any changes on the remote entity.Warning: Be careful with this option, as this might overwrite any changes made to the remote representation of this object.
- Returns:
- The same request builder that will ignore the version identifier of the entity to update
-
executeRequest
Description copied from interface:FluentHelperExecutable
Executes this request.- Specified by:
executeRequest
in interfaceFluentHelperExecutable<FluentHelperT>
- Specified by:
executeRequest
in classFluentHelperBasic<FluentHelperT,
EntityT extends VdmEntity<?>, ModificationResponse<EntityT extends VdmEntity<?>>> - Parameters:
destination
- The target system this request should be issued against.- Returns:
- A response according to the query criteria.
-
toRequest
Description copied from class:FluentHelperBasic
Translate this OData v2 request into a OData request object extendingODataRequestGeneric
.- Specified by:
toRequest
in classFluentHelperBasic<FluentHelperT,
EntityT extends VdmEntity<?>, ModificationResponse<EntityT extends VdmEntity<?>>> - Returns:
- A protocol agnostic OData request instance.
-