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 Details

    • getAllHeader

      Map<String,​List<String>> getAllHeader()
      Returns all OData request header
      Returns:
      an unmodifiable Map of header names/values
    • getBeforeImage

      Optional<Object> 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

      Provides the given claims of a user
      Returns:
    • getData

      Map<String,​Object> 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

      List<String> getGroups()
      Returns a list of given filed groups
      Returns:
    • getKeys

      Map<String,​Object> 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: