Class JPAExpandItemInfoFactory
java.lang.Object
com.sap.olingo.jpa.processor.core.query.JPAExpandItemInfoFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCollectionItemInfo(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAServiceDocument sd, org.apache.olingo.server.api.uri.UriInfoResource uriResourceInfo, List<JPANavigationProptertyInfo> grandParentHops, Optional<JPAODataGroupProvider> groups)Navigate to collection property e.g. ..buildExpandItemInfo(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAServiceDocument sd, org.apache.olingo.server.api.uri.UriInfoResource uriResourceInfo, List<JPANavigationProptertyInfo> grandParentHops)protected Set<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath>getCollectionAttributesFromSelection(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaEntity, org.apache.olingo.server.api.uri.queryoption.SelectOption select)
-
Constructor Details
-
JPAExpandItemInfoFactory
public JPAExpandItemInfoFactory()
-
-
Method Details
-
buildExpandItemInfo
public List<JPAExpandItemInfo> buildExpandItemInfo(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAServiceDocument sd, org.apache.olingo.server.api.uri.UriInfoResource uriResourceInfo, List<JPANavigationProptertyInfo> grandParentHops) throws org.apache.olingo.server.api.ODataApplicationException- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
buildCollectionItemInfo
public List<JPACollectionItemInfo> buildCollectionItemInfo(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAServiceDocument sd, org.apache.olingo.server.api.uri.UriInfoResource uriResourceInfo, List<JPANavigationProptertyInfo> grandParentHops, Optional<JPAODataGroupProvider> groups) throws org.apache.olingo.server.api.ODataApplicationExceptionNavigate to collection property e.g. ../Organizations('1')/Comment or ../CollectionDeeps?$select=FirstLevel/SecondLevel- Parameters:
sd-uriResourceInfo-optional-parentHops-- Returns:
- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
getCollectionAttributesFromSelection
protected Set<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> getCollectionAttributesFromSelection(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaEntity, org.apache.olingo.server.api.uri.queryoption.SelectOption select) throws org.apache.olingo.server.api.ODataApplicationException, com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException- Throws:
org.apache.olingo.server.api.ODataApplicationExceptioncom.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException
-