#1607 - ENH: Add query.exists() query ... as a convenience for "does a row exist" check

This commit is contained in:
rob bygrave committed 2019-01-09 13:59:53 +13:00
1 parent ab3e6ccbf7
commit 8a34d6050b
10 files changed
+145 -8

No files matched your search

@@ -1398,6 +1398,11 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
return server.findIds(this, null);
}
@Override
public boolean exists() {
return server.exists(this, null);
}
@Override
public int findCount() {
// a copy of this query is made in the server