org.odata4j.consumer
Class AbstractConsumerEntityRequest<T>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConsumerEntityRequest
public AbstractConsumerEntityRequest(ODataClient client,
String serviceRootUri,
EdmDataServices metadata,
String entitySetName,
OEntityKey key)
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 propertykey
- the entity-key within the collection
- Returns:
- the entity-request builder
toSingleLink
protected SingleLink toSingleLink(OEntityId entity)
http://odata4j.org