org.odata4j.core
Interface OEntityRequest<T>

Type Parameters:
T - the java-type of the operation response
All Known Subinterfaces:
OEntityDeleteRequest, OEntityGetRequest<T>
All Known Implementing Classes:
AbstractConsumerEntityRequest, ConsumerCreateLinkRequest, ConsumerDeleteEntityRequest, ConsumerDeleteLinkRequest, ConsumerGetEntityRequest, ConsumerUpdateLinkRequest

public interface OEntityRequest<T>

A consumer-side entity-request builder, used for operations on a single entity such as DELETE. Call execute() to issue the request.


Method Summary
 T execute()
          Sends the entity-request to the OData service and returns the response.
 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.
 

Method Detail

execute

T execute()
          throws ODataProducerException
Sends the entity-request to the OData service and returns the response.

Returns:
the operation response
Throws:
ODataProducerException - error from the producer

nav

OEntityRequest<T> nav(String navProperty)
Navigates to a related entity using a single-valued navigation property.

Parameters:
navProperty - the single-valued collection navigation property.
Returns:
the entity-request builder

nav

OEntityRequest<T> nav(String navProperty,
                      OEntityKey key)
Navigates to a related entity using a collection navigation property.

Parameters:
navProperty - the collection navigation property
key - the entity-key within the collection
Returns:
the entity-request builder


http://odata4j.org