org.odata4j.consumer
Class ConsumerGetEntityRequest<T>
java.lang.Object
org.odata4j.consumer.AbstractConsumerEntityRequest<T>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumerGetEntityRequest
public ConsumerGetEntityRequest(ODataClient client,
Class<T> entityType,
String serviceRootUri,
EdmDataServices metadata,
String entitySetName,
OEntityKey key,
FeedCustomizationMapping fcMapping)
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