public interface ODataRequestParamBatch extends ODataRequestParam
ODataRequestBatchItem
). A batch item can be single read request (ODataRequestParamSingle
) or a change
set ( ODataRequestChangeSet
).Modifier and Type | Method and Description |
---|---|
void |
add(ODataRequestBatchItem request)
Adds a batch item to the batch request.
|
ODataRequestBatchItem |
get(int index)
Returns the batch item for the given index.
|
int |
size()
Returns the number of batch items in this batch request.
|
getCustomHeaders, getCustomTag, setCustomTag
void add(ODataRequestBatchItem request) throws ODataException
request
- batch item. It MUST be non-null, otherwise NullPointerException is thrown. It MUST be a read request or a change set, otherwise ODataException.ODataException
- if the request is not a read operation or a change set.java.lang.NullPointerException
- if request parameter is nullint size()
ODataRequestBatchItem get(int index)
index
- the index of the itemODataRequestParamSingle
) or a change set ( ODataRequestChangeSet
).java.lang.IndexOutOfBoundsException
- if the size of the list is not greater than the given index