Package er.neo4jadaptor.query.expression.sentence

Examples of er.neo4jadaptor.query.expression.sentence.Comparison


    // now process the last bit
    String last = splits[splits.length-1];
   
    if (entity.attributeNamed(last) != null) {
      // it's a plain attribute value comparison
      return new Comparison(rels, entity.attributeNamed(last), operator, value);
    } else {
      // it's a relationship value comparison, let's represent it as attribute comparison
      EORelationship lastRel = entity.relationshipNamed(last);
      EOAttribute srcAtt = asOne(lastRel.sourceAttributes());
      EOAttribute dstAtt = asOne(lastRel.destinationAttributes());
     
      rels.add(lastRel);
      if (value != null) {
        value = ((NSKeyValueCoding) value).valueForKey(dstAtt.name());
      }
      return new Comparison(rels, srcAtt, operator, value);
    }
  }
View Full Code Here

TOP

Related Classes of er.neo4jadaptor.query.expression.sentence.Comparison

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.