Class JPAEntityBasedResult
java.lang.Object
com.sap.olingo.jpa.processor.core.modify.JPAEntityBasedResult
- All Implemented Interfaces:
JPAExpandResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult>protected com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityTypeprotected JPAConversionHelperprotected Localeprotected List<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath>protected List<javax.persistence.Tuple>Fields inherited from interface com.sap.olingo.jpa.processor.core.converter.JPAExpandResult
ROOT_RESULT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionJPAEntityBasedResult(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType et, Map<String,List<String>> requestHeaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddValueToTuple(JPATuple tuple, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath path, int index, Object value)voidconvert(JPATupleChildConverter converter)protected voidconvertPathToTuple(JPATuple tuple, Map<String,Object> jpaEntity, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath path, int index)protected StringdetermineLocale(Map<String,Object> descGetterMap, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath localeAttribute, int index)entryAsMap(Object entry)getChild(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath associationPath)Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult>com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityTypeList<javax.persistence.Tuple>booleanhasCount()protected booleannotContainsCollection(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath path)
-
Field Details
-
result
-
et
protected final com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType et -
children
protected final Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath,JPAExpandResult> children -
pathList
-
locale
-
helper
-
requestHeaders
-
-
Constructor Details
-
JPAEntityBasedResult
public JPAEntityBasedResult(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType et, Map<String,List<String>> requestHeaders) throws com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException- Throws:
com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException
-
-
Method Details
-
getResult
-
getResults
-
determineLocale
protected String determineLocale(Map<String,Object> descGetterMap, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath localeAttribute, int index) throws ODataJPAProcessorException- Throws:
ODataJPAProcessorException
-
entryAsMap
- Throws:
ODataJPAProcessorException
-
convert
public void convert(JPATupleChildConverter converter) throws org.apache.olingo.server.api.ODataApplicationException- Specified by:
convertin interfaceJPAExpandResult- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
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
-
getEntityType
public com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAEntityType getEntityType()- Specified by:
getEntityTypein interfaceJPAExpandResult
-
hasCount
public boolean hasCount()- Specified by:
hasCountin interfaceJPAExpandResult
-
addValueToTuple
protected void addValueToTuple(JPATuple tuple, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath path, int index, Object value) throws ODataJPAProcessorException- Throws:
ODataJPAProcessorException
-
convertPathToTuple
protected void convertPathToTuple(JPATuple tuple, Map<String,Object> jpaEntity, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath path, int index) throws ODataJPAProcessorException- Throws:
ODataJPAProcessorException
-
notContainsCollection
protected boolean notContainsCollection(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAPath path)
-