Class JPAStructuredResultConverter
java.lang.Object
com.sap.olingo.jpa.processor.core.converter.JPAStructuredResultConverter
- Direct Known Subclasses:
JPAComplexResultConverter,JPAEntityResultConverter
Abstract super class to converts a list of JPA POJOs into Olingo format. The POJOs have to have
- Author:
- Oliver Grande
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJPAStructuredResultConverter(List<?> jpaQueryResult, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaStructuredType) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T, S> voidconvertProperties(Object row, List<org.apache.olingo.commons.api.data.Property> properties, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaStructuredType)getMethods(Class<?> clazz)abstract Object
-
Field Details
-
ACCESS_MODIFIER_GET
- See Also:
- Constant Field Values
-
ACCESS_MODIFIER_SET
- See Also:
- Constant Field Values
-
ACCESS_MODIFIER_IS
- See Also:
- Constant Field Values
-
jpaQueryResult
-
jpaTopLevelType
protected final com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaTopLevelType
-
-
Constructor Details
-
JPAStructuredResultConverter
public JPAStructuredResultConverter(List<?> jpaQueryResult, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaStructuredType)
-
-
Method Details
-
getResult
public abstract Object getResult() throws org.apache.olingo.server.api.ODataApplicationException, org.apache.olingo.server.api.serializer.SerializerException, URISyntaxException- Throws:
org.apache.olingo.server.api.ODataApplicationExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionURISyntaxException
-
getMethods
-
convertProperties
protected <T, S> void convertProperties(Object row, List<org.apache.olingo.commons.api.data.Property> properties, com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAStructuredType jpaStructuredType) throws ODataJPAQueryException- Throws:
ODataJPAQueryException
-