private void handleSystemQueryOptionOrderBy(final String orderBy) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setOrderBy(parseOrderByString((EdmEntityType) targetType, orderBy)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDORDERBYEXPRESSION.addContent(orderBy), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDORDERBYEXPRESSION.addContent(orderBy), e); } } }
private void handleSystemQueryOptionOrderBy(final String orderBy) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setOrderBy(parseOrderByString((EdmEntityType) targetType, orderBy)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDORDERBYEXPRESSION.addContent(orderBy), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDORDERBYEXPRESSION.addContent(orderBy), e); } } }
private void handleSystemQueryOptionOrderBy(final String orderBy) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setOrderBy(parseOrderByString((EdmEntityType) targetType, orderBy)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDORDERBYEXPRESSION.addContent(orderBy), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDORDERBYEXPRESSION.addContent(orderBy), e); } } }
private void handleSystemQueryOptionFilter(final String filter) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setFilter(new FilterParserImpl((EdmEntityType) targetType).parseFilterString(filter, true)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } } }
private void handleSystemQueryOptionFilter(final String filter) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setFilter(new FilterParserImpl((EdmEntityType) targetType).parseFilterString(filter, true)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } } }
private void handleSystemQueryOptionFilter(final String filter) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setFilter(new FilterParserImpl((EdmEntityType) targetType, strictFilter). parseFilterString(filter, true)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } } }
resultList.add(DataConversionUtility.convertToMap(operationResponse.getEntityData().get(0))); castStringToGuidWithCompelxProperty(getUUIDColumns((UriInfo) uriInfo), resultList, (EdmStructuralType) ((UriInfoImpl) uriInfo).getTargetType()); response.setResultEntity(resultList.get(0)); return response; (EdmStructuralType) ((UriInfoImpl) uriInfo).getTargetType()); resultEntities.add((Map<String, Object>) operationResponse.getComplexData().get(0)); castStringToGuidWithCompelxProperty(getUUIDColumns((UriInfo) uriInfo), resultEntities, (EdmStructuralType) ((UriInfoImpl) uriInfo).getTargetType()); response.setResultProperty(resultEntities.get(0)); response.setResultEntities(resultEntities); castStringToGuidWithCompelxProperty(getUUIDColumns((UriInfo) uriInfo), resultEntities, (EdmStructuralType) ((UriInfoImpl) uriInfo).getTargetType());