Class JPACollectionJoinQuery

All Implemented Interfaces:
JPAQuery

public class JPACollectionJoinQuery extends JPAAbstractJoinQuery
  • Constructor Details

  • Method Details

    • execute

      public JPACollectionQueryResult execute() throws org.apache.olingo.server.api.ODataApplicationException
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • buildSelectionPathList

      protected Set<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> buildSelectionPathList(org.apache.olingo.server.api.uri.UriInfoResource uriResource) throws org.apache.olingo.server.api.ODataApplicationException
      Description copied from class: JPAAbstractJoinQuery
      Creates the path to all properties that need to be selected from the database. A Property can be included for the following reasons:
      • It is a key in order to be able to build the links
      • It is part of the $select system query option
      • It is the result of a navigation, which my be restricted by a $select
      • If is required to link $expand with result with the parent result
      • A stream is requested and the property contains the mime type
      Not included are collection properties.
      Overrides:
      buildSelectionPathList in class JPAAbstractJoinQuery
      Returns:
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • expandPath

      protected void expandPath(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType jpaEntity, Collection<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> jpaPathList, String selectItem, boolean targetIsCollection) throws com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException, ODataJPAQueryException
      Overrides:
      expandPath in class JPAAbstractJoinQuery
      Throws:
      com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException
      ODataJPAQueryException
    • createSelectClause

      protected List<javax.persistence.criteria.Selection<?>> createSelectClause(Map<String,​javax.persistence.criteria.From<?,​?>> joinTables, Collection<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> jpaPathList, javax.persistence.criteria.From<?,​?> target, List<String> groups) throws org.apache.olingo.server.api.ODataApplicationException
      Description copied from class: JPAAbstractJoinQuery
      The value of the $select query option is a comma-separated list of properties, qualified action names, qualified function names, the star operator (*), or the star operator prefixed with the namespace or alias of the schema in order to specify all operations defined in the schema. See: OData Version 4.0 Part 1 - 11.2.4.1 System Query Option $select

      See also: OData Version 4.0 Part 2 - 5.1.3 System Query Option $select

      Overrides:
      createSelectClause in class JPAAbstractJoinQuery
      Returns:
      Throws:
      org.apache.olingo.server.api.ODataApplicationException