org.odata4j.consumer
Class ConsumerQueryLinksRequest

java.lang.Object
  extended by org.odata4j.consumer.AbstractConsumerQueryRequestBase<OEntityId>
      extended by org.odata4j.consumer.ConsumerQueryLinksRequest
All Implemented Interfaces:
OQueryRequest<OEntityId>

public class ConsumerQueryLinksRequest
extends AbstractConsumerQueryRequestBase<OEntityId>

Query-links-request implementation.


Constructor Summary
ConsumerQueryLinksRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, OEntityId sourceEntity, String targetNavProp)
           
 
Method Summary
 Enumerable<OEntityId> execute()
          Sends the query-request to the OData service, returning a client-side Enumerable for subsequent in-memory operations.
static Func1<String,String> linksPath(String targetNavProp, Object[] targetKeyValues)
           
 
Methods inherited from class org.odata4j.consumer.AbstractConsumerQueryRequestBase
buildRequest, custom, expand, filter, getClient, getEntitySet, getMetadata, getSegments, getServiceRootUri, nav, nav, orderBy, select, skip, top
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerQueryLinksRequest

public ConsumerQueryLinksRequest(ODataClient client,
                                 String serviceRootUri,
                                 EdmDataServices metadata,
                                 OEntityId sourceEntity,
                                 String targetNavProp)
Method Detail

execute

public Enumerable<OEntityId> execute()
                              throws ODataProducerException
Description copied from interface: OQueryRequest
Sends the query-request to the OData service, returning a client-side Enumerable for subsequent in-memory operations.

The returned enumerable transparently handles server-side paging and deferred enumeration.

Subsequent server calls are handled within the enumerable's Iterator.

Returns:
the response as a client-side enumerable
Throws:
ODataProducerException - error from the producer

linksPath

public static Func1<String,String> linksPath(String targetNavProp,
                                             Object[] targetKeyValues)


http://odata4j.org