org.odata4j.consumer
Class AbstractConsumerEntityRequest<T>

java.lang.Object
  extended by org.odata4j.consumer.AbstractConsumerEntityRequest<T>
All Implemented Interfaces:
OEntityRequest<T>
Direct Known Subclasses:
ConsumerCreateLinkRequest, ConsumerDeleteEntityRequest, ConsumerDeleteLinkRequest, ConsumerGetEntityRequest, ConsumerUpdateLinkRequest

public abstract class AbstractConsumerEntityRequest<T>
extends Object
implements OEntityRequest<T>

Shared consumer request implementation for operations dealing with a single response entity.


Constructor Summary
AbstractConsumerEntityRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, String entitySetName, OEntityKey key)
           
 
Method Summary
protected  ODataClient getClient()
           
protected  EdmDataServices getMetadata()
           
protected  List<EntitySegment> getSegments()
           
protected  String getServiceRootUri()
           
 OEntityRequest<T> nav(String navProperty)
          Navigates to a related entity using a single-valued navigation property.
 OEntityRequest<T> nav(String navProperty, OEntityKey key)
          Navigates to a related entity using a collection navigation property.
protected  SingleLink toSingleLink(OEntityId entity)
           
 
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
execute
 

Constructor Detail

AbstractConsumerEntityRequest

public AbstractConsumerEntityRequest(ODataClient client,
                                     String serviceRootUri,
                                     EdmDataServices metadata,
                                     String entitySetName,
                                     OEntityKey key)
Method Detail

getClient

protected ODataClient getClient()

getMetadata

protected EdmDataServices getMetadata()

getSegments

protected List<EntitySegment> getSegments()

getServiceRootUri

protected String getServiceRootUri()

nav

public OEntityRequest<T> nav(String navProperty)
Description copied from interface: OEntityRequest
Navigates to a related entity using a single-valued navigation property.

Specified by:
nav in interface OEntityRequest<T>
Parameters:
navProperty - the single-valued collection navigation property.
Returns:
the entity-request builder

nav

public OEntityRequest<T> nav(String navProperty,
                             OEntityKey key)
Description copied from interface: OEntityRequest
Navigates to a related entity using a collection navigation property.

Specified by:
nav in interface OEntityRequest<T>
Parameters:
navProperty - the collection navigation property
key - the entity-key within the collection
Returns:
the entity-request builder

toSingleLink

protected SingleLink toSingleLink(OEntityId entity)


http://odata4j.org