Package org.odata4j.expression

Examples of org.odata4j.expression.EntitySimpleProperty


    if (!(e.getLHS() instanceof EntitySimpleProperty))
      throw new NotImplementedException("Appengine only supports simple property expressions");
    if (!(e.getRHS() instanceof LiteralExpression))
      throw new NotImplementedException("Appengine only supports simple property expressions");

    EntitySimpleProperty lhs = (EntitySimpleProperty) e.getLHS();
    LiteralExpression rhs = (LiteralExpression) e.getRHS();

    String propName = lhs.getPropertyName();
    Object propValue = Expression.literalValue(rhs);

    // Support for filtering navigation properties by key
    if (propName.contains("/")) {
      propName = propName.substring(0, propName.indexOf("/"));
View Full Code Here

TOP

Related Classes of org.odata4j.expression.EntitySimpleProperty

Copyright © 2018 www.massapicom. 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.