|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the entity representation as a java typepublic interface OFunctionRequest<T>
A consumer-side function-request builder. Call OQueryRequest.execute()
to issue the request.
Usage example:
Enumerable<OObject> e = myConsumer.callFunction("AFunction")
.pBoolean("Parameter1", false)
.pInt32("Parameter2", 55)
.execute();
Note:
OData functions can return single instances or collections of instances.
To keep the interface simple, callFunction always returns an Enumerable
.
Method Summary | |
---|---|
OFunctionRequest<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 interface org.odata4j.core.OQueryRequest |
---|
custom, execute, expand, filter, nav, nav, orderBy, select, skip, top |
Method Detail |
---|
OFunctionRequest<T> parameter(String name, OObject value)
OFunctionRequest<T> pBoolean(String name, boolean value)
OFunctionRequest<T> pByte(String name, UnsignedByte value)
OFunctionRequest<T> pDateTime(String name, Calendar value)
OFunctionRequest<T> pDateTime(String name, Date value)
OFunctionRequest<T> pDateTime(String name, LocalDateTime value)
OFunctionRequest<T> pDecimal(String name, BigDecimal value)
OFunctionRequest<T> pDouble(String name, double value)
OFunctionRequest<T> pGuid(String name, Guid value)
OFunctionRequest<T> pInt16(String name, short value)
OFunctionRequest<T> pInt32(String name, int value)
OFunctionRequest<T> pInt64(String name, long value)
OFunctionRequest<T> pSByte(String name, byte value)
OFunctionRequest<T> pSingle(String name, float value)
OFunctionRequest<T> pString(String name, String value)
OFunctionRequest<T> pTime(String name, Calendar value)
OFunctionRequest<T> pTime(String name, Date value)
OFunctionRequest<T> pTime(String name, LocalDateTime value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |