public class CreateRequestImpl extends CreateRequest
| Constructor and Description |
|---|
CreateRequestImpl(RequestContext requestContext,
String entityName,
EntityMetadata entityMetadata,
Map<String,List<String>> headers,
String httpMethod) |
| Modifier and Type | Method and Description |
|---|---|
EntityData |
getData()
Gets an EntityData object corresponding to the entity to be created.
|
<T> T |
getDataAs(Class<T> clazz)
Gets the POJO representation of the entity to be created.
|
Map<String,Object> |
getMapData()
Gets key-value pairs representing the properties of the entity to be created.
|
Map<String,Object> |
getSourceKeys()
Gets the keys of the parent entity specified in a navigation.
|
void |
setData(Object data) |
void |
setSourceEntity(String sourceEntityName) |
void |
setSourceKeys(Map<String,Object> sourcekeys) |
getEntityName, getSourceEntityNamecontainsHeader, getEntityMetadata, getHeader, getHeaderNames, getHeaders, getHttpMethod, getLocale, getMessageContainer, getRequestContext, getServiceName, setServiceNamepublic CreateRequestImpl(RequestContext requestContext, String entityName, EntityMetadata entityMetadata, Map<String,List<String>> headers, String httpMethod)
public EntityData getData()
CreateRequestgetData in class CreateRequestEntityData object that represents the entitypublic void setData(Object data)
public Map<String,Object> getSourceKeys()
CreateRequestgetSourceKeys in class CreateRequestMap containing the keys of the parent entitypublic void setSourceEntity(String sourceEntityName)
public Map<String,Object> getMapData()
CreateRequestgetMapData in class CreateRequestMap containing key-value pairspublic <T> T getDataAs(Class<T> clazz) throws DataConversionException
CreateRequestgetDataAs in class CreateRequestDataConversionExceptionCopyright © 2020 SAP. All Rights Reserved.