org.odata4j.consumer
Class ConsumerQueryEntitiesRequest<T>

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

public class ConsumerQueryEntitiesRequest<T>
extends AbstractConsumerQueryRequestBase<T>

Query-request implementation.


Constructor Summary
ConsumerQueryEntitiesRequest(ODataClient client, Class<T> entityType, String serviceRootUri, EdmDataServices metadata, String entitySetName, FeedCustomizationMapping fcMapping)
           
 
Method Summary
 Enumerable<T> execute()
          Sends the query-request to the OData service, returning a client-side Enumerable for subsequent in-memory operations.
 
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

ConsumerQueryEntitiesRequest

public ConsumerQueryEntitiesRequest(ODataClient client,
                                    Class<T> entityType,
                                    String serviceRootUri,
                                    EdmDataServices metadata,
                                    String entitySetName,
                                    FeedCustomizationMapping fcMapping)
Method Detail

execute

public Enumerable<T> 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


http://odata4j.org