Examples of parse2EdmPropertyValueMap()


Examples of org.apache.olingo.odata2.jpa.processor.core.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      EdmEntitySet entitySet = resultsView.getTargetEntitySet();
      edmEntityType = entitySet.getEntityType();
      Map<String, Object> edmPropertyValueMap = null;

      JPAEntityParser jpaResultParser = new JPAEntityParser();
      edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, edmEntityType.getKeyProperties());

      EntityProviderWriteProperties entryProperties =
          EntityProviderWriteProperties.serviceRoot(oDataJPAContext.getODataContext().getPathInfo().getServiceRoot())
              .build();
View Full Code Here

Examples of org.apache.olingo.odata2.jpa.processor.core.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      List<Map<String, Object>> edmEntityList = new ArrayList<Map<String, Object>>();
      Map<String, Object> edmPropertyValueMap = null;
      JPAEntityParser jpaResultParser = new JPAEntityParser();

      for (Object jpaEntity : jpaEntities) {
        edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, keyProperties);
        edmEntityList.add(edmPropertyValueMap);
      }

      Integer count = null;
      if (resultsView.getInlineCount() != null) {
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      JPAEntityParser jpaResultParser = new JPAEntityParser();
      final List<SelectItem> selectedItems = resultsView.getSelect();
      if (selectedItems != null && selectedItems.size() > 0) {
        for (Object jpaEntity : jpaEntities) {
          edmPropertyValueMap =
              jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, buildSelectItemList(selectedItems, edmEntityType));
          edmEntityList.add(edmPropertyValueMap);
        }
      } else {
        for (Object jpaEntity : jpaEntities) {
          edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, edmEntityType);
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

              jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, buildSelectItemList(selectedItems, edmEntityType));
          edmEntityList.add(edmPropertyValueMap);
        }
      } else {
        for (Object jpaEntity : jpaEntities) {
          edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, edmEntityType);
          edmEntityList.add(edmPropertyValueMap);
        }
      }
      expandList = resultsView.getExpand();
      if (expandList != null && expandList.size() != 0) {
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      JPAEntityParser jpaResultParser = new JPAEntityParser();
      final List<SelectItem> selectedItems = resultsView.getSelect();
      if (selectedItems != null && selectedItems.size() > 0) {
        edmPropertyValueMap =
            jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, buildSelectItemList(selectedItems, resultsView
                .getTargetEntitySet().getEntityType()));
      } else {
        edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, edmEntityType);
      }
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      if (selectedItems != null && selectedItems.size() > 0) {
        edmPropertyValueMap =
            jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, buildSelectItemList(selectedItems, resultsView
                .getTargetEntitySet().getEntityType()));
      } else {
        edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, edmEntityType);
      }

      expandList = resultsView.getExpand();
      if (expandList != null && expandList.size() != 0) {
        HashMap<String, Object> navigationMap =
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      edmEntityType = uriInfo.getTargetEntitySet().getEntityType();
      Map<String, Object> edmPropertyValueMap = null;

      JPAEntityParser jpaResultParser = new JPAEntityParser();
      edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(createdObjectList.get(0), edmEntityType);

      List<ArrayList<NavigationPropertySegment>> expandList = null;
      if (createdObjectList.get(1) != null
          && ((Map<EdmNavigationProperty, EdmEntitySet>) createdObjectList.get(1)).size() > 0) {
        expandList = getExpandList((Map<EdmNavigationProperty, EdmEntitySet>) createdObjectList.get(1));
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

        if (edmType.getKind().equals(EdmTypeKind.ENTITY) || edmType.getKind().equals(EdmTypeKind.COMPLEX)) {
          if (functionImport.getReturnType().getMultiplicity().equals(EdmMultiplicity.MANY)) {
            edmEntityList = new ArrayList<Map<String, Object>>();
            for (Object jpaEntity : resultList) {
              edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, (EdmStructuralType) edmType);
              edmEntityList.add(edmPropertyValueMap);
            }
            result = edmEntityList;
          } else {
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

            }
            result = edmEntityList;
          } else {

            Object resultObject = resultList.get(0);
            edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(resultObject, (EdmStructuralType) edmType);

            result = edmPropertyValueMap;
          }

        } else if (edmType.getKind().equals(EdmTypeKind.SIMPLE)) {
View Full Code Here

Examples of org.apache.olingo.odata2.processor.core.jpa.access.data.JPAEntityParser.parse2EdmPropertyValueMap()

      EdmEntitySet entitySet = resultsView.getTargetEntitySet();
      edmEntityType = entitySet.getEntityType();
      Map<String, Object> edmPropertyValueMap = null;

      JPAEntityParser jpaResultParser = new JPAEntityParser();
      edmPropertyValueMap = jpaResultParser.parse2EdmPropertyValueMap(jpaEntity, edmEntityType.getKeyProperties());

      EntityProviderWriteProperties entryProperties =
          EntityProviderWriteProperties.serviceRoot(oDataJPAContext.getODataContext().getPathInfo().getServiceRoot())
              .build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.