Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Region people = cache.getRegion("/People");
  2.  
  3. ...
  4.  
  5. QueryService queryService = people.getRegionSevice().getQueryService();
  6.  
  7. Query query = queryService.newQuery("SELECT * FROM /People p WHERE p.age >= $1");
  8.  
  9. SelectResults<Person> results = (SelectResults<Person>) query.execute(asArray(21));
  10.  
  11. // process (e.g. validate) the results
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement