|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.odata4j.consumer.AbstractConsumerQueryRequestBase<T>
public abstract class AbstractConsumerQueryRequestBase<T>
Shared consumer request implementation for operations dealing with multiple response entities.
Constructor Summary | |
---|---|
AbstractConsumerQueryRequestBase(ODataClient client,
String serviceRootUri,
EdmDataServices metadata,
String lastSegment)
|
Method Summary | |
---|---|
protected ODataClientRequest |
buildRequest(Func1<String,String> pathModification)
|
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. |
protected ODataClient |
getClient()
|
protected EdmEntitySet |
getEntitySet()
|
protected EdmDataServices |
getMetadata()
|
protected List<EntitySegment> |
getSegments()
|
protected String |
getServiceRootUri()
|
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. |
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.OQueryRequest |
---|
execute |
Constructor Detail |
---|
public AbstractConsumerQueryRequestBase(ODataClient client, String serviceRootUri, EdmDataServices metadata, String lastSegment)
Method Detail |
---|
protected ODataClientRequest buildRequest(Func1<String,String> pathModification)
public OQueryRequest<T> custom(String name, String value)
OQueryRequest
custom
in interface OQueryRequest<T>
name
- the namevalue
- the value
public OQueryRequest<T> expand(String expand)
OQueryRequest
expand
in interface OQueryRequest<T>
expand
- the expand expressions
public OQueryRequest<T> filter(String filter)
OQueryRequest
filter
in interface OQueryRequest<T>
filter
- the filter expression
protected ODataClient getClient()
protected EdmEntitySet getEntitySet()
protected EdmDataServices getMetadata()
protected List<EntitySegment> getSegments()
protected String getServiceRootUri()
public OQueryRequest<T> nav(Object keyValue, String navProperty)
OQueryRequest
nav
in interface OQueryRequest<T>
keyValue
- identify an entity in the current entity-set using this key valuenavProperty
- the collection-valued navigation property off of the entity
public OQueryRequest<T> nav(OEntityKey key, String navProperty)
OQueryRequest
nav
in interface OQueryRequest<T>
key
- identify an entity in the current entity-set using this entity-keynavProperty
- the collection-valued navigation property off of the entity
public OQueryRequest<T> orderBy(String orderBy)
OQueryRequest
orderBy
in interface OQueryRequest<T>
orderBy
- the ordering expressions
public OQueryRequest<T> select(String select)
OQueryRequest
select
in interface OQueryRequest<T>
select
- the selection clauses
public OQueryRequest<T> skip(int skip)
OQueryRequest
skip
in interface OQueryRequest<T>
skip
- the number of items to skip
public OQueryRequest<T> top(int top)
OQueryRequest
top
in interface OQueryRequest<T>
top
- the number of items to return
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |