OrientGraph db = ...
String sql = "SELECT FROM MyUsers WHERE username NOT IN :usernames";
Map<String, Object> queryParams= new HashMap<>();
queryParams.put("usernames", new HashSet<String>());
Iterable<Vertex> results = ((Iterable<Vertex>)
db.command(new OSQLSynchQuery<>(sql))
.execute(queryParams));
SELECT FROM MyUsers WHERE username NOT IN []
OrientGraph db = ...
String sql = "SELECT FROM MyUsers WHERE username NOT IN :usernames";
Map<String, Object> queryParams= new HashMap<>();
queryParams.put("usernames", new HashSet<String>() {{ add("test"); }});
Iterable<Vertex> results = ((Iterable<Vertex>)
db.command(new OSQLSynchQuery<>(sql))
.execute(queryParams));
--
---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/Cs-xNsLMwvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.