| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odata4j.producer.Responses
public class Responses
A static factory to create immutable EntitiesResponse, EntityResponse, PropertyResponse, EntityIdResponse,
 ComplexObjectResponse, CollectionResponse, or ErrorResponse instances.
| Method Summary | ||
|---|---|---|
static
 | 
collection(OCollection<T> collection)
Creates a new CollectionResponse instance. | 
|
static
 | 
collection(OCollection<T> collection,
           EdmEntitySet entitySet,
           Integer inlineCount,
           String skipToken,
           String collectionName)
Creates a new CollectionResponse instance. | 
|
static ComplexObjectResponse | 
complexObject(OComplexObject complexObject,
              String complexObjectName)
Creates a new ComplexObjectResponse instance. | 
|
static CountResponse | 
count(long count)
 | 
|
static EntitiesResponse | 
entities(List<OEntity> entities,
         EdmEntitySet entitySet,
         Integer inlineCount,
         String skipToken)
Creates a new EntitiesResponse instance. | 
|
static EntityResponse | 
entity(OEntity entity)
Creates a new EntityResponse instance. | 
|
static ErrorResponse | 
error(OError error)
Creates a new ErrorResponse instance. | 
|
static
 | 
multipleIds(Iterable<T> entityIds)
Creates a new EntityIdResponse instance for payloads with a cardinality of EdmMultiplicity.MANY. | 
|
static PropertyResponse | 
property(OProperty<?> property)
Creates a new PropertyResponse instance. | 
|
static SimpleResponse | 
simple(EdmSimpleType<?> type,
       Object value)
 | 
|
static SimpleResponse | 
simple(EdmSimpleType<?> type,
       String name,
       Object value)
 | 
|
static
 | 
singleId(T entityId)
Creates a new EntityIdResponse instance for payloads with a cardinality of EdmMultiplicity.ONE. | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static <T extends OObject> CollectionResponse<?> collection(OCollection<T> collection)
CollectionResponse instance.
collection - the collection
ComplexObjectResponse instance
public static <T extends OObject> CollectionResponse<?> collection(OCollection<T> collection,
                                                                   EdmEntitySet entitySet,
                                                                   Integer inlineCount,
                                                                   String skipToken,
                                                                   String collectionName)
CollectionResponse instance.
collection - the collection
ComplexObjectResponse instance
public static ComplexObjectResponse complexObject(OComplexObject complexObject,
                                                  String complexObjectName)
ComplexObjectResponse instance.
complexObject - the complex object
ComplexObjectResponse instancepublic static CountResponse count(long count)
public static EntitiesResponse entities(List<OEntity> entities,
                                        EdmEntitySet entitySet,
                                        Integer inlineCount,
                                        String skipToken)
EntitiesResponse instance.
entities - the OData entities, if anyentitySet - the entity-setinlineCount - the inline-count value, if necessaryskipToken - the continuation-token, if necessary
EntitiesResponse instancepublic static EntityResponse entity(OEntity entity)
EntityResponse instance.
entity - the OData entity
EntityResponse instancepublic static ErrorResponse error(OError error)
ErrorResponse instance.
error - the OData error
ErrorResponse instancepublic static <T extends OEntityId> EntityIdResponse multipleIds(Iterable<T> entityIds)
EntityIdResponse instance for payloads with a cardinality of EdmMultiplicity.MANY.
entityIds - the payload entities
EntityIdResponse instancepublic static PropertyResponse property(OProperty<?> property)
PropertyResponse instance.
property - the property value
PropertyResponse instance
public static SimpleResponse simple(EdmSimpleType<?> type,
                                    Object value)
public static SimpleResponse simple(EdmSimpleType<?> type,
                                    String name,
                                    Object value)
public static <T extends OEntityId> EntityIdResponse singleId(T entityId)
EntityIdResponse instance for payloads with a cardinality of EdmMultiplicity.ONE.
entityId - the payload entity
EntityIdResponse instance
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||