Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GAE : Is it possible to do a l LIKE query?

 
Arun Pandian S
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As i am brand new to Datastore I ask you gently .
Is it possible to Search Customer by lettter ( if user type -A it should list out Name under A )

Gae Doesn't has Documentation for LIKE Query

And this my code
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Query query =
new Query("Customer").addSort("date", Query.SortDirection.DESCENDING);
List<Entity> customers =
datastore.prepare(query).asList(FetchOptions.Builder.withLimit(10));


Your Suggestion And Discussion are warm welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic