org.odata4j.consumer
Class ConsumerDeleteEntityRequest

java.lang.Object
  extended by org.odata4j.consumer.AbstractConsumerEntityRequest<Void>
      extended by org.odata4j.consumer.ConsumerDeleteEntityRequest
All Implemented Interfaces:
OEntityDeleteRequest, OEntityRequest<Void>

public class ConsumerDeleteEntityRequest
extends AbstractConsumerEntityRequest<Void>
implements OEntityDeleteRequest

Delete-request implementation.


Constructor Summary
ConsumerDeleteEntityRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, String entitySetName, OEntityKey key, String ifMatch)
           
 
Method Summary
 Void execute()
          Sends the entity-request to the OData service and returns the response.
 OEntityDeleteRequest ifMatch(String precondition)
          Overrides the If-Match precondition.
 
Methods inherited from class org.odata4j.consumer.AbstractConsumerEntityRequest
getClient, getMetadata, getSegments, getServiceRootUri, nav, nav, toSingleLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.odata4j.core.OEntityRequest
nav, nav
 

Constructor Detail

ConsumerDeleteEntityRequest

public ConsumerDeleteEntityRequest(ODataClient client,
                                   String serviceRootUri,
                                   EdmDataServices metadata,
                                   String entitySetName,
                                   OEntityKey key,
                                   String ifMatch)
Method Detail

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