Class JPACollectionQueryResult
java.lang.Object
com.sap.olingo.jpa.processor.core.query.JPACollectionQueryResult
- All Implemented Interfaces:
JPACollectionResult,JPAExpandResult,JPAConvertableResult
public class JPACollectionQueryResult
extends Object
implements JPACollectionResult, JPAConvertableResult
-
Field Summary
Fields inherited from interface com.sap.olingo.jpa.processor.core.converter.JPAExpandResult
ROOT_RESULT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionJPACollectionQueryResult(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType jpaEntityType, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath assoziation, Collection<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> selectionPath)JPACollectionQueryResult(Map<String,List<javax.persistence.Tuple>> result, Map<String,Long> counts, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType jpaEntityType, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath assoziation, Collection<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> selectionPath) -
Method Summary
Modifier and TypeMethodDescriptionasEntityCollection(JPATupleChildConverter converter)voidconvert(JPATupleChildConverter converter)com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPathgetChild(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath associationPath)Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult>org.apache.olingo.commons.api.data.EntityCollectiongetEntityCollection(String key)Returns the entity collection of a given key.com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityTypegetPropertyCollection(String key)Returns the result of a query for a collection property, which is either a list of attributes e.g.List<javax.persistence.Tuple>booleanhasCount()voidputChildren(Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult> childResults)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.olingo.jpa.processor.core.query.JPAConvertableResult
getKeyBoundary
-
Constructor Details
-
JPACollectionQueryResult
public JPACollectionQueryResult(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType jpaEntityType, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath assoziation, Collection<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> selectionPath) -
JPACollectionQueryResult
public JPACollectionQueryResult(Map<String,List<javax.persistence.Tuple>> result, Map<String,Long> counts, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType jpaEntityType, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath assoziation, Collection<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath> selectionPath)
-
-
Method Details
-
asEntityCollection
public Map<String,org.apache.olingo.commons.api.data.EntityCollection> asEntityCollection(JPATupleChildConverter converter) throws org.apache.olingo.server.api.ODataApplicationException- Specified by:
asEntityCollectionin interfaceJPAConvertableResult- Returns:
- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
convert
public void convert(JPATupleChildConverter converter) throws org.apache.olingo.server.api.ODataApplicationException- Specified by:
convertin interfaceJPAExpandResult- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
getAssoziation
public com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath getAssoziation()- Specified by:
getAssoziationin interfaceJPACollectionResult
-
getChild
public JPAExpandResult getChild(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath associationPath)- Specified by:
getChildin interfaceJPAExpandResult
-
getChildren
public Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult> getChildren()- Specified by:
getChildrenin interfaceJPAExpandResult
-
getCount
- Specified by:
getCountin interfaceJPAExpandResult
-
getEntityCollection
Description copied from interface:JPAConvertableResultReturns the entity collection of a given key. This method may internally performasEntityCollection- Specified by:
getEntityCollectionin interfaceJPAConvertableResult- Returns:
-
getEntityType
public com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType getEntityType()- Specified by:
getEntityTypein interfaceJPAExpandResult
-
getPropertyCollection
Description copied from interface:JPACollectionResultReturns the result of a query for a collection property, which is either a list of attributes e.g. Integer for primitive properties or a list of ComplexValues- Specified by:
getPropertyCollectionin interfaceJPACollectionResult- Returns:
-
getResult
- Specified by:
getResultin interfaceJPAExpandResult
-
getResults
- Specified by:
getResultsin interfaceJPAExpandResult
-
hasCount
public boolean hasCount()- Specified by:
hasCountin interfaceJPAExpandResult
-
putChildren
public void putChildren(Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult> childResults) throws org.apache.olingo.server.api.ODataApplicationException- Specified by:
putChildrenin interfaceJPAConvertableResult- Throws:
org.apache.olingo.server.api.ODataApplicationException
-