Interface JPAConvertableResult
- All Known Implementing Classes:
JPACollectionQueryResult,JPAExpandQueryResult
public interface JPAConvertableResult
-
Method Summary
Modifier and TypeMethodDescriptionasEntityCollection(JPATupleChildConverter converter)org.apache.olingo.commons.api.data.EntityCollectiongetEntityCollection(String key)Returns the entity collection of a given key.default Optional<JPAKeyBoundary>getKeyBoundary(JPAODataRequestContextAccess requestContext, List<JPANavigationProptertyInfo> hops)Returns a key pair if the query had $top and/or $skip and the key of the entity implementsComparable.voidputChildren(Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult> childResults)
-
Method Details
-
asEntityCollection
Map<String,org.apache.olingo.commons.api.data.EntityCollection> asEntityCollection(JPATupleChildConverter converter) throws org.apache.olingo.server.api.ODataApplicationException- Parameters:
converter-- Returns:
- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
putChildren
void putChildren(Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult> childResults) throws org.apache.olingo.server.api.ODataApplicationException- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
getEntityCollection
org.apache.olingo.commons.api.data.EntityCollection getEntityCollection(String key) throws org.apache.olingo.server.api.ODataApplicationExceptionReturns the entity collection of a given key. This method may internally performasEntityCollection- Parameters:
key-- Returns:
- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
getKeyBoundary
default Optional<JPAKeyBoundary> getKeyBoundary(JPAODataRequestContextAccess requestContext, List<JPANavigationProptertyInfo> hops) throws ODataJPAQueryExceptionReturns a key pair if the query had $top and/or $skip and the key of the entity implementsComparable.- Type Parameters:
T-- Parameters:
requestContext-hops-- Returns:
- Throws:
ODataJPAQueryException
-