org.odata4j.consumer
Class ConsumerFunctionCallRequest<T extends OObject>

java.lang.Object
  extended by org.odata4j.consumer.AbstractConsumerQueryRequestBase<T>
      extended by org.odata4j.consumer.ConsumerFunctionCallRequest<T>
All Implemented Interfaces:
OFunctionRequest<T>, OQueryRequest<T>

public class ConsumerFunctionCallRequest<T extends OObject>
extends AbstractConsumerQueryRequestBase<T>
implements OFunctionRequest<T>

Function-call-request implementation.


Constructor Summary
ConsumerFunctionCallRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, String lastSegment)
           
 
Method Summary
 Enumerable<T> execute()
          Sends the query-request to the OData service, returning a client-side Enumerable for subsequent in-memory operations.
 ConsumerFunctionCallRequest<T> parameter(String name, OObject value)
          Adds a generic parameter.
 OFunctionRequest<T> pBoolean(String name, boolean value)
          Adds a boolean parameter.
 OFunctionRequest<T> pByte(String name, UnsignedByte value)
          Adds a byte parameter.
 OFunctionRequest<T> pDateTime(String name, Calendar value)
          Adds a datetime parameter.
 OFunctionRequest<T> pDateTime(String name, Date value)
          Adds a datetime parameter.
 OFunctionRequest<T> pDateTime(String name, LocalDateTime value)
          Adds a datetime parameter.
 OFunctionRequest<T> pDecimal(String name, BigDecimal value)
          Adds a decimal parameter.
 OFunctionRequest<T> pDouble(String name, double value)
          Adds a double parameter.
 OFunctionRequest<T> pGuid(String name, Guid value)
          Adds a guid parameter.
 OFunctionRequest<T> pInt16(String name, short value)
          Adds a 16-bit integer parameter.
 OFunctionRequest<T> pInt32(String name, int value)
          Adds a 32-bit integer parameter.
 OFunctionRequest<T> pInt64(String name, long value)
          Adds a 64-bit integer parameter.
 OFunctionRequest<T> pSByte(String name, byte value)
          Adds a sbyte parameter.
 OFunctionRequest<T> pSingle(String name, float value)
          Adds a single parameter.
 OFunctionRequest<T> pString(String name, String value)
          Adds a string parameter.
 OFunctionRequest<T> pTime(String name, Calendar value)
          Adds a time parameter.
 OFunctionRequest<T> pTime(String name, Date value)
          Adds a time parameter.
 OFunctionRequest<T> pTime(String name, LocalDateTime value)
          Adds a time parameter.
 
Methods inherited from class org.odata4j.consumer.AbstractConsumerQueryRequestBase
buildRequest, custom, expand, filter, getClient, getEntitySet, getMetadata, getSegments, getServiceRootUri, nav, nav, orderBy, select, skip, top
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.odata4j.core.OQueryRequest
custom, expand, filter, nav, nav, orderBy, select, skip, top
 

Constructor Detail

ConsumerFunctionCallRequest

public ConsumerFunctionCallRequest(ODataClient client,
                                   String serviceRootUri,
                                   EdmDataServices metadata,
                                   String lastSegment)
Method Detail

execute

public Enumerable<T> execute()
                                      throws ODataProducerException
Description copied from interface: OQueryRequest
Sends the query-request to the OData service, returning a client-side Enumerable for subsequent in-memory operations.

The returned enumerable transparently handles server-side paging and deferred enumeration.

Subsequent server calls are handled within the enumerable's Iterator.

Specified by:
execute in interface OQueryRequest<T extends OObject>
Returns:
the response as a client-side enumerable
Throws:
ODataProducerException - error from the producer

parameter

public ConsumerFunctionCallRequest<T> parameter(String name,
                                                OObject value)
Description copied from interface: OFunctionRequest
Adds a generic parameter.

Specified by:
parameter in interface OFunctionRequest<T extends OObject>

pBoolean

public OFunctionRequest<T> pBoolean(String name,
                                    boolean value)
