org.odata4j.consumer
Class ConsumerCreateLinkRequest

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

public class ConsumerCreateLinkRequest
extends AbstractConsumerEntityRequest<Void>

Create-link-request implementation.


Constructor Summary
ConsumerCreateLinkRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, OEntityId sourceEntity, String targetNavProp, OEntityId targetEntity)
           
 
Method Summary
 Void execute()
          Sends the entity-request to the OData service and returns the response.
 
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
 

Constructor Detail

ConsumerCreateLinkRequest

public ConsumerCreateLinkRequest(ODataClient client,
                                 String serviceRootUri,
                                 EdmDataServices metadata,
                                 OEntityId sourceEntity,
                                 String targetNavProp,
                                 OEntityId targetEntity)
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.

Returns:
the operation response
Throws:
ODataProducerException - error from the producer


http://odata4j.org