org.odata4j.core
Interface OCountRequest

All Known Implementing Classes:
ConsumerCountRequest

public interface OCountRequest

A consumer-side count-request builder. Call execute() to issue the request.


Method Summary
 OCountRequest entitySetName(String entitySetName)
          Sets the name of the entity-set to count.
 int execute()
          Sends the count-request to the OData service and returns the result.
 OCountRequest top(int top)
          Sets a maximum limit on the result returned.
 

Method Detail

entitySetName

OCountRequest entitySetName(String entitySetName)
Sets the name of the entity-set to count.

Parameters:
entitySetName - the name of the entity collection
Returns:
the count-request builder

execute

int execute()
            throws ODataProducerException
Sends the count-request to the OData service and returns the result.

Returns:
the count
Throws:
ODataProducerException - error from the producer

top

OCountRequest top(int top)
Sets a maximum limit on the result returned.

Parameters:
top - the maximum limit
Returns:
the count-request builder


http://odata4j.org