org.odata4j.consumer
Class ConsumerDeleteEntityRequest
java.lang.Object
org.odata4j.consumer.AbstractConsumerEntityRequest<Void>
org.odata4j.consumer.ConsumerDeleteEntityRequest
- All Implemented Interfaces:
- OEntityDeleteRequest, OEntityRequest<Void>
public class ConsumerDeleteEntityRequest
- extends AbstractConsumerEntityRequest<Void>
- implements OEntityDeleteRequest
Delete-request implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumerDeleteEntityRequest
public ConsumerDeleteEntityRequest(ODataClient client,
String serviceRootUri,
EdmDataServices metadata,
String entitySetName,
OEntityKey key,
String ifMatch)
execute
public Void execute()
throws ODataProducerException
- Description copied from interface:
OEntityRequest
- Sends the entity-request to the OData service and returns the response.
- Specified by:
execute
in interface OEntityRequest<Void>
- Returns:
- the operation response
- Throws:
ODataProducerException
- error from the producer
ifMatch
public OEntityDeleteRequest ifMatch(String precondition)
- Description copied from interface:
OEntityDeleteRequest
- Overrides the If-Match precondition.
The If-Match header will default to the entity-tag of the entity used to start the builder sequence.
- Specified by:
ifMatch
in interface OEntityDeleteRequest
- Parameters:
precondition
- null
, an entity-tag, or *
- Returns:
- the modification-request builder
http://odata4j.org