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); } } }