Interface JPARequestEntity
public interface JPARequestEntity
Representing an entity that should be created, updated or deleted by a POST, PUT, PATCH or DELETE request
- Author:
- Oliver Grande
-
Method Summary
Modifier and TypeMethodDescriptionReturns all OData request headerFor the creation of a dependent entity an instance of the requested entity (root entity) is provided.Provides the given claims of a usergetData()List of attributes with pojo attributes name converted into JAVA types.com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityTypeProvides an instance of the entity metadataReturns a list of given filed groupsgetKeys()Contains the key attributes of the entity to be update or deleted.Returns an instance utility serviceMap<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,List<JPARequestEntity>>Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,List<JPARequestLink>>
-
Method Details
-
getAllHeader
Returns all OData request header- Returns:
- an unmodifiable Map of header names/values
-
getBeforeImage
For the creation of a dependent entity an instance of the requested entity (root entity) is provided.
The instance must not be merged- Returns:
-
getClaims
Optional<JPAODataClaimProvider> getClaims()Provides the given claims of a user- Returns:
-
getData
List of attributes with pojo attributes name converted into JAVA types. In case the entity contains embedded attributes these are given as maps themselves.- Returns:
-
getEntityType
com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType getEntityType()Provides an instance of the entity metadata- Returns:
-
getGroups
Returns a list of given filed groups- Returns:
-
getKeys
Contains the key attributes of the entity to be update or deleted. Returns an empty Map in case of create.- Returns:
-
getModifyUtil
JPAModifyUtil getModifyUtil()Returns an instance utility service- Returns:
-
getRelatedEntities
Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,List<JPARequestEntity>> getRelatedEntities()- Returns:
-
getRelationLinks
Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,List<JPARequestLink>> getRelationLinks()- Returns:
-