org.odata4j.consumer
Class AbstractConsumerEntityPayloadRequest

java.lang.Object
  extended by org.odata4j.consumer.AbstractConsumerEntityPayloadRequest
Direct Known Subclasses:
ConsumerCreateEntityRequest, ConsumerEntityModificationRequest

public abstract class AbstractConsumerEntityPayloadRequest
extends Object

Shared consumer request implementation for operations with an entity as the request payload.


Field Summary
protected  String entitySetName
           
protected  List<OLink> links
           
protected  EdmDataServices metadata
           
protected  List<OProperty<?>> props
           
protected  String serviceRootUri
           
 
Constructor Summary
protected AbstractConsumerEntityPayloadRequest(String entitySetName, String serviceRootUri, EdmDataServices metadata)
           
 
Method Summary
protected
<T> T
inline(T rt, String navProperty, OEntity... entities)
           
protected
<T> T
link(T rt, String navProperty, OEntity target)
           
protected
<T> T
link(T rt, String navProperty, OEntityKey targetKey)
           
protected
<T> T
properties(T rt, Iterable<OProperty<?>> props)
           
protected
<T> T
properties(T rt, OProperty<?>... props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entitySetName

protected final String entitySetName

links

protected final List<OLink> links

metadata

protected final EdmDataServices metadata

props

protected final List<OProperty<?>> props

serviceRootUri

protected final String serviceRootUri
Constructor Detail

AbstractConsumerEntityPayloadRequest

protected AbstractConsumerEntityPayloadRequest(String entitySetName,
                                               String serviceRootUri,
                                               EdmDataServices metadata)
Method Detail

inline

protected <T> T inline(T rt,
                       String navProperty,
                       OEntity... entities)

link

protected <T> T link(T rt,
                     String navProperty,
                     OEntity target)

link

protected <T> T link(T rt,
                     String navProperty,
                     OEntityKey targetKey)

properties

protected <T> T properties(T rt,
                           Iterable<OProperty<?>> props)

properties

protected <T> T properties(T rt,
                           OProperty<?>... props)


http://odata4j.org