Pr/id in as collection2 (#1034)

* ENH: Changed  idIn(List) to idIn(Collection)

* ADD: sanity checks in IdBinder & special case if ID-list is empty
This commit is contained in:
Roland Praml
2017-06-19 22:05:56 +12:00
committed by Rob Bygrave
parent c454e1f8a7
commit a1f95bf25e
10 changed files with 55 additions and 38 deletions
@@ -10,7 +10,7 @@ import io.ebean.search.TextQueryString;
import io.ebean.search.TextSimple;
import java.io.IOException;
import java.util.List;
import java.util.Collection;
import java.util.Map;
/**
@@ -66,7 +66,7 @@ public interface DocQueryContext {
/**
* Write an Id in expression.
*/
void writeIds(List<?> idList) throws IOException;
void writeIds(Collection<?> idCollection) throws IOException;
/**
* Write an Id equals expression.