|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.odata4j.consumer.ConsumerCountRequest
public class ConsumerCountRequest
Count-request implementation.
Constructor Summary | |
---|---|
ConsumerCountRequest(ODataClient client,
String serviceRootUri)
|
Method Summary | |
---|---|
ConsumerCountRequest |
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. |
ConsumerCountRequest |
top(int top)
Sets a maximum limit on the result returned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsumerCountRequest(ODataClient client, String serviceRootUri)
Method Detail |
---|
public ConsumerCountRequest entitySetName(String entitySetName)
OCountRequest
entitySetName
in interface OCountRequest
entitySetName
- the name of the entity collection
public int execute() throws ODataProducerException
OCountRequest
execute
in interface OCountRequest
ODataProducerException
- error from the producerpublic ConsumerCountRequest top(int top)
OCountRequest
top
in interface OCountRequest
top
- the maximum limit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |