Package org.springframework.data.neo4j.annotation

Examples of org.springframework.data.neo4j.annotation.GraphTraversal


import static org.springframework.data.neo4j.support.DoReturn.doReturn;

public class TraversalFieldAccessorFactory implements FieldAccessorFactory<NodeBacked> {
  @Override
    public boolean accept(final Neo4JPersistentProperty f) {
        final GraphTraversal graphEntityTraversal = f.getAnnotation(GraphTraversal.class);
        return graphEntityTraversal != null
                && graphEntityTraversal.traversalBuilder() != FieldTraversalDescriptionBuilder.class
                && f.getType().equals(Iterable.class);
    }
View Full Code Here


      private Class<?> target;
        protected String[] params;

        public TraversalFieldAccessor(final Neo4JPersistentProperty property) {
          this.property = property;
            final GraphTraversal graphEntityTraversal = property.getAnnotation(GraphTraversal.class);
          this.target = resolveTarget(graphEntityTraversal,property);
            this.params = graphEntityTraversal.params();
            this.fieldTraversalDescriptionBuilder = createTraversalDescription(graphEntityTraversal);
      }
View Full Code Here

        this.template = template;
    }

    @Override
    public boolean accept(final Neo4jPersistentProperty f) {
        final GraphTraversal graphEntityTraversal = f.findAnnotation(GraphTraversal.class);
        return graphEntityTraversal != null
                && graphEntityTraversal.traversal() != FieldTraversalDescriptionBuilder.class
                && f.getType().equals(Iterable.class);
    }
View Full Code Here

        protected String[] params;

        public TraversalFieldAccessor(final Neo4jPersistentProperty property, Neo4jTemplate template) {
          this.property = property;
            this.template = template;
            final GraphTraversal graphEntityTraversal = property.findAnnotation(GraphTraversal.class);
          this.target = resolveTarget(graphEntityTraversal,property);
            this.params = graphEntityTraversal.params();
            this.fieldTraversalDescriptionBuilder = createTraversalDescription(graphEntityTraversal);
      }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.annotation.GraphTraversal

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.