public interface

OEntityRequest

org.odata4j.core.OEntityRequest<T>
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract T execute()
Sends the entity-request to the OData service and returns the response.
abstract ODataClientRequest getRawRequest()
Returns the low level, not yet executed OData request
abstract OEntityRequest<T> nav(String navProperty)
Navigates to a related entity using a single-valued navigation property.
abstract OEntityRequest<T> nav(String navProperty, OEntityKey key)
Navigates to a related entity using a collection navigation property.

Public Methods

public abstract T execute ()

Sends the entity-request to the OData service and returns the response.

Returns
  • the operation response

public abstract ODataClientRequest getRawRequest ()

Returns the low level, not yet executed OData request

public abstract 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

public abstract 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