Examples of AtomicPredicate


Examples of org.springframework.data.gemfire.repository.query.Predicates.AtomicPredicate

    Part part = new Part("firstname", Person.class);

    Iterable<Integer> indexes = Arrays.asList(1);

    Predicate predicate = new AtomicPredicate(part, indexes.iterator());
    assertThat(predicate.toString(null), is("x.firstname = $1"));
  }
View Full Code Here

Examples of org.springframework.data.gemfire.repository.query.Predicates.AtomicPredicate

    Part left = new Part("firstname", Person.class);
    Part right = new Part("lastname", Person.class);
    Iterator<Integer> indexes = Arrays.asList(1, 2).iterator();

    Predicates predicate = Predicates.create(left, indexes);
    predicate = predicate.and(new AtomicPredicate(right, indexes));

    assertThat(predicate.toString(null), is("x.firstname = $1 AND x.lastname = $2"));
  }
View Full Code Here

Examples of org.springframework.data.gemfire.repository.query.Predicates.AtomicPredicate

    Part left = new Part("firstname", Person.class);
    Part right = new Part("lastname", Person.class);
    Iterator<Integer> indexes = Arrays.asList(1, 2).iterator();

    Predicates predicate = Predicates.create(left, indexes);
    predicate = predicate.or(new AtomicPredicate(right, indexes));

    assertThat(predicate.toString(null), is("x.firstname = $1 OR x.lastname = $2"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.