public interface CUDRequestFactory
Modifier and Type | Method and Description |
---|---|
ODataDeleteRequest |
getDeleteRequest(URI targetURI)
Gets a delete request object instance.
|
<E extends ClientEntity> |
getEntityCreateRequest(URI targetURI,
E entity)
Gets a create request object instance.
|
<E extends ClientEntity> |
getEntityUpdateRequest(UpdateType type,
E entity)
Gets an update request object instance; uses entity's edit link as endpoint.
|
<E extends ClientEntity> |
getEntityUpdateRequest(URI targetURI,
UpdateType type,
E changes)
Gets an update request object instance.
|
<E extends ClientEntity> |
getMediaEntityCreateRequest(URI targetURI,
InputStream media)
Gets a media entity create request object instance.
|
<E extends ClientEntity> |
getMediaEntityUpdateRequest(URI editURI,
InputStream media)
Gets a media entity update request object instance.
|
ODataPropertyUpdateRequest |
getPropertyCollectionValueUpdateRequest(URI targetURI,
ClientProperty property)
Gets an update request object instance.
|
ODataPropertyUpdateRequest |
getPropertyComplexValueUpdateRequest(URI targetURI,
UpdateType type,
ClientProperty property)
Gets an update request object instance.
|
ODataPropertyUpdateRequest |
getPropertyPrimitiveValueUpdateRequest(URI targetURI,
ClientProperty property)
Gets an update request object instance.
|
ODataReferenceAddingRequest |
getReferenceAddingRequest(URI serviceRoot,
URI targetURI,
URI reference)
A successful POST request to a navigation property's references collection adds a relationship to an existing
entity.
|
ODataReferenceAddingRequest |
getReferenceSingleChangeRequest(URI serviceRoot,
URI targetURI,
URI reference)
A successful PUT request to a single-valued navigation property�s reference resource changes the related entity.
|
ODataEntityUpdateRequest<ClientSingleton> |
getSingletonUpdateRequest(UpdateType type,
ClientSingleton entity) |
ODataEntityUpdateRequest<ClientSingleton> |
getSingletonUpdateRequest(URI targetURI,
UpdateType type,
ClientSingleton changes) |
ODataStreamUpdateRequest |
getStreamUpdateRequest(URI targetURI,
InputStream stream)
Gets a stream update request object instance.
|
ODataValueUpdateRequest |
getValueUpdateRequest(URI targetURI,
UpdateType type,
ClientPrimitiveValue value)
Gets a create request object instance.
|
<E extends ClientEntity> ODataEntityCreateRequest<E> getEntityCreateRequest(URI targetURI, E entity)
E
- concrete ODataEntity implementationtargetURI
- entity set URI.entity
- entity to be created.<E extends ClientEntity> ODataEntityUpdateRequest<E> getEntityUpdateRequest(URI targetURI, UpdateType type, E changes)
E
- concrete ODataEntity implementationtargetURI
- edit link of the object to be updated.type
- type of update to be performed.changes
- changes to be applied.<E extends ClientEntity> ODataEntityUpdateRequest<E> getEntityUpdateRequest(UpdateType type, E entity)
E
- concrete ODataEntity implementationtype
- type of update to be performed.entity
- changes to be applied.ODataValueUpdateRequest getValueUpdateRequest(URI targetURI, UpdateType type, ClientPrimitiveValue value)
targetURI
- entity set or entity or entity property URI.type
- type of update to be performed.value
- value to be created.ODataPropertyUpdateRequest getPropertyPrimitiveValueUpdateRequest(URI targetURI, ClientProperty property)
targetURI
- entity set or entity or entity property URI.property
- value to be update.ODataPropertyUpdateRequest getPropertyComplexValueUpdateRequest(URI targetURI, UpdateType type, ClientProperty property)
targetURI
- entity set or entity or entity property URI.type
- type of update to be performed.property
- value to be update.ODataPropertyUpdateRequest getPropertyCollectionValueUpdateRequest(URI targetURI, ClientProperty property)
targetURI
- entity set or entity or entity property URI.property
- value to be update.ODataDeleteRequest getDeleteRequest(URI targetURI)
targetURI
- edit link of the object to be removed.<E extends ClientEntity> ODataMediaEntityCreateRequest<E> getMediaEntityCreateRequest(URI targetURI, InputStream media)
E
- concrete ODataEntity implementationtargetURI
- entity set URI.media
- entity blob to be created.ODataStreamUpdateRequest getStreamUpdateRequest(URI targetURI, InputStream stream)
targetURI
- target URI.stream
- stream to be updated.<E extends ClientEntity> ODataMediaEntityUpdateRequest<E> getMediaEntityUpdateRequest(URI editURI, InputStream media)
E
- concrete ODataEntity implementationeditURI
- media entity edit link URI.media
- entity blob to be updated.ODataEntityUpdateRequest<ClientSingleton> getSingletonUpdateRequest(URI targetURI, UpdateType type, ClientSingleton changes)
ODataEntityUpdateRequest<ClientSingleton> getSingletonUpdateRequest(UpdateType type, ClientSingleton entity)
ODataReferenceAddingRequest getReferenceAddingRequest(URI serviceRoot, URI targetURI, URI reference)
serviceRoot
- serviceRoot URItargetURI
- navigation property reference collection URIreference
- entity referenceODataReferenceAddingRequest getReferenceSingleChangeRequest(URI serviceRoot, URI targetURI, URI reference)
serviceRoot
- serviceRoot URItargetURI
- single-valued navigation property URIreference
- referenceCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.