public abstract class

ConsumerQueryRequestBase

extends Object
implements OQueryRequest<T>
java.lang.Object
   ↳ org.odata4j.jersey.consumer.ConsumerQueryRequestBase<T>

Summary

Fields
private final ODataJerseyClient client
private final Map<String, String> customs
private String expand
private String filter
private String lastSegment
private final EdmDataServices metadata
private String orderBy
private final List<EntitySegment> segments
private String select
private final String serviceRootUri
private Integer skip
private Integer top
Public Constructors
ConsumerQueryRequestBase(ODataJerseyClient client, String serviceRootUri, EdmDataServices metadata, String lastSegment)
Public Methods
OQueryRequest<T> custom(String name, String value)
Adds a custom name-value pair.
OQueryRequest<T> expand(String expand)
Sets the expand expressions.
OQueryRequest<T> filter(String filter)
Sets the filter expression.
Iterator<T> iterator()
OQueryRequest<T> nav(Object keyValue, String navProperty)
Navigates to a referenced collection using a collection-valued navigation property.
OQueryRequest<T> nav(OEntityKey key, String navProperty)
Navigates to a referenced collection using a collection-valued navigation property.
OQueryRequest<T> orderBy(String orderBy)
Sets the ordering expressions.
OQueryRequest<T> select(String select)
Sets the selection clauses.
OQueryRequest<T> skip(int skip)
Sets the number of items to skip.
OQueryRequest<T> top(int top)
Sets the number of items to return.
Protected Methods
ODataClientRequest buildRequest(Func1<String, String> pathModification)
ODataJerseyClient getClient()
String getLastSegment()
EdmDataServices getMetadata()
String getServiceRootUri()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable
From interface org.odata4j.core.OQueryRequest

Fields

private final ODataJerseyClient client

private final Map<String, String> customs

private String expand

private String filter

private String lastSegment

private final EdmDataServices metadata

private String orderBy

private final List<EntitySegment> segments

private String select

private final String serviceRootUri

private Integer skip

private Integer top

Public Constructors

public ConsumerQueryRequestBase (ODataJerseyClient client, String serviceRootUri, EdmDataServices metadata, String lastSegment)

Parameters
client
serviceRootUri
metadata
lastSegment

Public Methods

public OQueryRequest<T> custom (String name, String value)

Adds a custom name-value pair.

Parameters
name The name
value The value
Returns
  • the query-request builder

public OQueryRequest<T> expand (String expand)

Sets the expand expressions.

Parameters
expand The expand expressions
Returns
  • the query-request builder

public OQueryRequest<T> filter (String filter)

Sets the filter expression.

Parameters
filter The filter expression
Returns
  • the query-request builder

public Iterator<T> iterator ()

public OQueryRequest<T> nav (Object keyValue, String navProperty)

Navigates to a referenced collection using a collection-valued navigation property.

Parameters
keyValue Identify an entity in the current entity-set using this key value
navProperty The collection-valued navigation property off of the entity
Returns
  • the query-request builder

public OQueryRequest<T> nav (OEntityKey key, String navProperty)

Navigates to a referenced collection using a collection-valued navigation property.

Parameters
key Identify an entity in the current entity-set using this entity-key
navProperty The collection-valued navigation property off of the entity
Returns
  • the query-request builder

public OQueryRequest<T> orderBy (String orderBy)

Sets the ordering expressions.

Parameters
orderBy The ordering expressions
Returns
  • the query-request builder

public OQueryRequest<T> select (String select)

Sets the selection clauses.

Parameters
select The selection clauses
Returns
  • the query-request builder

public OQueryRequest<T> skip (int skip)

Sets the number of items to skip.

Parameters
skip The number of items to skip
Returns
  • the query-request builder

public OQueryRequest<T> top (int top)

Sets the number of items to return.

Parameters
top The number of items to return
Returns
  • the query-request builder

Protected Methods

protected ODataClientRequest buildRequest (Func1<String, String> pathModification)

Parameters
pathModification

protected ODataJerseyClient getClient ()

protected String getLastSegment ()

protected EdmDataServices getMetadata ()

protected String getServiceRootUri ()