Description copied from interface: OFunctionRequest
Adds a boolean parameter.

Specified by:
pBoolean in interface OFunctionRequest<T extends OObject>

pByte

public OFunctionRequest<T> pByte(String name,
                                 UnsignedByte value)
Description copied from interface: OFunctionRequest
Adds a byte parameter.

Specified by:
pByte in interface OFunctionRequest<T extends OObject>

pDateTime

public OFunctionRequest<T> pDateTime(String name,
                                     Calendar value)
Description copied from interface: OFunctionRequest
Adds a datetime parameter.

Specified by:
pDateTime in interface OFunctionRequest<T extends OObject>

pDateTime

public OFunctionRequest<T> pDateTime(String name,
                                     Date value)
Description copied from interface: OFunctionRequest
Adds a datetime parameter.

Specified by:
pDateTime in interface OFunctionRequest<T extends OObject>

pDateTime

public OFunctionRequest<T> pDateTime(String name,
                                     LocalDateTime value)
Description copied from interface: OFunctionRequest
Adds a datetime parameter.

Specified by:
pDateTime in interface OFunctionRequest<T extends OObject>

pDecimal

public OFunctionRequest<T> pDecimal(String name,
                                    BigDecimal value)
Description copied from interface: OFunctionRequest
Adds a decimal parameter.

Specified by:
pDecimal in interface OFunctionRequest<T extends OObject>

pDouble

public OFunctionRequest<T> pDouble(String name,
                                   double value)
Description copied from interface: OFunctionRequest
Adds a double parameter.

Specified by:
pDouble in interface OFunctionRequest<T extends OObject>

pGuid

public OFunctionRequest<T> pGuid(String name,
                                 Guid value)
Description copied from interface: OFunctionRequest
Adds a guid parameter.

Specified by:
pGuid in interface OFunctionRequest<T extends OObject>

pInt16

public OFunctionRequest<T> pInt16(String name,
                                  short value)
Description copied from interface: OFunctionRequest
Adds a 16-bit integer parameter.

Specified by:
pInt16 in interface OFunctionRequest<T extends OObject>

pInt32

public OFunctionRequest<T> pInt32(String name,
                                  int value)
Description copied from interface: OFunctionRequest
Adds a 32-bit integer parameter.

Specified by:
pInt32 in interface OFunctionRequest<T extends OObject>

pInt64

public OFunctionRequest<T> pInt64(String name,
                                  long value)
Description copied from interface: OFunctionRequest
Adds a 64-bit integer parameter.

Specified by:
pInt64 in interface OFunctionRequest<T extends OObject>

pSByte

public OFunctionRequest<T> pSByte(String name,
                                  byte value)
Description copied from interface: OFunctionRequest
Adds a sbyte parameter.

Specified by:
pSByte in interface OFunctionRequest<T extends OObject>

pSingle

public OFunctionRequest<T> pSingle(String name,
                                   float value)
Description copied from interface: OFunctionRequest
Adds a single parameter.

Specified by:
pSingle in interface OFunctionRequest<T extends OObject>

pString

public OFunctionRequest<T> pString(String name,
                                   String value)
Description copied from interface: OFunctionRequest
Adds a string parameter.

Specified by:
pString in interface OFunctionRequest<T extends OObject>

pTime

public OFunctionRequest<T> pTime(String name,
                                 Calendar value)
Description copied from interface: OFunctionRequest
Adds a time parameter.

Specified by:
pTime in interface OFunctionRequest<T extends OObject>

pTime

public OFunctionRequest<T> pTime(String name,
                                 Date value)
Description copied from interface: OFunctionRequest
Adds a time parameter.

Specified by:
pTime in interface OFunctionRequest<T extends OObject>

pTime

public OFunctionRequest<T> pTime(String name,
                                 LocalDateTime value)
Description copied from interface: OFunctionRequest
Adds a time parameter.

Specified by:
pTime in interface OFunctionRequest<T extends OObject>


http://odata4j.org