org.odata4j.consumer
Class ConsumerGetEntityRequest<T>

java.lang.Object
  extended by org.odata4j.consumer.AbstractConsumerEntityRequest<T>
      extended by org.odata4j.consumer.ConsumerGetEntityRequest<T>
All Implemented Interfaces:
OEntityGetRequest<T>, OEntityRequest<T>

public class ConsumerGetEntityRequest<T>
extends AbstractConsumerEntityRequest<T>
implements OEntityGetRequest<T>

Get-entity-request implementation.


Constructor Summary
ConsumerGetEntityRequest(ODataClient client, Class<T> entityType, String serviceRootUri, EdmDataServices metadata, String entitySetName, OEntityKey key, FeedCustomizationMapping fcMapping)
           
 
Method Summary
 T execute()
          Sends the entity-request to the OData service and returns the response.
 ConsumerGetEntityRequest<T> expand(String expand)
          Specifies related entities to expand inline as part of the response.
 ConsumerGetEntityRequest<T> select(String select)
          Specifies a subset of properties to return.
 
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

ConsumerGetEntityRequest

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

execute

public T 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<T>
Returns:
the operation response
Throws:
ODataProducerException - error from the producer

expand

public ConsumerGetEntityRequest<T> expand(String expand)
Description copied from interface: OEntityGetRequest
Specifies related entities to expand inline as part of the response.

Specified by:
expand in interface OEntityGetRequest<T>
Parameters:
expand - a comma-separated list of navigation properties
Returns:
the entity-request builder

select

public ConsumerGetEntityRequest<T> select(String select)
Description copied from interface: OEntityGetRequest
Specifies a subset of properties to return.

Specified by:
select in interface OEntityGetRequest<T>
Parameters:
select - a comma-separated list of selection clauses
Returns:
the entity-request builder


http://odata4j.org