|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the entity representation as a java typepublic interface OCreateRequest<T>
A consumer-side create-request builder. Call execute()
to issue the request.
Method Summary | |
---|---|
OCreateRequest<T> |
addToRelation(OEntity parent,
String navProperty)
Use a related parent entity's relationship collection to define an implicit link. |
T |
execute()
Sends the create-request to the OData service and returns the newly created entity. |
T |
get()
Returns a locally-built entity and does not send the create-request to the service. |
OCreateRequest<T> |
inline(String navProperty,
Iterable<OEntity> entities)
Create related entities inline as part of a single request. |
OCreateRequest<T> |
inline(String navProperty,
OEntity... entities)
Create related entities inline as part of a single request. |
OCreateRequest<T> |
link(String navProperty,
OEntity target)
Define an explicit link to another related entity. |
OCreateRequest<T> |
link(String navProperty,
OEntityKey targetKey)
Define an explicit link to another related entity. |
OCreateRequest<T> |
properties(Iterable<OProperty<?>> props)
Set properties on the new entity. |
OCreateRequest<T> |
properties(OProperty<?>... props)
Set properties on the new entity. |
Method Detail |
---|
OCreateRequest<T> addToRelation(OEntity parent, String navProperty)
e.g. create a new Product entity using /Categories(10)/Products instead of /Products
parent
- the parent entitynavProperty
- the parent entity's relationship collection navigation property
link(String, OEntity)
,
http://www.odata.org/developers/protocols/operations#CreatingnewEntriesT execute() throws ODataProducerException
ODataProducerException
- error from the producerT get()
inline(String, OEntity...)
OCreateRequest<T> inline(String navProperty, Iterable<OEntity> entities)
navProperty
- the new entity's relationship navigation propertyentities
- related entities, returned by get()
get()
OCreateRequest<T> inline(String navProperty, OEntity... entities)
navProperty
- the new entity's relationship navigation propertyentities
- related entities, returned by get()
get()
OCreateRequest<T> link(String navProperty, OEntity target)
navProperty
- the new entity's relationship navigation propertytarget
- the link target entity
addToRelation(OEntity, String)
,
http://www.odata.org/developers/protocols/operations#CreatingnewEntriesOCreateRequest<T> link(String navProperty, OEntityKey targetKey)
navProperty
- the new entity's relationship navigation propertytargetKey
- the key of the link target entity
addToRelation(OEntity, String)
,
http://www.odata.org/developers/protocols/operations#CreatingnewEntriesOCreateRequest<T> properties(Iterable<OProperty<?>> props)
props
- the properties
OCreateRequest<T> properties(OProperty<?>... props)
props
- the properties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |